• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Aliens and Facebook

just saw a thing on msnbc saying that 2 million have rsvp for this event...........i think it set in 5 days. curious to see how that goes.
Last I [halfway] heard, it's not going to happen--at least not as planned. It now looks like some people are going to show up, but in a different, nearby location.

As noted, I wasn't paying full attention, so I may have gotten it wrong.

Ford Sync: Phonebook Problem

If you haven't figured out how to get your contacts to sync to your Ford Sync from your Moto Z2, or if anyone else is having this issue, I just figured something out.

My boss recently bought a '16 Ford F450 with MyFord Touch, and he has a Z2 Force also-- phonebook would not sync.

Tried SO many things. Here's a stupidly simple thing I did:
1. First off, export your contacts (.vcf, or vCard, file) in preparation for sharing in step 4
2. Connect your phone with your Ford's sync
3. Navigate to settings in your vehicle's sync system, scroll to 'Manage Phonebook', and select 'Add Contacts from Phone'
(these are steps in regards to the MyFord Touch sync system, may vary if using another system)
4. On your phone find the .vcf file you previously exported and share it via bluetooth to your Ford's sync, which should already be paired and connected to your phone

For some reason, while everything else regarding the phone syncs, the phonebook does not do it automatically with a Z2 Force. You have to manually add them.

Hope this helps!
Go-to Bluetooth settings find Sync
Go to settings check all the boxes
including "allow contact sharing"
That worked for me ,so simple
after trying different things.

parse KML list files on android

Good evening I'm facing a problem in my code. I would like to parse a set of kml file to extract the contents and put it in bae of data. it returns each time the list of files, but not the contents of each file. Please help me

Here my MainActivity.java file content :


public class MainActivity extends AppCompatActivity {

private TextView txt;

private TextView texte;
ListView listView;
private List<String> fileNameList;
private FlAdapter mAdapter;
private File file;

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
if (ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)
== PackageManager.PERMISSION_GRANTED){
//FetchImages();
listView = (ListView) findViewById(R.id.listView);
file = Environment.getExternalStorageDirectory();
fileNameList = getFileListfromSDCard();
mAdapter = new FlAdapter(this, R.layout.mylist, fileNameList);
listView.setAdapter(mAdapter);

}
else{

ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1);
}
}
else{
//startActivity(new Intent(getActivity(), SQLite2ExcelActivity.class));
}
}

private List<String> getFileListfromSDCard() {
String state = Environment.getExternalStorageState();
ArrayList<String> filenames = new ArrayList<String>();
String path = Environment.getExternalStorageDirectory()
+ File.separator + "Fodecc_csv";

File directory = new File(path);
File[] files = directory.listFiles();


for (int i = 0; i < files.length; i++)
{
if(files.isFile() && files.getPath().endsWith(".kml")){
String file_name = files.getName();

// you can store name to arraylist and use it later
filenames.add(file_name);

XmlPullParserFactory parserFactory;

try {

parserFactory = XmlPullParserFactory.newInstance();

XmlPullParser parser = parserFactory.newPullParser();

//File file = new File("/storage/emulated/0/Kml.kml");
InputStream is = new FileInputStream(file_name);
parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);

parser.setInput(is, null);



processParsing(parser);

//InputStream is = getAssets().open("kml.xml");



} catch (XmlPullParserException e) {



} catch (IOException e) {

}

}

}
return filenames;
}

private void processParsing(XmlPullParser parser) throws IOException, XmlPullParserException{
ArrayList<coordonnees> coordo = new ArrayList<>();

int eventType = parser.getEventType();

coordonnees currentcoordo= null;



while (eventType != XmlPullParser.END_DOCUMENT) {

String eltName = null;



switch (eventType) {

case XmlPullParser.START_TAG:

eltName = parser.getName();



if ("Placemark".equals(eltName)) {

currentcoordo = new coordonnees();

coordo.add(currentcoordo);

} else if (currentcoordo != null) {

if ("name".equals(eltName)) {

currentcoordo.name = parser.nextText();

}

}

break;

}



eventType = parser.next();

}



printcoordo(coordo);
}

private void printcoordo(ArrayList<coordonnees> coordo) {
StringBuilder builder = new StringBuilder();



for (coordonnees Placemark : coordo) {

builder.append(Placemark.name).append("\n");

}

txt = (TextView) findViewById(R.id.te);


txt.setText(builder.toString());
}

}

Help Cannot see zip file in Bluestacks Media Manager

Hi folks, new here.

A problem i am experiencing is, i use Viber, and i archive my messages, and it creates a zip file in Viber. However, i don't see it in Media Manager. The previous time it worked.

I have no idea what's going on. Exporting to windows is the easy part. Having it appear in Media Manager, that's a different story.

Please assist
Thanks in advance

Filter

Back
Top Bottom