I'm trying to follow the Android Developers site to build my first project up and going. I followed all of the instructions for creating a new project. The problem I'm running into is that I can't see the device preview. I have tried changing the device, cleaning and rebuilding, switching views, restarting Android Studio. Image here.
change your android theme and android version........
see the picture below to make changes..I hope its help u.
You need to enable the developer settings on the device, follow these steps:-
Step 1: Go to the settings menu, and scroll down to "About phone." Tap it.
Step2: Scroll down to the bottom again, where you see "Build number/ Android Version."
Step3: Tap it seven (7) times (Build number) & thereafter reconnect your device.
That's all :)
Good luck & hope this helps.
Related
I am new to android application.
i have downloaded Android Studio from http://developer.android.com/
I just created one project and click on run button.
but it just keep showing me from past 2 hours
what should i do now ??
is there any step by step instruction that i can follow?
This is usual, there are some tricks to avoid this, see this Why emulator is very slow in Android Studio?, and i use BlueStack for debugging. it's better than anything.
I had someone build me an Android app ( a fairly simple Fiverr gig, I just want to use it to check how certain things look 'under the hood').
I'm a total noob with android, but I want it to run in the emulator.
I've got eclipse and have set up the emulator (using a mac btw)... now what do? I had a look around but couldn't find an existing guide. Please bear in mind I'm a total moron here - if there's a step-by-step guide somewhere then please do point me at it.
Apologies for being a total idiot, any help would be great - thanks!
This tutorial would help you http://www.mkyong.com/android/android-hello-world-example/
Btw, step by step is that,
You have already created your project.
Create a new AVD (Android Virtual Device) for the device setting you require. (http://developer.android.com/tools/devices/managing-avds.html)
In eclipse project explorer, as shown in the image http://developer.nokia.com/resources/library/nokia-x/doc/images/intro/eclipse_run_as_android_application.png
Right Click your project --> Run As --> Android Application
Or
Right Click your project --> Run As --> Run Configurations --> Select Device
With this you can view your app in the emulator.
This question already has answers here:
when i start eclipse and run android project, it opens a new emulator every time ,
(3 answers)
Closed 8 years ago.
In eclipse When I run android application it always Launching a new emulator with Virtual Device 'xxx'.
But I want to run current running emulator.
How to make it possible ?
Right click on project->Run As->Run configuration->select Tab Target->select Radio button " always prompt to pick device" ....
so it will always give prompt to select emulator....
I hop it will work for u...
your application Target mode has set to manual. To solve :
Right Click on your project-> Run as -> Select Run Configurations -> In that select Target
Tab ->Select Automatic instead of manual
Click on Apply and run.
hope it help you.
All right in the project explorer Right click on your project and goto RunAs..->Run Configuration. Then goto the target tab. I think you might have some miss-configurations there. Just choose the option that best suits you. Hope it helps. Just let me know if you still can't solve it.
Follow this steps it will help you.
Try this,
Just Right click your Project name --> Run As--> Run Configurations --> Target Tab --> pick up Always prompt to pick device --> Apply / Run.
Select "Choose a running Android Device" while running
And close the adt application from your task manager
If that also doesn't work click reset your adt from eclipse devices
I have a problem when I select any project then I go to Properties and then select Android. The problem is that when I select Android it remains loading.
I had this problem before and i know what i'm gonna say is somehow weird but it worked for me.
After opening Properties window and before clicking on Android re-size the window as small as you can such that you still can see the Android label to click on it :D, click the Android label and wait for 1-2 seconds then re-size the window again. i hope it works with you too.
Try to install the latest version of Eclipse. That should solve the loading issue in the Android project properties window.
Hi I know this is a real silly question but I am following the instructions to create an app for android. Im currently here... http://developer.android.com/training/basics/firstapp/running-app.html
Ive already set up my first app as per instuctions, Ive enabled debugging on my phone, but now Im unsure what file to open in eclipse before clicking "Run as"-> "Android Application".
Any help would be great thanks
You don't need to open or close any file(s) for running the app, just make sure the project you want to run is selected in the project explorer on the left side. But I assume that you only have one project at this time so everything should work as expected
EDIT
If you want to test your app on a real device from Eclipse, make sure the required device drivers are installed. You can go to Run -> Run Configurations -> target and check if your device is listed. In case that is not, some drivers are missing.
Select your MainActivity and click run. It will prompt a box where you can choose weather you want to run in device or in emulator.
To run in real device See my post. It will help you.