I'm trying to see the contents of a database I'm using through the execution of my program via DDMS. I've looked at lot of questions on here that explain how it's done. My understanding relies on the fact that on clicking Tools--> Android--> Android Device Monitor, there is a change in perspective however nothing of the sort happens when I do the above. In fact, there seems to be no indication at all, that I selected the Android Device Monitor. Could someone please point me in the right direction of finding out what could be wrong?
Going off what #will421 said in the comments, I ran monitor.bat and the typed out monitor in the console (Both needed to be done.) and then I was prompted to enter my sdk path. What tripped me up was the fact that I had two folders labelled sdk and sdk1 so choosing the right one is important. To view the contents of the dtatabase, I just followed along with the great answer at View contents of database file in Android Studio
Related
Prerequisites: Got a working app from a friend who needs some changes made. They were outsourcing and now want to internally manage it.
I come from a web and game dev background, so Android/IOS development is new to me, but a lot of the principles seem to be the same.
I got the project onto my device, installed all of the dependencies, and fixed all of the file paths.
The app successfully builds, and I have my virtual Android device running it great!
However, my buddy wants some really simple layout changes, and for the life of me, I can't find where to just edit the home screen layout. I was trying to solve my issue from a web dev approach, by grepping where the logo screen is used in the app, but those files seem to just load a white "background" layer, and not the entire composed page?
I'm missing something really silly here, and I just want to ask a real person on here, instead of digging through documentation and trying to word a condensed question in a Google search.
Here are my condensed questions: How can I just edit the home screen of my app in Android Studio? Where can I find the full home page file to view the entire layout, and not just a fragment?
Edit: The app also utilizes the Flutter SDK, which may explain why I have been having trouble with layout edits. I'm going to look at it again after work today, and hopefully answer my own question. I appreciate the help so far!
Edit 2: After going back to the app with a different approach, I found out my project had defaulted to the "android" sub folder of my master, and wasn't showing any of the Flutter .dart documents. After going up one folder directory, I was finally able to access that Main.Dart file with the display information.
I was able to mount it for inspection, but its saying my emulated device isn't supported. I need to look at it when I have time tonight, and may need to ask a separate question for it. I have my project sdk set to Android 33, and my virtual device is set to Android version 33. I searched around Stack, with a few people with reporting similar issues. I tried following their solutions, but it didn't seem to work.
I was just trying to configure my machine to be able to test some android apps.
Some of the things I will need will be adb and uiautomatorviewer. To get adb, was easy, just had to download platform-tools from android website. However, when it came to get uiautomatorviewer everything went from easy to difficult pretty fast.
I looked into here https://www.guru99.com/uiautomatorviewer-tutorial.html and as you can see they mention that they install the whole Android studio just to retrieve uiautomatorviewer (which I definitely don't need).
I then noticed that when trying to download android we can download the command line tools only, which is great! Inside, it contained the sdkmanager so I should be able to download everything I needed. So now, following some help from android official website I was able to list all the packages available (the same list that is visible through the Android Studio UI, when opening the SDK Manager). I downloaded multiple packages, just to see which one would bring uiautomatorviewer - none of the listed one's did (I even tried changing channels and list packages). Also, I tried to look into android documentation but couldn't find anything saying which package has uiautomatorviewer, even on Android official docs.
Back to searching.. On a new blog, someone mentioned something about a tools folder https://www.softwaretestinghelp.com/uiautomator-tutorial/#2_Command-line_Tools_Only
So I just tried to do the command sdkmanager "tools" and voilá, inside that package, there it was uiautomatorviewer.
So my question is: why is this not showing somewhere? Did I overlook something? I feel that for such a easy setup I had to go into hell and come back (I've also seen that these folders got changed through the years, but even so.. ). Also was there a easier setup (without installing Android Studio)
Thanks!
Recently I installed Xamarin and the Android SDK in order to mess around with Android development. After spending all day fixing errors before writing a single line of code, this one has me stumped. I haven't found a solution anywhere on the internet.
I have installed the emulator and I have downloaded several system images. I have searched for this config.ini but didn't find which one the error seemed to be referencing. I can build the solution just fine but when I try to debug it just says "There were deployment errors", and in the output window just says "Error: cancelled."
Is there any way to solve this issue?
Thanks.
So I come across the same error message on my device manager. I solved it with following step:
Go to your ~\.android\avd. There should be a folder named
[YourDeviceName].avd. For my case it was Nexus_5X_API_28_x86.avd.
Inside the folder there should be a config.ini. Look for a property
named image.sysdir.1. Mine was image.sysdir.1=system-images\android-28\google_apis_playstore\x86\.
Make sure the your have properly downloaded such image in
%ANDROID_HOME%\system-images.
For me, it seems that I have installed Android SDK twice in two different locations with Android Studio & Visual Studio Xamarin installation, and they have messed up my device manager. So I uninstalled one and moved the images and it worked fine then. While this is probably a year too late for OP, I hope this could help someone in the future.
I just had the same issue.
You solve this problem like this:
Select the corresponding Android emulator device
Hit the Ellipsis character at the upper right corner of Android Device Manager
Select "Download system image" menu item
This will download the missing system images for your Android emulator.
Here are some screenshots, depicting the solution (they're in German):
I suspect Microsoft didn't add these because they're not courtesy of Google. You need to accept Google's license terms when downloading the images.
Hello people of Stack Overflow!
I've been trying to create my first app for a while now using eclipse.
I understand how to create the layout in XML. I understand Java enough to do build simple java applications and work with packages and such.
I've been following this tutorial series and have come to a point where i need to test the app.
[youtube]watch?v=B-HL6QTdOXs
** sorry: not enough rep to make three links **
This is where the trouble is - testing. The emulator from AVD doesn't show my app's icon anywhere in the menu. I have also tried Genymotion, and the same issue occurs.
As far as I know, all of the paths and uri's are correct to link everything up, but it just won't
show.
The directory structure containing AVD Manager and SDK Manager are both located directly on the C drive.
My eclipse workspace is under my user's folder.
When I go to run it as an android application, the option doesn't appear sometimes, but once I clean the project, the button appears again.
Below are some screen-captures I took and uploaded to imgur. I hope somebody can help me.
~ imgur album ~
http://imgur.com/a/VAKuk
~ glewinfo paste ~
http://pastebin.com/1gUJ6xDb
Thanks for the attention! :)
I'm willing to try Android Studio as well, but eclipse I am accustomed to from school.
I don't know if it whatcmade the problem but you dont have any setContentView there.
Your app will not show any xmlfile or even a view.
Make sense that your app will not show anything but i dont think thatvit will cause it to disapear (if icunderstood correctly)
Try fix it and if it does not work please show me your androidManifest.xml file
few days ago, when I was debugging an Android project under eclipse I've found some great functionality: "All instances..." and "Instance count". I wanted to share my findings with rest of my colleagues, but none of them had this functionality in their eclipse install (we all use eclipse 3.7).
What's even more weird now I'm also missing this functionality.
As far as I can tell this functionality is build within eclipse from version 3.3 and available to projects using Java 1.6 and above as mentioned here and here (we're using 1.6).
See bottom of this link to see what functionality I'm talking about. It even has it's own shortcut in options (ctrl+shift+n) so I think there must be a way to use it again.
I was looking for it while debugging and while the debugger was in "stopped" state.
Anyone can help me put eclipse in right view/perspective/state to see this functionality again?
EDIT
Here is the documentation entry from eclipse help page: link
Thanks for any suggestions,
kajman
After some more digging I came to following conclusion:
DalvikVM does not support "instance retrieval".
On eclipse help page mentioned in EDIT section it written:
This command is only available if the Java virtual machine you are currently using supports instance retrieval.
Maybe there is an option to enable this option in DalvikVM, but I doubt it unfortunately.
Also when debugging on phone "Drop to frame" functionality is missing.