Restart service after update (Android)

Restart service after update through the Google Play Store

Maybe it is time to update your rusted background service?

For my Android project Stopeen, I implemented a functionality to schedule actions with a recurrence over time. But one of my problem was : when people will update my app from the store, the service in background will be killed, and so do they the pending intents handled by the alarm manager. So how could I restart the service without forcing my user to launch my app immediately after each update?

Continue reading

Posted in Android | 2 Comments

Android Studio Bookmarks

Android Studio Bookmarks toggle

Android Studio Bookmarks toggle

Here is a small tip for Android Studio. I added a bookmark by accident, in one of my source file, and I did not find out easily how to remove it.
Continue reading

Posted in Android | 4 Comments

Parallax scrolling in HTML5

Parallax scrolling example scene

Example of parallax scrolling (by OhSqueezy)

The parallax scrolling is an effect applied to an image to make it move slower or faster than the other images. This effect is very popular in the 2D games, to create a feeling of deepness : when an image goes faster, you think that this image is closer than the rest of the page, if it goes slower, you will think that it is further.
Continue reading

Posted in Web | Leave a comment

Turn off 4G on Android phones

Turn off 4G

It does not exist a “4G switch” on Android!

You can stop looking for a “4G switch” to toggle 4G in your Android settings, it does not exists. To turn off 4G on smartphones, you need to disable access to the LTE network. Many Android devices (Galaxy S4, Galaxy S5, Galaxy Note 4,…) have similar steps to modify this option.

Continue reading

Posted in Android | 14 Comments

Activity: forget onPause to handle focus changes

onPause to handle focus changes seems to be a good way, but actually it is not!

Even if, in the lifecycle graph, the onPause method seems to be called when the activity loose the focus, it is not always the case!

I spent one whole afternoon on a very silly issue about the Android activity lifecyle when the focus changes and the device is turned on. I want to share it with you to avoid you some hours of investigation!

Continue reading

Posted in Android | 1 Comment

Droidcon Paris 2014: talks

Droidcon Paris 2014 talks

Attentive audience 🙂

This article follows the Droidcon Paris 2014 overview I published two weeks ago. Unfortunately, I could not assist to all of the talks, because generally they were 3 at the same time. Here is a sum up of the talks I preferred, among those I attended.

Note that most of the photos here are from the Paris Android User Group and BeMyApp. You can find more of their photos on Flickr.
Continue reading

Posted in Android, Event | 7 Comments

Droidcon Paris 2014: overview

Droidcon Paris 2014

Take a look at the #droidconfr hashtag on Twitter!

The Droidcon is one of the main events about Android development and takes place all over the world. The Droidcon Paris 2014 occurred last weekend in the french capital, organized by the Paris Android User Group and BeMyApp. It was the second edition and the team improved many things compared to last year.
Continue reading

Posted in Android, Event | 1 Comment

Handmade picture gallery: #slideshow

Example of a picture gallery

Example of a slideshow picture gallery

Slideshows are a very common picture gallery type. Unfortunately I did not manage to find a simple and highly editable slideshow on the web, so I developed my own in few days. I publish it here, feel free to modify and customize it, it’s made for !
Continue reading

Posted in Web | Tagged , , , , | Leave a comment

Jetpack contact forms: remove the empty lines

Jetpack contact forms with empty lines

Empty lines appeared between the labels and the fields

On a WordPress blog, when using the Jetpack contact forms ([contact-form] tag), you may see some useless empty lines. To work around this behavior, edit the CSS (Dashboard > Appearance > Edit CSS) and add this code:


Continue reading
Posted in Wordpress | Tagged , , , | Leave a comment

Display your Linkedin profile on your blog or website

I tried to put my public Linkedin profile in the “About” section of my blog. After reading various tutorials, I realized that none were made for statically displaying a specific profile. Here is a simple solution, a small piece of code that you can directly put in your WordPress page or post editor.

Continue reading

Posted in Web, Wordpress | Tagged , , | 1 Comment