Hello Android problem - android-emulator

I am trying the VERY basic tutorial for Android and can't seem to get it to work correctly. Here is a link to an image of what happens when I run the app. It should say Hello Android but it doesn't. I feel retarded.
http://teewebco.com/images/helloandroid.gif

This is a common problem. my thread. The emulator is slow. What you're seeing is the boot screen. Try leaving it for 10-20 mins and see if it boots up. Or, even better, if you have an Android device, plug it in and run it on that. General advice is that once it's up and running, don't turn it off. You can carry on coding while it's still on and it will update.

Related

Flutter app launch janky and need optimisations

The app I have created seems to open quite slow (and janky) compared to other apps on my phone. It only seems to happen on android
I have tried copying the dependencies to a new project and running it and it doesn't replicate the same behaviour.
I have also changed the original app to only load a red container in the matierial app but its still really choppy on app launch before it loads.
I would post some code but I am not entirely sure whats wrong.
Sorry this is quite vague but I am running out of ideas. I dont really want to have to recreate everything in a new project.
Please note I have done the android v2 migration so it could potentially be linked to this?
Does anyone have any ideas to what could be causing it?
Update:
Forgot to mention this is on profile/release mode.. its not debug mode causing it
Well, it's hard to know why your app is being so "janky" but i'm going to make a few shots in the dark:
Are you running this on an emulator or on a real phone? Emulators will sometimes act weird, and will deliver results that you might not see on an actual android device. If you are running this on an emulator, try launching it on a physical phone. I have had experience with using Android emulators and sometimes trying to open the app at all becomes weird. How old your phone is might also be the cause of this, if it is old.
Do you have too many tabs open? Try exiting out of all of your applications and then open up your flutter app. See if that does anything.
That is all that I have concerning the environment that you are working in. You haven't posted any code, so i'm going to have to ask you about what your app is doing on startup. It would be good if you posted some code or a link to a git repository so that I can see that and be of better help.

My ionic app keeps restarting instead of resuming from last active page

I am creating an android app built with angualar/ionic 5. and currently testing with android studio via enabled debugger on an android device.
The apps works well except for one issue.
The app, when minimized or drawn from the active apps lists restarts instead of resuming to the last active page. I am using angular/ionic 5 and I don't believe this is an issue angular/ionic router since this works fine in pwa/browser versions of the app.
I may be wrong but seems to think this may be due to some missing config for android platforms in config.xml . In my search I came across this
1. <preference name="AndroidLaunchMode" value="singleTask"/> //adding this to config.xml but it did'nt work.
some comments suggested memory leaks may be causing android to shut the app down when it's not in the foreground but tracking the apps memory usage in android studio, it seems to be within acceptable range
My conclusion is that perhaps a problem with ionic/capacitor/cordova core or some bug
This is driving me nuts!
If any one has had this problem, how did you solve it please?. and for those experienced ionic developers . what and where would you be looking at if you this issue. Thank you
I tried a different device on the emulator and it worked also tried a different physical device and it worked. this means that the problem is with my particular device. that leaves a lot of questions since a lot of people use my android brand with similar specifications. will the app exhibit same behaviour when downloaded from the playstore? or this is just an android testing and debugging problem.. i will inform you all of what will come later . thank you
In this case I would suggest you to check your device setting you might have mistakenly added this application in battery optimization mode.
Please check your setting I belive this is the culprits. Not your code
Thanks

Download flutter app and code back to laptoo

I was almost finished building my first app with Flutter with VScode when my laptops hard drive crashed. All my code gone... I know I should have made a back up and really learnt my lesson now.. I have the app installed on my phone. Is there a way to get it back on my laptop with the full code?
If you have the debug APK you might have a shot. Have a look at this: Flutter debug Apk decompile to get source code
If you don't have the debug APK you are probably in trouble. The code on your phone is compiled and deliberately obfuscated, since usually you want to prevent someone with your app from getting the source code.
Really hope you can get it back. Good luck

iPhone Project Not Running (more than once)

I have an iPhone app that I'm trying to run on my phone via Xcode.
It installs and runs without an issue
I make a change in the source code (negligible, like an NSLog())
It installs without an issue
Running causes the error:
Error Starting Executable 'myApp'
Don't know how to run. Try "help target".
I uninstall the app, and reboot the phone
It installs and runs without an issue (until I make another change; then I have to repeat this dance)
Needless to say, having to uninstall the app, reboot the phone, and reinitialize the environment (i.e. set prefs) takes an unreasonable amount of time, and is probably indicative of a serious problem. The issue is, the only vague error message I receive gets me nowhere on Google. Where on earth could this issue be coming from?
With some help from #iphonedev, I figured it out. Turns out it's a glitch in iOS 5 beta. The way to fix it is to remove the device from Development Devices, then re-add it.
Yeah just restarting the iPhone with the lock and home buttons fixes this. Had it happen a few times to me

code signing of iPhone application

1) i developed one application.. it is working fine in simulator. does it work in real
iPhone with out any modification..
2)
a) when i select in xcode projectmenu -> SetActiveSDK -> Device-iPhone OS 2.2 getting one
error. but i can't see what is the error, how to solve this ?.
b) if it is not working with Device -iPhone OS SDK, is it work on the real iPhone.?
pls help , thanx and regards.
Good job on your app. It's a good sign that it works in the simulator, but you never know if it will work on the device until you try. Some things will be faster on the device and many things will be slower. There are other differences. It's possible to have your app crash on the device but not on the sim, or the other way around. It's even more common to have memory leaks on one but not the other. XCode lets you debug on either and run the code tools on either.
Signing is a bit of a nightmare. It's easy to mess it up. Follow the instructions carefully. If you think you've messed up your project beyond hope, start a new project and move your source and assets over to it.
At some point you'll have everything working, then you'll turn off your computer or something and you'll get a message that you don't have a valid device connected. Reboot your iPhone when that happens.
Be warned that it's even hairier signing your code for the App store.
Just stay calm and keep trying. Also, ask on Apple's boards. Many people have gone through the trama and shared your pain. Good luck.