android app displaying different content than ADT - android

So I am developing an app and I am not sure what had happened. I have everything set up correctly on the ADT but the emulator and my device show up differently. I'm not sure what code to put up. I have tabs with scrollview and text on the ADT but my device just has no tabs and the text overlaying eachother

First thing I would personally try would be to uninstall the application from the mobile device and rerun the code. Second thing to check would be the resolution off both devices? Maybe your mobile has lower resolution than the emulator and as a result the displayed output is a mess? Are you getting the expected output displayed in the emulator? I am nowhere near good at android development, but that's what I would try. Hope I helped at least a bit.

Related

While running the application on android device, controls do not display properly as designed in android studio

I have been facing this issue while creating any android program/app using android studio. Whatever I design in android studio, it is not displaying properly as designed in android studio while running the app on my phone.
In short, sometimes size and the places of the controls get changed while running the app on my android phone. Please help. Thank you.
That's probably because of the difference in screen sizes of your preview and your physical phone . I've recently started using constraint layout and I think it's the best so far, a bit confusing at first but easy to understand it, it even has an option for percentage of width/height of the total screen for a view. Try that out.

Android Studio 2.3.3 issue where the virtual phone UI appears in the top left of the virtual phone, but functions correctly

Hey, this is an example of the issue I'm having with Android Studio. I dont think I have made any changes from my first few programs which worked fine and the UI filled the whole Emulator screen
This is the 4th ever app I've written for a web dev class with android studio. I have written 3 other apps that did not have this issue with the phone. But after starting up android studio today to work on the next project for a class the issue in the picture would take place. The Virtual phone works properly but just has a very badly sized image instead of the full virtual phone screen.
I've sent a copy of the program I've been working on to my professor, but haven't heard back yet. Ive also tried to uninstall and reinstall Android Studio but the issue still remains. If anyone can give me a few hints or help in resizing the image to the correct size in the Emulator it would be much appreciated. Thank you very much.

Android App doesn't work on all devices

I'm trying to make a very simple android app using Android Studio, it should open with a splash screen, then open a WebView.
I made it, and it works perfectly on my phone (with android 4.4.2), but when I try to use it on other device, I only get a white screen. I tried to use on a phone with android 4.1.2 and 6.0, none of them worked.
Any ideas where could be the error?
Edit:
Here's the files
https://github.com/gethuliogripp/kitexp
I've come across this problem and I was getting no errors as well. You have to make sure the images you use in the app such as your web view and splashcreen actually fit the screen so the app doesn't run out of memory. So make sure your images in your drawable are almost the same size as your phone screen, for my background i made the image 3in by 5in and my app works on all devices now.

android studio emulator loading but not working

I have used Eclipse to write apps for android multiple times without issue but I am now trying the new Android Studio which I like but here is my problem.
When I run the app I pick my AVD and then tell it to start. The emulator starts loading and then says paired. Then it starts telling me to swipe up and left and right to display and remove cards. Then it says to put hand on screen to dim the screen, ok well I'm on a MacBook Pro so that don't work I swipe to get past that part sometime I can others I can't. Next it says to touch the clock and say some words which also can't do on my Mac, and that is where the emulator stay it never goes to a home screen and it does this no matter what AVD I choose. How can I get the Emulator to just plain open to the home screen like it should.
Thanks for any help.
In your AVD Manager, edit your AVD and make sure your Target is "Android L" and not "Android X.XW". The "W" stands for "wear" and that is causing your issue.
Alright I figured it out. I remember having a similar problem recently when I was taking an android development class for college using eclipse and sure enough that was it.
So here was the solution eclipse gave same problem. for some reason if you have caught exemptions such as hard coding a string etc. the emulator will not run till you ignore these exemptions or fix every last ! mark in your code. Once you do this the emulator will load and run properly.
I also had the same problem with my AVD. The Android Emulator window just used to pop us and the green bars flowed infinitely. After lots of trial and error I arrived at a solution for my problem. the problem was with the Heap size and the RAM size.
Initially the default heap size was 128 MB and RAM was 1563 , I just changed the heap size to 512 MB and reduced the RAM size( high RAM was making my PC run slow) also I enabled hardware acceleration. And Yipeee, it worked.

Qt GUI is not behaving normally on Android

I have created an application in Qt Necessitas. When I start it on my Android device I have a GUI which is very different from what I see in Qt Creator.
For example: I have created spacing between a label and textbox and when I start it as a desktop app everything is okay. But when I port it to Android it seems it's not working. And then my textbox is smaller than in the normal GUI in Creator, as are the buttons and so on.
What might cause this and what can I do about it?
And one more thing: I have a problem with resizing the app size to the max of device window. But I get error about loading fullscreen FALSE.
I have started Qt Mobile application. Everything is done in mainwindow. So I have put all commands on my mainwindow. I don't know what to do. If you need a specific file please tell me, so I can post it here.
Try making your Mainwindow smaller and play with sizes. maybe the resolution you are using is not supported by the device.

Categories

Resources