java - Calling two different activities on different devices (tablet and phone) -
Here, I am trying to start an activity on various devices (Android tablets and Android phones). Is there a way to use the statement to load activity based on the device? Here's my code:
Go button button = (button) findViewById (R.id.button_goToActivity); Button Go.SetOnClickListener (new View.OnClickListener) {public void onClick (see v) {if (tablet device) {startActivity (new activity (main activity.This, tablet activity class)) else else (startActivity Thank you for your effort.
To get post-text "itemprop =" text "> you should use a piece not a activity . pieces This is what you want, you can see that this It's a master-extension app with two pieces , when the device is in a portrait mode or it is not not a tablet that only shows the master, Otherwise it appears in detail next to the Master and when you select an item from the list, you will see the details by going to other activity
Comments
Post a Comment