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

How to add SQLite rows to an ArrayList<>

Assuming you want to create an Array of Strings, as you've declared

Code:
ArrayList<String> info

then just write

Code:
info.add(check.getString(check.getColumnIndex(TableClass.Name_Column))

Assuming TableClass.Name_Column is a string value.

If you want to create an ArrayList containing objects corresponding to the rows in your database table, then you'll have to create a class that represents all the data fields in that table. E.g.

Code:
class Person {
  private String firstName;
  private String surName;
  private Integer age;
}

then create Person objects using rows retrieved from the database, and declare an ArrayList like this

Code:
ArrayList<Person> people = new ArrayList<>;

android 10 : android.process.media keeps stopping when invoke downloadmanager

Recently I start testing my app in Android 10 (it works fine on the previous version). When I invoke download manager for a file, I got a crash with a message:

android.process.media keeps stopping

This is my snippet code:

String mFilePath = "file://"
+ FileManager.getInstance(getApplicationContext()).getDir()
+ "/"
+ fileName
+ extension;
Uri downloadUri = Uri.parse(fileUrl);
DownloadManager.Request req = new DownloadManager.Request(downloadUri);
DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);
dm.enqueue(req);



What's the exact problem?

Apps Getting Bad Request

Hi,

Today i had developer App for Our Website But i am getting One Problem.

Some time using the App i am getting the Below Error

Bad Request

Your browser sent a request that this server could not understand.
Size of a request header filed exceeds server limit

if i clear the app data again it is working and after some time i am getting the above error.

How can i solve this problem ?

i am new to android developement

Thanks
Somu N

Attachments

  • IMG_20200111_183955.jpg
    IMG_20200111_183955.jpg
    317.6 KB · Views: 142

Help Calendar entries made on phone don't sync to O365 on laptop

If your husband has a Fold and it works for him you should be able to use the same setup. So the question is "what is different?", which unfortunately isn't easy to work out remotely.

In general all of the relevant settings should be in one of 2 places: the settings for the calendar app (which I guess is Outlook from your comments) and the settings for the Outlook account (which you should be able to find in the "accounts" section of the phone's settings - if there isn't one then it sounds like the Outlook app is as restricted as it was last time I used it).

Unfortunately I don't use either the Outlook app or a Samsung phone (Samsung change the menus to their own style) so it's hard for me to guess details. I would look at the calendar app's settings, find the settings for events and see which account is set as the default for creating new events. My guess is that that is set to the Yahoo account, in which case setting it to the Outlook account may be all that you need (or specifying the calendar each time you create a new event, but it's better to have a sensible default).

You can sync other calendar apps with Outlook if you install an app that sets up the Outlook account as a general calendar account rather than something specific to the Outlook app (sorry, can't think of a clear way to say what I mean, except that this is what I meant when I blamed the Outlook app if you don't have an Outlook account visible in your settings). MS used to have an app called Outlook.com, and if you synced that with your outlook account you could view and edit the calendar in almost any other calendar app as well. Then they replaced that with the Outlook app and suddenly the calendar wasn't available to any other apps - which is when I ditched that app. I actually use a paid third-party app called Nine to manage my MS accounts, and with that installed I can manage the calendars in any of my other calendar apps as well. But if your husband has a working setup it should be possible to replicate that instead.

Anyway good luck. Changes of platform can take time. Personally I find Android's approach to settings, where you access an app's settings from the app itself, more logical as it's closer to how my computers work (even my Apple computers), but familiarity is the biggest part of things like this. And I always warn people making any change of platform or even OS version, you'll tend to notice the things that don't work the way you expect before you come to understand anything that works better, so initial impressions tend to be negative no matter what change you make.

What is Relevant benchmark values for microSDcard performance?

i have no idea on benchmarks other then the speed of a microsd card. i would also be very cautious when using a sd card as your adoptable storage. since the phone will be reading and writing from the card, you will run the risk of wearing it out faster, the more you use the phone...and thus corrupting the card losing all of your apps data..

