HTC One offline in Eclipse Android device chooser - android

In Android Device chooser, it shows AVD name: N/A , Target: unknown , state: offline.
Any idea? I'm using the latest Eclipse and ADT. HTC is running on android 4.3.

If the devices tab isn't showing, Window > Show View > Other, then select Devices from the list.
Go to the Devices tab, above the top right of the tab pane is a downward triangle button (with a View Menu tooltip), at the bottom of its menu is Reset adb.

Related

Error running 'app: No target device found. Android Studio 3.6 Preview

Aa beginner, failed to run my first Android Application on Android Studio 3.6. How can I make the right setting to see the preview device in the emulator?
I tried the same question and discussion, but failed to solve my problem.
Here's the problem: You don't have any virtual devices. Here's a screenshot of what you probably should have to run (In AS 3.6 Preview):
Compare this to your picture where it says "No devices". So, I'm going to walk you through creating an AVD.
Now, since I do have AVDs, I'm just going to create one. click on that drop-down menu that for you says "No devices" and click "Open AVD Manager":
In the popup click "Create Virtual Device..."
In the Virtual Device configuration popup select the device you want and click "Next".
Choose the system image you want (you can go to the other tabs to see what's there) and click "Next"
Then name your AVD and click "Finish"
Now you should see your new Android Virtual Device:
Closing out of it, you can now run your application with the green "Run" arrow!
I hope this helped!
First try this-
Go to the bottom left of Android Studio then click on the square (the one which show/hide the tool on the left, bottom and right) then on Designer. A new tab should be on the right part of android studio, with gradle and maven project.
If still doesn't work, try this -
If you double click on your .xml file tab at the top it will maximize the designer window. Then on the left you can drag the window to shrink and it will reveal the palette. Then just click on the tab on the left to open the project window.
After connecting the device , go to Files -> Invalidate Caches/Restart -> Invalidate and Restart

Strange sound produced by Android Emulator when turned on in Android Studio

I've just update my Android Studio together with the Android Emulator to the newest version. After I click "run" in my project and selected my emulator, it boots up like normal. However, when the app pops up, I can hear some strange noise produced. I've made sure that I didn't set the app to play any sound. Link to the strange noise
Android Emulator: Galaxy Nexus API 27
Android Studio Version: 3.0.1
Turn off Touch Sounds on the Android device/emulator.
You can find it under Settings -> Sound & notification -> Other sounds -> Touch sounds
That sound was actually the notification sound of the emulator. Since my app is in landscape mode, it needed me to configure the keyboard in landscape mode. So the notification came out.
On Android 10/11/12 emulators, this odd "sparkle" sound happens when rotating the device to landscape or portrait. Here's how to turn it off:
Launch your Android 10 or 11 emulator (API 29 or 30)
Drag and pull down the notification bar at the top (screenshot A)
You should see a "Configure physical keyboard" notification from the status bar. Drag it to the right slowly and by a small amount, to reveal the settings cog icon ️️⚙️ (screenshot B)
Press the Settings cog icon ⚙️ to reveal the expanded options (screenshot C)
Click on "Silent - No sound or vibration", then click "Apply/Done"
Optional: If a "Configure physical keyboard" notification still appears, swipe it to the right, to remove it.
Another way - Android 10/11
On the Home screen, swipe up to reveal all the apps
Settings ➔ Apps & Notifications ➔ Notifications ➔ Android System ➔ Physical Keyboard (and/or Virtual Keyboard) ➔ Switch it off or click it and set it to Silent.
Another way - Android 12 (API 31)
On the Home screen, swipe up to reveal all the apps
Settings ➔ Notifications ➔ App Settings ➔ Click the '3 dots' menu at the top ➔ Show System (to reveal system apps in the list) ➔ Android System ➔ Physical Keyboard (and/or Virtual Keyboard) ➔ Switch it off or click it and set it to Silent.
Now there are no more annoying noises when changing the emulator's orientation.
Try using emulators, like genymotion or bluestacks. They are pretty good. On the other side, in my experience, Android Studio emulators are very slow and buggy.
It can be due to multiple reasons:
One of the reason is
If you turn your laptop Bluetooth ON. If that is the case, turn Bluetooth off and restart the emulator.

Eclipse Android Emulator not working on Microsoft Surface Pro

I cannot get an Android Virtual Device to launch on my Surface Pro. I have had no problems on Windows XP, 7, or OS X.
I have tried launching from the AVD Manager, it opens the option dialog and when I select launch it acts like it is working, however the emulator never shows up.
When I select Run As Android Application from a project it acts like it is starting, once again nothing ever shows up.
Either way I get no error messages in the console.
I have tried disabling UAC.
Thanks for your help.
Right-click the program's icon and choose Properties.
When the Properties dialog box appears, click the Compatibility tab and then click the Run Compatibility Troubleshooter button.
Windows 8 tries to guess what version of Windows your program needs, and then it applies the changes. If the program begins working, you're through.
If the program still has trouble, though, move to Step 3.
In the Compatibility Mode section, select the Run This Program in Compatibility Mode For check box and select the program's desired Windows version from the drop-down list.
http://www.reddit.com/r/Surface/comments/1ael60/surface_pro_and_dj_software_also_android/
Please refer to my question and answer here:
< Android Emulator and AVD will not run on Surface Pro >
As it turns out you can run the Android Emulator and AVD on the Microsoft Windows 8 Surface Pro.
You will need to rollback the graphic drivers:
< http://answers.microsoft.com/en-us/windows/forum/windows_8-hardware/latest-graphics-driver-update-makes-bluestacks/1f67d99f-3626-4110-aa22-773856b226cb > Method 1: I would suggest you to roll back to the previous driver.
a) Press Windows key + X on the keyboard.
b) Click Device Manager.
c) Double-click on Display Adapters.
d) Double-click on your Graphic Card Drivers
e) Select the Driver Tab
f) Click on Roll Back Driver.
I still recommend using Bluestacks as an alternative method for Android Emulation.

