android program crashing (new to platform)
Date : March 29 2020, 07:55 AM
seems to work fine You may forget to register your activity name in the AndroidManifest.xml. It is a very common mistake for starters. AndroidManifest.xml should be like this: <activity android:name=".TipCalculator"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
|
What Android platform to program to?
Tag : android , By : Jonathan Bernard
Date : March 29 2020, 07:55 AM
it should still fix some issue Yes, psychcio, if you develop an app for android 1.5, this will run on android 2.2 or 2.3. Choosing a higher version platform depends on you want to use (or you need to) some new api, that doesn't exist on previous ones. In my experience, I used to develop for the minimum android version.
|
How can my C native program detect if it's running in Android platform
Date : March 29 2020, 07:55 AM
hop of those help? I am coding some C app on my Linux laptop, but at office, will occasionally port it to an android platform using ndk-build. Every time I switch platforms, I need to change a bunch of paths specific to either my laptop or the android platform. So I currently set it up something like: , Put something like this in your Android.mk LOCAL_CFLAGS := -DANDROID
|
android program freezes/glitches for half second every 6-8 seconds
Date : March 29 2020, 07:55 AM
hope this fix your issue As you already know that it is a bad behaviour to do new objects in the onDraw() method, and in this code you even call new objects in a loop! So GC will drag you slow from time to time. To avoid this, you would create a "point poll" out side the onDraw() method, and create/cache the instances as long as you need them.
|
Android-sdk: no folder named "Platform-tools" in Program Files(x86)/Android/android-sdk/
Date : March 29 2020, 07:55 AM
|