FAQ Database Discussion Community


Same SQLite Query doesnot run in all the android version

android,android-sqlite,android-version
I am executing the following query in the SQLite : SELECT * from ValueTable where SrNo = (with t as(SELECT SrNo,Value2 from ValueTable where Value2<'600' ) SELECT SrNo from t order by Value2 DESC limit 1) The table schema is SrNo Value1 Value2 1 200 450 2 500 350 3...

Android versionCode programmatically

android,android-version
Is there any way to know dynamically and programmatically the versionCode of an Android application?? I donĀ“t know... maybe something like getApplicationContext.getVersionCode(); Thank you very much....

Android - App crashes on some devices at same line

android,android-activity,android-support-library,android-version
I published my Android app on Google Play and I get many reports about crashes from some devices. At first I thought that this is a SDK version problem, but after I update, it still happens. Here is the report log that I get: java.lang.NoSuchMethodError: android.view.Window.setStatusBarColor at stefanmaimon.milab.blenders.MainActivity.onCreate(MainActivity.java:81) at android.app.Activity.performCreate(Activity.java:5451)...

Paid and Free versions of android app

android,gradle,android-version
I am wondering what is the best way to have two different versions of an android app. I would like to have version of my app with ads and one without ads (the paid one). What is the easiest way to achieve this ? I have found something called version...