Cannot see debug output when running android emulator

I've setup android in eclipse according to this tutorial. I downloaded the android sdk zip file from here and unzipped it to my c drive. Android sdk 2.3.3 api level 10 is installed and I have setup an android virtual device in the android SDK and AVG manager. The settings are as follows
In Eclipse, when I go to - 'Window -> Show View -> Android -> LogCat', the logcat view opens up. When I start the emulator however, I see absolutely nothing in the logcat window. Any ideas why this might be happening?
==============================================================================
Update Unfortunately none of the suggestions are working. I don't see anything
in my devices tab at all. It's empty. See image below.
In that case try to reset adb.
Go to the Devices view in the DDMS perspective.
Click on the View Menu button that looks like a down arrow.
Select Reset adb.
Of course you'll have to select an application on that device first.
Try opening the DDMS perspective (in Eclipse, Windows -> Open Perspective -> DDMS), then select the device in the Devices tab (by default in the upper left hand corner). Also make sure the LogCat window is showing too.
I've noticed that sometimes the LogCat window stops updating, but changing the filter (Verbose-Debug-etc) by clicking the round white buttons with letters inside fixes it.
Probably device is not selected for your logcat.
try 'Window -> Show View -> device and then select the emulator
May be because your device is not is not selected
In your Devices tab (where all the running emulators and devices are shown), select your desired emulator
If your eclipse didn't shows Devices, then Window -> Show View -> Android -> Devices
Close the logcat window completely ... kill it ... it's stuck ... then Window-> Show View -> Other -> LogCat

How to create a Virtual Android device 800x400 that I can see on my laptop?

I want to create a virtual device (nexus one) with wvga800, 800x480 but when I do, I can't see the whole screen on my 13" macbook pro, and I can't scroll down to see the bottom of the screen. How can I see the bottom of my virtual phone screen???
thanks,
You can scale your emulator window, to more closely match the actual device size. This is an option when you run the emulator from the Android SDK and AVD Manager. This is the window you get from running the android command, or from Window|Android SDK and AVD Manager in Eclipse.
Not only will this give you an emulator window closer in size to what the actual device is (so you do not assume people can necessarily click on too-small buttons, etc.), but it will also fit your screen.
This is actually possible from your project as well, no need to start the emulator through the manager:
1) go to Run > Run Configurations... > (Select your application on the left hand side) > (Click the "Target" tab on the right hand side).
2) At the bottom there, you'll see 'Emulator launch parameters'. In the 'additional emulator command line options', add '-scale 0.75' (to make the screen 75% of full size)
Next time you start the emulator it will have scaled properly, hooray!
Ok, I found it, you have to START the emulator from the AVD Manager, after you hit the 'START' button, another window pops up allowing you to set the size of the emulator display.
If you run a project from eclipse, you will not get that screen to set the size of the emulator.
To view full emulator make use of it's full screen mode using alt+enter keys on windows & Linux. But, for mac I'm not sure b'cos i have not checked for it; it has to be same like making your media player window full screen. Please do check for mac & update my post.

Categories

Resources