I have read users having problems running the install manager executable of the Samsung Tizen SDK both in Windows 7 and 8. In my case, when I run the install manager under Windows 7 32-bit, it closes the popup window after extracting the file so I had no way to figure out what files were decompressed and where they were placed.

I had to take a screenshot just to find out where. The extracted files can be found at

c:\users\USERNAME\appdata\local\temp\tizensdk########

Now that you found the path, what to do next? Since the files located there are a jar file and a conf text file.

To run the install manager manually, run it using Java from the command line.

java -jar InstallManager.jar

That’s it! You should see a window show up like this.

tizen_sdk_install_manager

So here’s the thing. I wanted my widget to run a task every 12 midnight. The attribute of Intent.ACTION_DATE_CHANGED does not work.

I had read posts in forums that say if you switch back and forth setting the date and time for experimentation to see if the task will run, nothing happens. So the only workaround left is to use an AlarmManager.

Yup, you have to use it rather than being forced to use Intent.ACTION_TIME_TICK which is battery draining as this event will occur every minute.

To set up your AlarmManager to send a broadcast every 12 midnight, do this:

Take note that you have to use getBroadcast() in the PendingIntent class if you want the task in the BroadcastReceiver to be executed. If it is code in a service that you want to run, then call getService().

Related Posts Plugin for WordPress, Blogger...