Today, I found that how to remove our applications on android device task manager. It's very simple and same as "android:clearTaskOnLaunch".
Today got problem that my apps cannot go Index activity always whenever I've already configured in manifest file.
2 android:name="com.ppshein.inm.IndexActivity"
3 android:label="@string/app_name"
4 android:screenOrientation="portrait" >
5 <intent-filter>
6 <action android:name="android.intent.action.MAIN" />
7
8 <category android:name="android.intent.category.LAUNCHER" />
9 </intent-filter>
10</activity>
Honestly, I've never recognized every top record is missing when I retrieve data from sqlite table. It's really bad when someone point out that one record is missing even it's in sqlite table. That's why got stressed that how come every one top record is missing by following coding.
2 startfrom = Integer.parseInt(cursor.getString(0));
3}
Yesterday, I've encountered this error "server error:405 - HTTP verb used to access this page is not allowed" when I call "http://www.ppshein.net/test.html" HTTP GET from my android program. I'm confused why I got this error even I've tried following url in my desktop browser is fine. Thus I was googling and find how to solve it. After few minutes, I've found answer how to solve this problem. It's quite simple that change file extension to ".cfm" instead of ".html". It's because of web server doesn't let any request containing POST/GET method to any static page called ".html, .htm", will return such following error called "405".
Thanks god that I've got new experience.
Fullscreen in Android
Oct 18
Question : Do you know how to make fullscreen in Android application?
Answer : It's very simple and only one line code to fulfill your desire. You need to add following line in your java file after "requestWindowFeature" line. But don't forget to assign "Window.FEATURE_NO_TITLE" in "requestWindowFeature" just like "requestWindowFeature(Window.FEATURE_NO_TITLE);"
In these days, I've published two updated android application to Google Play (Planet Myanmar News and Planet Myanmar Dictionary). In both of them, I've changed 100% sidemenu UI design like Facebook and GooglePlus for easy to use and navigate. You may ask why I didn't use Tabs and Menu features of android. It's because of I don't want those tabs will overlap on my screen and want bigger screen for my application. For menu, I don't want to use because some android users don't know how to use menu (I mean, which button needed to click to appear menu action).
Today, I've launched new version of android Planet Myanmar Dictionary. I've changed 100% UI and added sync function on it.
Download link : DOWNLOAD

Today, I've totally wrapped out new version of Planet Myanmar News application. In this one, we can read planet myanmar in offline version.

Honestly, it has been so long not to update my blog. That's why I'm too keen to post an new interesting blog post for android. It's how to check wifi network is connected in android. It might be simple and childplay for those who has already got it but for those who didn't know yet might be interesting.
2 ConnectivityManager connManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
3 NetworkInfo mWifi = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
4 return mWifi.isConnected();
5 }
It's very simple. How to use this one is also simple.
2isConnected = isWifiConnect();
3if (isConnected == false) {
4Toast toast = Toast.makeText(Sync.this, "Wifi is NOT connected yet", Toast.LENGTH_SHORT);
5toast.setGravity(Gravity.CENTER, 0, 0);
6toast.show();
7} else {
8Toast toast = Toast.makeText(Sync.this, "Wifi is connected yet", Toast.LENGTH_SHORT);
9toast.setGravity(Gravity.CENTER, 0, 0);
10toast.show();
11}
Last Tuesday, I've launched Dhamma Cycle on Google Play. It's for those buddhism who want to keep in touch with Buddha's dhamma and want to listen while reciting. It's my so-called 4th android application.
Please help me to use my application.

Download

Android
Top of Page