November 2010
6 posts
1 tag
Nov 24th
1 tag
Nov 24th
2 tags
How to start activity from broadcast receiver
It’s simple - just create Intent and invoke startActivity, but you may get strange runtime error. To prevent it, make sure you set intent flag: public void onReceive(Context context, Intent intent) { Intent launchIntent = new Intent(context, MyActivity.class); launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK ); context.startActivity(launchIntent); } BTW, if you combine it...
Nov 9th
1 note
2 tags
How to turn on screen when activity starts
Sometimes you need to start activity from service or broadcast receiver. However, screen may be turned off or even locked. Let’s make our activity visible to user (and touchable): private KeyguardManager keyguardManager; private KeyguardLock keyLock;  public void onCreate(Bundle savedInstanceState) { … getWindow().setFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON,...
Nov 9th
2 notes
2 tags
Human-Powered Player: 1000+ installations
I released this app September 22th and now it passed 1000 installations mark.  It simple, yet funny app: Technology meets Art. Real steampunk player. You need to produce energy to charge this player - shake it or move with that. Perfect jogging companion - it plays while you run.
Nov 2nd
1 note
2 tags
New app released: Spook Camcorder
Fresh meat, I’ve just published it in Android Market: Camcorder for spy or paparazzi. Pretend you’ve got a call and start video recording. * Emulates phone call * “Call” UI is semi-transparent, camera preview is visible * Starts recording when your “accept” call (tap) * Tap to stop * Result is shown in separate folder in Gallery
Nov 2nd