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

Default keyboard Galaxy Tab A

Thank you Moody Blues for a detailed, attractive message. I'll certainly investigate. It's amazing to me that guys like you find and implement such things and then take the trouble to help duffers like me.

Also, Dannydet, thank you for your further assistance. I'll investigate your suggestion also. Maybe I did indeed misstep in the prep, in which case Samsung couldn't offer me an option.

Will let you know results later.

How to parse several xml files at the same time and display them with their data in a listview

Hello I would parser several xml files and display their data each in a list. I manage to parse a single file. The code is just below. How to parse multiple files in a folder of external memory and display their data in a list?

this is my MainActivity

public List<ModelKmlData> modelkmldata = null;

private View parent_view;

private RecyclerView recyclerView;
private AdapterListInbox mAdapter;
private androidx.appcompat.view.ActionMode actionMode;
private Toolbar toolbar;
private FloatingActionButton fabbtn;
SqliteHelper sqliteHelper;

public List<KmlDataModel> kmldatamodel = null;

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

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
if (ActivityCompat.checkSelfPermission(this,
Manifest.permission.WRITE_EXTERNAL_STORAGE)
== PackageManager.PERMISSION_GRANTED){

// Analyser les données KML dans un thread non-ui
new LoadKmlTask().execute();

}


else{

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

/*sqliteHelper = new SqliteHelper(this);

initToolbar();
initComponent();
Toast.makeText(this, "Appui long effectué",
Toast.LENGTH_SHORT).show();*/
}

private class LoadKmlTask extends AsyncTask<String, Void, Cursor>{
@override
protected Cursor doInBackground(String... args) {

// interroger la base de données et retourner un curseur des
//données kml.
SqliteHelper sqliteHelper = new
SqliteHelper(getApplicationContext());

Cursor cursor = sqliteHelper.getAllKmlCursor();

return cursor;
}

@override
protected void onPostExecute(Cursor cursor) {

String[] dataColumns = { sqliteHelper.COLUMN_KMLNAME,
sqliteHelper.COLUMN_KMLUNID, sqliteHelper.COLUMN_KMLDESC,
sqliteHelper.COLUMN_KMLCOORD};
int[] viewIDs = { R.id.list_item_name, R.id.list_item_title,
R.id.list_item_department,R.id.list_item_email };

SimpleCursorAdapter records = new
SimpleCursorAdapter(getBaseContext(), R.layout.item_inbox,
cursor, dataColumns, viewIDs, 0);

ListView listView = (ListView) findViewById(R.id.list);
if (listView != null) {
listView.setAdapter(records);
}

}

}

the code that parses :

// noms des balises KML
private static final String PLACEMARK = "Placemark";
private static final String DOCUMENT = "Document";
private static final String VALUE = "value";
private static final String NAME = "name";
private static final String DESCRIPTION = "description";
private static final String COORDINATES = "coordinates";
private ArrayList<ModelKmlData> kmlList = null;
private ModelKmlData currentKml = null;
private boolean done = false;
private String currentTag = null;

public ArrayList<ModelKmlData> parse(Context context) {

try{
String state = Environment.getExternalStorageState();
String path = Environment.getExternalStorageDirectory()
+ File.separator + "Fodecc_csv" + File.separator + "GFAM-
20190916-150100.kml";
XmlPullParserFactory xppf = XmlPullParserFactory.newInstance();
xppf.setNamespaceAware(true);
XmlPullParser parser = xppf.newPullParser();

File file = new File(Environment.getExternalStorageDirectory()
+ File.separator + "Fodecc_csv" + File.separator + "GFAM-
20190916-150100.kml");
FileInputStream fis = new FileInputStream(file);
parser.setInput(new InputStreamReader(fis));


//XmlPullParser parser = fis;

int eventType = parser.getEventType();
while (eventType != XmlPullParser.END_DOCUMENT && !done) {

switch (eventType) {
case XmlPullParser.START_DOCUMENT:
kmlList = new ArrayList<ModelKmlData>();
break;
case XmlPullParser.START_TAG:
currentTag = parser.getName();
if (currentTag.equalsIgnoreCase(PLACEMARK)) {
currentKml = new ModelKmlData();
} else if (currentKml != null) {
if (currentTag.equalsIgnoreCase(NAME)) {
currentKml.set_kmlName(parser.nextText());
// currentEmployee.setId(parser.nextText());
} else if (currentTag.equalsIgnoreCase(VALUE)) {
currentKml.set_kmlUNID(parser.nextText());
} else if
(currentTag.equalsIgnoreCase(DESCRIPTION)) {
currentKml.set_kmlDesc(parser.nextText());
} else if
(currentTag.equalsIgnoreCase(COORDINATES)) {
currentKml.set_kmlCoord(parser.nextText());
}
}
break;
case XmlPullParser.END_TAG:
currentTag = parser.getName();
if (currentTag.equalsIgnoreCase(PLACEMARK) &&
currentKml != null) {
kmlList.add(currentKml);
} else if (currentTag.equalsIgnoreCase(DOCUMENT)) {
done = true;
}
break;
}
eventType = parser.next();
}
} catch (XmlPullParserException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}

return kmlList;
}
}

How could I add a loop that will recover all files and view their contents ?

