I want to use two different activities as launcher one for smartphone and other one for tablet. i know that i can put both activities as Launcher in manifest, but how can i invoke them for phone or tablet.
Asked
Active
Viewed 307 times
0
-
1You might consider looking into one of the newer features of the Android market that allows you to upload different apk's for your application and target them at different devices. Then you could solve this problem at a higher level than the activity. – FoamyGuy Sep 02 '11 at 13:24
-
thanx tim... i will consider it.. – ARV Sep 02 '11 at 13:38
-
It's a bit late, but this answer worked ok for me: http://stackoverflow.com/a/16542600/689723 – cesards Mar 03 '14 at 12:23
2 Answers
3
You can use a single activity without layout which will check the android version and start the respective activity each time.

Dimitris Makris
- 5,183
- 2
- 34
- 54
-
What do you mean proper? The solution I propose is widely used for such case. – Dimitris Makris Sep 02 '11 at 13:32
0
if you use use two different activities as launcher it will put two launcher icon in the device.....you should use different builds for that......

Vineet Shukla
- 23,865
- 10
- 55
- 63