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

Help How to fix Dns probe error in China mobile A1s

Did you actually buy this "China Mobile A1" in China, or was it an import from China or something? Do you know who the manufacturer is?

I've not seen it for a while, but there have been reports of Chinese devices that include govt censoring baked into their firmware, which can't access Google etc, no matter where they are in the world. Last report I seen was a tablet bought in Shanghai, that couldn't access Facebook and Google in the UK, because the hosts file had been fixed.

Samsung Galaxy J6+ won't boot

This is fir the J6 and not the J6+ but it might help to look threw the info.

https://www.google.com/amp/s/thedro...laxy-j6-thats-stuck-in-a-bootloop-1093189/amp


It's a good idea to fully charge your battery before you do anything. If you decide to factory reset its important to know your Google account password because apon successful reboot your face FRP lock.
Last options are replace the battery with mo guarantees and/or flash the factory firmware.

Help putting Menu into a Toolbar in Activity

I am writing because I cannot successfully add a Menu into a Toolbar. i have made a toolbar using the Toolbar element. I have tried using the other flavors of a toolbar (androidx for instance) and all of them crash my app. So I am using the android-recommend 'Toolbar' - it's the only one that flies.

Anyway, I can see the Toolbar! Now for the Menu I wish to add. I have overridden the method

@override
public boolean onPrepareOptionsMenu (Menu menu) {
super.onPrepareOptionsMenu( menu );
getMenuInflater().inflate( R.menu.home_mainmenu, menu );
invalidateOptionsMenu();
return false;
}

I have tried endless variations and always no joy. So would some kind angel out there please give an example of how to place a Menu into a Toolbar?

Someone suggested altering the 'AppTheme' in styles.xml to: Theme......NoActionBar. I tried it both ways with no effect.

I'm a very experienced programmer but am new to Android, so all of these different versions of the same thing really confuse me..... Looking forward to hearing from you!

TIA

So - I figured it out. May this be of use to you.

First, we are talking about the xml entity <Toolbar>. Nothing more, Nothing less.

Your Activity class must extend Activity. --- NOT AppCompatActivity

In your Activity.onCreate(...) put this:

// the ui toolbar already exists, so a temporary variable works fine
Toolbar toolbar = findViewById(R.id.mytoolbar); // substitute your id
setActionBar( toolbar );

Now you must override like so:
/*
default processing to be done only once
boolean bMenuInitialized should be declared as a class field to false
*/
@override
public boolean onPrepareOptionsMenu (Menu menu) {
super.onPrepareOptionsMenu( menu );
if ( !bMenuInitialized ) {
getMenuInflater().inflate( R.menu.home_mainmenu, menu );
bMenuInitialized = true;
}
return true;
}

This override gets called every time the menu is displayed. That's why you only want to call it once i this context, so trip your flag - in this case bMenuInitialized. Good luck!

Menu not inflating

Hi! Have you resolved this yet? I am struggling terribly with this very problem. After a ton of searching I found one suggestion that actually did allow my overrides to get called as expected. The suggestion was to change the Activity class declaration. There's an incompatibility there. So if you have this: extends Activity, try changing it to this extends AppCompatActivity or vice versa.

This change does allow my overrides to get called. Unfortunately I still do not see my menu!!!! FWIW, I am working with an Activity not a Fragment. Please let me know what this does for you. TIA

Auto Save Parking Location On Galaxy S20?

hi, i had the same issue - i downloaded a free app called macrodroid and withing the app downloaded the car parking location template. you can also do it from scratch. it works by saving the location to sms, notification, pop-up, calendar etc whenever you disconnect from car bluetooth audio. you can automate loads of things with it

https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid&hl=en_AU

Exercixe Android app suggestions

Please could someone recommend a good app for exercising in Android? Is for an elderly woman so it should have moderate routines, have sounds alerts for when to exercise and when to rest indicates and if possible shows clear pictures with examples of the exercise or announces it with voice. Have been trying different apps in last weeks but none that fit the best.

One that looked promising was Freeletics but it was too complicate to make it work every time.

