[android-developers] Android project with multiple build targets/configuration

2012-08-20 Thread Jia Li
I am really new to eclipse. Is there any way to create build configurations in a project, so each configuration point to different resource folders or include different libraries. for example, a map based application for 10 cities. so, I have 10 sets of map and data files for each city. I know

[android-developers] ViewPager problem on SlidingPaneLayout

2014-01-16 Thread Jia Li
In my app, I need to put a ViewPager on SlidingPaneLayout, but the ViewPager doesn't scroll. I found someone's solution at http://stackoverflow.com/questions/17490899/using-androids-slidingpanelayout-with-viewpager It solves the scroll problem. But, if I set onclick listener to the views on t

[android-developers] milliseconds-timezone to date

2014-01-16 Thread Jia Li
I got some date strings milliseconds-timezone format, such as 1389006176162-0500. How do I convert this into Date object on Android? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@go

[android-developers] Windows Phone ContentPresenter equivalent on Android

2014-02-10 Thread Jia Li
Is there a control equivalent to ContentPresenter on Windows Phone? I want to create a custom styled view/viewgroup, onto which i can add children. Then, I can reuse it on all the screens. Please help. thanks -- You received this message because you are subscribed to the Google Groups "Androi

[android-developers] start or update application from service

2014-04-08 Thread Jia Li
In my app, I need to receive push notification and open the application to do things. I have managed to register with the GCM and received message with IntentService. I want to know how to do the things below from the IntentService. 1. How to detect if the application is in foreground, backgrou