Android activity for User option in Jelly Bean? - android-activity

Could someone tell me what is the activity of User option in Android 4.2 tablet?
I want to start this intent by "adb shell am" command but i don't know that activity. Does it exist or not?

After direct check I confirm am is available on my Google Galaxy Nexus, Android 4.1.2. This is quite close to 4.2.
adb shell am prints the two screens of the built-in documentation that may help.

Related

What happened to the Remote Devices panel?

I'm running Chrome 80 and while getting ready for mobile debugging I observe the following:
The panel has been migrated to its own tab and its functionality has changed. I checked the changelog but there is no mention of this change. One of the features removed with this change was a way to import the device dimensions and properties into the Emulated Devices panel.
Is there any place to read up on this change and its reasoning? Even if it's a pull request I'd be happy.
Source code is the best documentation, so one way to find out is to go looking for this string:
https://cs.chromium.org/search/?q=%22this+panel+has+been+deprecated+in+favor+of+the%22&sq=package:chromium&type=cs
When you look at the history of file /src/third_party/devtools-frontend/src/front_end/devices/DevicesView.js, there is this recent commit 6239c24: "Remove "Remote Devices" panel":
https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1909383
with the following document attached:
https://docs.google.com/document/d/14qasCOYYELcWtAp-y6N147Mvjv7eWmRsx1hFCB2M6w8/edit
DevTools has the "Remote Devices" tab which allows you to inspect devices like smartphones via technology like ADB. This functionality implements a subset of the features in chrome://inspect/#devices. To remove duplication and confusion for developers ("Which of the two tools should I use?", "Why does this panel not have all features? Oh I should have used the other one", and for devrel folks writing articles: "Which tool should I reference in my guide"?), we should remove the "Remote Devices" panel.
So maybe not what you expected, but it seems there's nothing more to it. Every rewrite has its lost features.
It looks like I've found something, which worked for me, I had to install this:
apt-get install android-platform-tools-base
then I had to re-enable debugging in my mobile phone settings (like this ) but it looks different on different Android devices. Also I had to reconnect USB cable several times, because this technology is still very unreilable.
Then I had to go here:
Debian 10:
I had to
sudo apt install android-tools-adb android-tools-fastboot
then run
adb devices
then I was able to see my device in the
chrome://inspect/#devices
menu.
You think they could have linked to some instructions about that on the page, or in the notice about deprecation.... The docs on google itself are out of date on this, and I had to hunt this answer down after going through several SO answers from 2012-2019 that were incorrect.
I followed the instructions here.
You can run adb devices (need adb drivers) in a terminal to start the deamon. Then you will see your devices in the list.

emulator broken: This adb server's $ADB_VENDOR_KEYS is not set

Well a windows 10 update broke sleep, the computer went to sleep with the emulator open and now that's broken. When I run an app to launch in the emulator it will boot the emulator but won't install just time out. When I try and run an app into a running emulator instance Studio says:
com.android.ddmlib.AdbCommandRejectedException: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
Error while Installing APK
I've followed some of the other threads here. I've tried changing
the environmental variable in control panel, but in fact I think it
pointed to the right place originally, where the sdks are these
days.
I've tried restarting the PC. I did try deleting a couple of
adb files, that didn't work.
I've tried deleting all the sdks and
downloading them again.
I've tried uninstalling and updating Android
Studio, several times. Now on AS 3.1, still not working.
Bit of a nightmare really.
How do I set the vendor keys? Using AS console commands? Can anyone point me to a dummies guide, this is a bit of a tangent for me, wish I could fix it from the GUI.
The working fix for this particular issue is to enable Developer options on your emulator and enable "USB Debugging".
OK so eventually downloading a nexus 4 x86 image android 27, with no play store worked. Sorry if this is repetition. Long live working emulators
Combining answers from here and there gives an answer that also worked for me in IntelliJ IDEA. I assume the issue is the same, since the emulator and AVD is the same.
Option 1:
Restart the emulator from AVD
Option 2:
Wipe the emulator data
Option 3: Stop the emulator. Then make sure it is up to date and try again.
If it still does not work, restart the adb server and retry.
adb kill-server && adb start-server
If it still does not work, perhaps your adb is out of date... somehow. This was the case for me. Running the following fixed that for me.
adb devices
adb server is out of date. killing...
* daemon started successfully *
List of devices attached
emulator-5554 device
If it is now working for some emulators but not newly created ones, take note of the message in the emulator selection box: "Press Ok in the Allow USB Debugging Dialog"
Sadly, there is no such dialog. So go and enable Developer Mode in the settings of your emulated OS by tapping the Build Number several times. Then go to the Developer Settings and enable USB debugging.
After recent upgrades of emulator, the virtual device*) stays unauthorized. When I cold boot the emulator, sometimes I see the expected confirmation dialog, but this dialog goes away immediately, leaving no chance to click 'OK'.
We're aware of this problem and plan to fix it soon.
* Here, I was running x86 with API 28 and Google Play on Windows 10. I don't know which other scenarios are effected.
For anyone who might encounter this in the future -- I mean the ultimate issue of receiving the error, "This adb server's $ADB_VENDOR_KEYS is not set" despite not having any (or any sufficient) opportunity to click OK...
Resolution: In the Developer Settings, select the option to, "Remove existing authorized adb keys on device." Repeat the previous action -- the prompt will once again appear, as if the very first time.
-Mike
Go to developer options in your device and click on 'Revoke USB debugging authorizations'. Disconnect and reconnect your device. You'll get a prompt on your device to authorize your computer to connect to your device. click on 'OK' and your set.
Basically, the authorization key has gone out of date or it's no longer present. So, we just have to set a new autorization key and revoke the old ones.

Starting 2 emulators in android

I was wandering if there was any easy way to start 2 emulators in android. I have looked at the developers guide but theres not enough information to help me. Please could someone explain how this is done. Thanks
To my knowledge you can't start the same emulator twice, but by creating two separate emulators you can start them both at the same time.
You create new emulators using the Android SDK manager's ("SDK Manager.exe", located in your android install directory) "Virtual Devices" tab.
You can then start them in the command prompt using
emulator -avd <avd_name>
More info here: https://developer.android.com/studio/run/emulator-commandline.html

There is no Calendar in the Emulator

I am building an application that accesses the Facebook account and gets the events then add them to Android Calendar.
There is no calendar in the emulator.
We tried to setup the Calendar.apk but it did not work.
Any idea?
I want to add events to the calendar through code directly. Is it possible or I have to add them to the online google calendar?
Any API?!?
I believe Calendar is a part of Google Apps. And there's no GApps on emulator by default.
You can try this solution.
They're trying to get Android Market on their emulator, but I believe there's a Calendar and Mail and all other GApps all included in their OS image.
I also needed calendar on adnroid emulator. The solution was next:
download Calendar.apk (native android calendar)
install it wia adb (http://developer.android.com/guide/developing/tools/adb.html) with the command
adb -e install Calendar.apk

how to run android emulator with TTS enabled

i hope i am not posting a duplicate question, can anyone please tell me how to enable TTS in android emulator enabled when eclipse starts it when we run the project.
is it that i have to start with SD card or sth like that?? Also for some reason when i go to my Run Configuration in eclipse i don't see any field to pass arguments for emulator.
thanks
I had this problem and solved it with the help of one blog.
First we should have SDcard.
Second download tts*.apk
open the cmd(in windows environment)
type adb instll tts*.apk (this will install tts to android emulator)
following this steps will be OK
good luck