there is a reason that samsung decided not have the adoptable storage option on any of their devices. it can potential cause more issues then it is worth IMHO.

Help Bluetooth problems

We definitely see eye to eye, I totally agree with what your saying. Im not familiar with the higher versions but what you mention has been constant with udated levei of the Android os (api's). Just a small example. YThw First is set to off.
Screenshot_2020-01-10-22-44-13.png

the second is displayed by taping 3 dot s top right.
Screenshot_2020-01-10-22-44-18.png


Tap advanced and the third screen. If compare the 1st screen shot with the 3rd screen shot dothis seem contradictory?

If I add a hypothetical rebuttal such as "this is basic" . My response, yes it is. However, consider we are all memberes of "Android" Fotoms. Well of couse its basic to use members of AF. but not necessarily to much of the general population.

Oops I'll edit extra svreen shots. My intention was just 3 imgs

Why can't i connect my note 9 to any bluetooth devices, every time i try it says the name will show when it's connected but it never connect..... so now my bluetooth headphones are pretty much useless :mad:

Did you find a solution for your bluethooth issues?

Attachments

  • Screenshot_2020-01-10-22-45-18.jpg
    Screenshot_2020-01-10-22-45-18.jpg
    118.3 KB · Views: 248

To upgrade or not upgrade, that is the question

OK... Answered my own question.
I waited until January 8th. Once I saw that Google fixed all the nasty issues, I took the plunge. It took ten minutes to move to v10.

But then it took an hour to run 5 months of security updates. Since 10 came out they stopped all the automatic updates, so I had to run them all since last August.

I'm glad I took the Android 10 plunge on this 2 xl. No issues at all so far, and the battery life definitely got way better.

The only thing I hate, and can't get rid of is that damn Emergency icon when you press and hold the power button. I use it a lot for screenshots and I've hit the Emergency button already. Too bad I can't get rid of it.

[GAME] [FREE] Two Powerfool 2 480p

'Two powerfool 2 480P' is a game 'based' on 'Sliding puzzle' gameplay.
'Two powerfool 2 480P' is played on a grid with numbered tiles that slide smoothly when a player moves them.
The 10 game modes are explained in the video.
Like all my applications, this application respects the 4 following conditions :
1) This application is totally free in full version.
2) There will never be a Freemium version and there will never be a version with charged In-app Products
3) There's no interstitial ad and there's only a non-intrusive banner ad.
4) All the future updates of this app will respect the 3 previous conditions.
This version contains 1 musics sampled in 64 kb and background images are in a low resolution (about 640x400) but this version is full.
This version weighs 9 M.
https://play.google.com/store/apps/details?id=com.barpat.twopowerfoolsuperlite2&amp;hl=en
If you have a tablet, a telephone with a really good resolution screen, I recommend you the version 'QHD 4k' and the 3 musics are sampled in 192 kb although the '480P' version is supposed to work on those machines.
This version weighs 39 M.
https://play.google.com/store/apps/details?id=com.barpat.twopowerfool2&amp;hl=en
If you have a tablet, a telephone with a good resolution screen, I recommend you the version '1080P' below (fullhd or 1080p) and the 3 musics are sampled in 64 kb although the '480P' version is supposed to work on those machines.
This version weighs 17 M.
https://play.google.com/store/apps/details?id=com.barpat.twopowerfoollite2&amp;hl=en
If you have like number games and puzzles, this game is made for you.
If you are a casual gamer, this is the kind of game that you should try.
This game is totally free and you could play it offline (without internet).
I hope you enjoy the game.
Thanks for the reading.

Help Netflix isn't compatible with HTC U11?!

so is the phone rooted then? and are you saying that netflix will not work on a rooted phone? or a phone that has the bootloader unlocked?

Just unlocked bootloader. I found a xda thread that mentioned some change in play store that allowed devs to block *any* phones with unlocked bootloaders. Netflix is one of the apps that did it.
Phone is totally stock, but even couple years ago you could not get HTC from a carrier, so it is unlocked.

Filter

Back
Top Bottom