Help Phone stuck at blue screens (Use the Emergency recovery function..." or Download mode (Odin))

All jokes aside, is your phone still recognized by ADB, and is the bootloader unlocked with access to fastboot?

Sorry for the long delay! I just tried to see if my phone is still recognizable by adb. It is not. Should I still try flashing stock rom (the right version/region this time)?

Good/healthy way to charge the phone?

I'm going to recommend you take a look at https://batteryuniversity.com , its articles often include technical details to back up general statements and they also get updated when necessary. Here are a couple of articles you might find useful:
https://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
https://batteryuniversity.com/learn/article/charging_lithium_ion_batteries

That said, there's a massive amount of out-dated information and opinions touted as fact online so finding relevant and accurate info about smartphone batteries can be a daunting task. Choose your sources carefully.

My friend wiped her s7 how can I fix it

I you need to reflash the official formware make sure to do a little research beforehand. For instance, is your firmware is aboot 5 and you flash a lower firmware with an aboot. 4 you will have a fail in Odin and your stock recovery will probably show something like


Error sw rev check fail: [aboot] fused 5> binary 4
[1]eMMC write fail:ABOOT

XDA for your specific phone and carrier and search a bit. You can always go from a lower aboot to a higher aboot (update) but gener speaking not down grade. Good luck

Help I keep getting a two tone notification sound, but there's nothing in the menu

I landed here searching on-line for ... this exact issue. Was driving me crazy.

That is the two tone beep but no notification showing and no sign of what caused it. It leaves me wishing there was an app that recorded every sound the phone made and what app made it so you could check the log.

Reading here prompted me, given it seemed to be happening a lot right now to watch it like an eagle for a while.

Turns out I was in luck, and found the cause too. Mine was different. It was the a lock screen notification sound. That is it made that beep when the phone locked after inactivity. Which explains why it was happening a lot. It beeps so I check it, nothing, then it locks and beeps, and I check it etc. Aaargh.

Low volume

Received my phone back from the EE shop re low volume and the the attached letter....
" During our tests we uncovered an issue on your device and have now fixed this.
It is a slightly different fault to the one you initially described, but if two problems occur on a device they are often connected, so you should find your initial issue has also stopped"

Clear as mud. Why not tell us what the problem was ?

My Huawei P10 won't turn on.

I've had a P10 for almost two months now. My phone froze so I held the power button down to switch it off. It did that, but now it won't turn back on again! I have tried holding the power key and volume down key together, turning it back on, but nothing; it just shows the startup screen for about a minute then power off again. However, it has been making frequent vibrating noises every 3-8 minutes or so. I'm not sure what to do.
First, remove the battery and after few minutes fix and try to on it.If it is not working reset the mobile.

Help How to root an Android device?

Can you tell us more about the "P8": is this a Huawei P8, or a P8 Lite, or something else? Precise model number is safest. Knowing whether it was bought unlocked or sold through a service provider might also be important. (I'm not familiar with Huawei devices, but the exact model number is always a good idea and the other stuff is often relevant).

Rooting is not a generic process: although there are common general approaches (unlock bootloader, replace recovery module with a "custom" version, use the custom recovery to modify the ROM to give you root access) not all devices allow this and so the techniques and tools vary between devices. Software such as custom recovery modules must always be built specifically for the particular model. Some phones cannot be rooted.

When asking about legality it's always sensible to say which country you are in (e.g. in the UK it's illegal to modify a device's IMEI, in some other countries there may not be such laws). In general rooting is legal, and as long as you make sure you understand what you are doing before charging in it's also safe. But you should understand what it does, what it does not do, and what the side effects might be.

You say rooting "can remove all the software restrictions on an android device". That really depends on what software restrictions you were thinking of. All that rooting actually does is allow you to run user-installed apps with administrator privileges. That's it. So before doing it, ask what you want to do using this ability. (People often confuse things like the ability to replace the recovery or ROM with rooting, but that's actually a consequence of unlocking the bootloader).

Rooting has downsides: if you can run apps with admin privileges, any malware you unwittingly install can also use those privileges. This means that you have greater responsibility for your own security. This is also why sensitive apps such as banking and electronic payments will try to detect whether your phone is rooted and will not work if it is (because being rooted would make it easier for malware to obtain sensitive information from other apps). Some less important apps (some games and media apps) will also try to block rooted devices. Some rooting tools (e.g. Magisk) have tools to "hide" the rooted status. Whether the apps you care about can still work after rooting is something you should find out before proceeding. Modifying the ROM will probably prevent you installing future over the air updates, but that's probably not a problem with an older phone.

As you'll have gathered from this I have rooted phones in the past. But my current phone is not rooted, so I'm not wholly up-to-date in my knowledge, and I've never owned a Huawei (or any other device called P8) so can't offer very specific help with your device.

Sequence of the program running

I'm not sure if the way I did it is correct, but it works.
So in the code below:
Code:
fileUrl = "";
        GetVideoUrlMySql getVideoUrl = new GetVideoUrlMySql();
        getVideoUrl.execute("");
        vw.setVideoPath(fileUrl);
        vw.start();
I added the line "while (fileUrl) {}
Code:
fileUrl = "";
        GetVideoUrlMySql getVideoUrl = new GetVideoUrlMySql();
        getVideoUrl.execute("");
        while (fileUrl =="") {}
        vw.setVideoPath(fileUrl);
        vw.start();

This force the "class GetVideoUrlMySql extends AsyncTask" to finish getting the result from the database before moving onto the next line of setting the video path to fileUrl.
If someone has a better (more correct way) of how to do this, I would appreciate feedback.

Help Can't install aps on phone no storage left but no apps installed

Well, that's more a reflection on Samsung if anything. I think it's a handy workaround feature that should be available to all Android models so anyone has the option to use it or not. A big problem is Google should make its documentation more obvious and much more accessible. Currently there's way too much misinformation and misguided opinions being touted as fact about adoptable storage.

Pixel 2 XL Issues

Solved issue with PlayStation Vue. It is an app problem related to some PS Vue restrictions about being out of home area for greater than 30 days. After trying several VPN apps, I was able to trick PS Vue into thinking we were back in home area and it started working. It would be nice if developers displayed some kind of warning/error message.

Phone also seems to be getting better battery life on Android 10.

Filter

Back
Top Bottom