Thanks in advance for any valid suggestion.

Looking for friends to play Angry Birds 2 with

Hello everyone, I recently started to play this fun game Angry Birds 2. Must be honest, I was never interested in the game before. I mean, throw birds with a slinger. What's interesting that? Right? Then Angry Birds the movies came, the kids had fun and it looked silly enough to make me curious, so what the heck! And against all my wildest fantasies the game is actually very enjoyable! So here I am, telling you that if it ever got you een slightly curious why not give the game a chance?

In case you want to join me in this adventure, currently I and some friends are in the clan: Statunitians (Pretty clear where we are from, right?).

Again.

Clan name: Statunitians
Clan number: #353850
Members: currently 30
Total flock power 9873 and rapidly increasing!
Our members are active and have power over 200+ but any willing member is welcome.

tenor.gif


Thanks for the attention and have a nice day.

The memory card problem on my Android phone disappears and appears

Did you check that the type of card is compatible with your phone? Some types of memory cards are too slow for the latest models, if that's the case it could explain why is so hard for your device to work with that specific card..

Also, as mentioned in previous replies by changing memory card or device you could find out if the card is faulty or just doesn't work wit your phone.

Android Emulator Web Browser Needs Camera Permissions on macOS Catalina

Hi, I am in charge of testing a mobile-compliant website that also needs access to the device camera and microphone. I needed to expand the ability to test different Android devices, so I downloaded the Android SDK and created virtual devices. However, if I set the camera of any virtual device to "Webcam0" (to use my computer's webcam) and go to the url via the built in web browser, the entire emulator crashes immediately. macOS then generates the following report:

Code:
Process:               qemu-system-x86_64 [1487]
Path:                  /Users/USER/Library/Android/*/qemu-system-x86_64
Identifier:            qemu-system-x86_64
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        studio [1288]
Responsible:           studio [1288]
User ID:               673642719

Date/Time:             2020-04-29 11:50:56.314 -0400
OS Version:            Mac OS X 10.15.4 (19E287)
Report Version:        12
Bridge OS Version:     4.4 (17P4281)
Anonymous UUID:        B56B5142-EE7D-3D95-B70C-861201C1208B


Time Awake Since Boot: 2200 seconds

System Integrity Protection: enabled

Crashed Thread:        63  Dispatch queue: com.apple.root.default-qos

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace TCC, Code 0x0

The "Namespace TCC" points to a privacy issue. The new Catalina makes it v hard to access the camera (https://carlashley.com/2018/09/28/tcc-round-up/). I have googled how to work around the issue for Android development and the responses are something like the following:
That's great for someone who is actually building a native Android App, but I just want to launch the Android emulator and use its default web browser to test a website.

1. Is it overkill to use Android Emulator for this purpose? In other words, can I simply go to Dev Tools in Chrome desktop and resize the browser to the target dimensions of whatever Android device I want to test?

And

2. If it were not overkill / I had to do it via the Emulator, how would I do it? My hunch is to build a custom Chromium apk with the NSCameraUsageDescription settings in Info.plist and put it into the emulator via instructions here: https://developers.google.com/web/t...er-browsers#chromium_content_shell_on_android but that would require pulling down Chromium and making a custom build.

There should be a happy medium between these two solutions, right?
Thanks.

VS

Hi! I currently use the Galaxy S9, but I would like to change my smartphone to a newer one, such as the Galaxy S20. I use the gadget for games and photos, so these two factors are crucial.

In terms of taking photos, the new smartphone will definitely be better, I'm sure of it, but what about performance. My country officially sells a model with an Exynos processor, but in the case of the Galaxy S20, the Exynos 990 processor does not work well, at least some owners say so. My Galaxy S9 runs on a Snapdragon processor, and there are no problems with it. I compared Snapdragon 845 and 990, the second one was better, but it's in the benchmarks, what about real tests?

https://nanoreview.net/en/soc-compare/samsung-exynos-990-vs-qualcomm-snapdragon-845

Filter

Back
Top Bottom