private boolean isTabletDevice() {
if (android.os.Build.VERSION.SDK_INT >= 11) { // honeycomb
// test screen size, use reflection because isLayoutSizeAtLeast is only available since 11
Configuration con = getResources().getConfiguration();
try {
Method mIsLayoutSizeAtLeast = con.getClass().getMethod("isLayoutSizeAtLeast", int.class);
Boolean r = (Boolean) mIsLayoutSizeAtLeast.invoke(con, 0x00000004); // Configuration.SCREENLAYOUT_SIZE_XLARGE
return r;
} catch (Exception x) {
x.printStackTrace();
return false;
}
}
return false;
}
Friday, February 24, 2012
Android Code Snippet - Check if tablet or smartphone
Here is how to check if the user is using a smartphone or a tablet...
Thursday, February 16, 2012
Tutorial - Autostart an application at bootup
In your AndroidManifest.xml put this is with the following permission
<receiver android:enabled="true" android:name=".BootUpReceiver"
android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
[..]
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
[..]
Create a new activity named BootUpReceiver and put this code in..
public class BootUpReceiver extends BroadcastReceiver{
@Override
public void onReceive(Context context, Intent intent) {
Intent i = new Intent(context, MyActivity.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(i);
}
}
Tuesday, February 14, 2012
Market Fix Android App
This is our newest app on the Android Market.
*ROOT IS REQUIRED TO WORK!*
Market Fix will let you change your build.prop file fingerprint to allow the Android Market to show you protected and paid/all apps. Some users that are on CM7 or other ROMS are not able to see certain apps in the Market.
This app will allow you to quickly click a button to change your Market Fingerprint.
Requires Android 2.2+ and ROOT ACCESS!
*ROOT IS REQUIRED TO WORK!*
Market Fix will let you change your build.prop file fingerprint to allow the Android Market to show you protected and paid/all apps. Some users that are on CM7 or other ROMS are not able to see certain apps in the Market.
This app will allow you to quickly click a button to change your Market Fingerprint.
Requires Android 2.2+ and ROOT ACCESS!
Friday, February 10, 2012
Artist Promotion For February
We are also supporting local and unsigned artist on our website for a week at a time!! Get more exposure for your band/music. Potente Blog has over 15,000 pageviews a month!
If you have a music widget player email liteupmobile@gmail.com with your information to be selected as the artist of the week on our blog.

If you have a music widget player email liteupmobile@gmail.com with your information to be selected as the artist of the week on our blog.
Artist Benny James