How to detect the opening app category based on Play store?
I am think the output would give me the app category like this: https://support.google.com/googleplay/android-developer/answer/113475?hl=en
Thank you.
Posted Dec 9, 2013, 3:27 AM UTC
58
I am think the output would give me the app category like this: https://support.google.com/googleplay/android-developer/answer/113475?hl=en
Thank you.
Posted Dec 9, 2013, 3:27 AM UTC
I don't really understand what you're asking
For example, if I open Angry bird, I want the output as "Games" or "Arcade & Action". Maybe, if I know the package name, I can find it out by parsing the html from the play store website.
You mean, when you're looking at an app in the Play Store, you want to see what category of the Play Store it belongs to?
With my approach, for example, open Angry Birds, I will get the package name com.rovio.angrybirds
For what purpose?
I'm so addicted to games now and it's time for finals (I'm still a student). I want to kill that game when I try to open it. Silly me... Haha.
One idea is to create a task that sets a variable like %STUDY to on and set that as a button widget. Then have a profile that looks for when %STUDY is on. For the tasks of that profile you can create conditions for if whatever app is running returning to home screen.
That's pretty brilliant. I still want to know the app category to make it more awesome. I'm planning to skip selecting apps.. When an new app is opened, classify it whether it is in games category, return to home screen if %STUDY is ON.