I have a really strange problem. When I use my phone, with the 'AIDE' app, to compile my game, it runs smooth at 60fps, but then, when I use Android Studio to compile, it runs at max 40fps, and gets reaaaally laggy.
I'm using the exact same code, so that shouldn't be the problem.
Someone who have had a similar problem? Or anyone simply know the solution?
All help will be appreciated :)
/GuiceU
Presumably you're running it in debug mode when you're using Android Studio, which will always make execution far slower.
Found a solution, it was my code, apparently. The problem was that I was decoding an image Drawable to Bitmap on every update. But I don't know why it worked on AIDE.
Related
Hey guys and girls for a the past week I've grown a lot of interest in android studio (even without knowing quite much about it) I decided to create an app that I deemed quite useful. However the app required maps to be integrated in it and I really did not know what I was doing and at one point I started messing with the settings and then all hell broke loose and I kept getting AAPT2 errors and I even tried to fix this issue with the gradle properties line that you add (I forgot the line of code to add). Anyways it still didnt work. However I rembered that I always kept the good version (before I broke everything) of the app on my phone. So when I go in my phone the app is there and it works just fine. Ive tried so many things to get the source code from the app on my phone without any succes. My question is, how can I get the source code back from the working app onto my laptop to continue coding in android studio? If it helps I am using Linux 18.04 LTS and running the newest version of android studio. Thank you for any help from you guys. This means a lot to me.
You can’t get back the ‘source code’ from an already compiled app.
You should consider using some version control platforms like git from the next time
so i have been using processing for quite a while and i am currently really into the android mode.
i have got the newest version of processing and the sdk's installed, and i am also able to run my code on the phone.
One thing that really bothers me is that after every single line the error checker tells me things like "the function size(int,int); doesnt exist".
its not that much of a big deal since my code still compiles and i can run it, but its kind of going on my nerves.
btw there was a discussion considering that once, but no one seemed to have a solution.
thanks in advance :-)
If you want you could use Android Studio to code Processing in Android, then you wont have this issues plus you get autocomplete and a lot more. I made a project mixing Processing and Android in Android studio here: https://github.com/josemg08/ProcessingFragment
Hope I've been of some help, Regard Jose
I have thoroughly searched on the web but I couldn't find anyone with my same problem.
I'm working on a 3D game for Android using Unity. Everything works fine within the editor and on the Unity Remote app, but when I build the project, install it on my smartphone and start it... I can't see a game object.
A screen of the project:
As you can see, the sword is active and visible in the editor, but once I start the actual build I get this:
I can't understand what's wrong, could someone kindly help me? Many thanks.
Does the material of the sword have the standart shader?
If so try one of the mobile ones.
Another idea would be to upgrade to one of the newer p versions of Unity.
Since the sword has a rigidbody, have you enabled gravity and somehow disabled collision and its falling through the ground?
Other than that, it could be a shader problem.
Problem solved. I upgraded from Unity 5.3.2 to 5.3.4, re-built the project and everything works like a charm now.
Sometimes Unity can be... strange.
I have had this weird problem with android studio, The UI seems to ghost randomly and will disappear when I click somewhere in the software.
I have searched around and can't find anything that seems related, I have wasted hours trying to figure out whats causing this, anyone got any idea?
It looks similar to when a system lag's really bad and UI messes up, but this is definitely not the issue.
Its android studio 1.4 on Windows 10.
Any help would be greatly appreciated.
Image Below:
Android Studio 1.4 UI
Delete android studio, including the user settings, and reinstall it again. That worked for me very well for me.
I have used this site to help me with the apkTool in the past, however I have today come up against an error I can't quite get my head around.
I am DE-compiling an APK which was written by a predecessor as it requires a few tweaks and he hasn't left any source files behind..
So, As far as I'm aware I have the latest tool available, using windows 7 64bit.
I have added the framework from my test tablet which the app runs fine on. And this is what I get..
This is the error screen
http://img199.imageshack.us/img199/4291/63yc.png
Anyone have an idea at what the issue is here? Any help really appreciated.
There's an open issue on a similar exception (scroll to the bottom):
https://code.google.com/p/android-apktool/issues/detail?id=477