I'm new to Android and only have a little experience with HTML and Basic, after a lot of time and frustration I end up In my list viewable clickable, I made an intention based on this situation;
if (condition == 3) {intention intended = new intent (this, Bradford. Class); StartActivity; }
The problem I have 4 lists in different tabs and I have 9 2 options in those lists, so I have to make 92 intentions (very dirty), so the first question is Whether there is a better way of obtaining low code intentions, still using the position to click
In addition to my total 92 squares, they will all be more or less equal, first I want to talk about a folder Brake listing category, for example, changes the path (it, com.ff.org.firstlist.Bradford.class) me in this code, or just need to manifest.
Finally I have 9 2 classes, they will open the URL with the app and will use GPS and some print and image functions, in terms of speed and reliability, all my information instead of different sections Will be better in the file or do I have 92 sections.
You can use the group using your activities. So instead of a regular activity, set tab content in an activity group.
tabHost.addTab (tabHost.newTabSpec ("Tab") .setIndicator ("Tab") .setContent (new, newfound, this is yourActivityGROUP.class) .addFlags (Intent.FLAG_ACTIVITY_CLEAR_TOP))) ;
Within that activity group, you can start another activity again.
Class Extended in YourActivityGROUP Activity Group {@Override protected void onCreate {bundle saved instenstate} {super.onCreate (savedInstanceState); // You can see the local activity manager to start a new activity for the view View = getLocalActivityManager () .startActivity ("ReferenceName", New Intent (this, YourActivity.class) .addFlags (Intent.FLAG_ACTIVITY_CLEAR_TOP)) .getDecorView (); This.setContentView (see); }}
Here are some examples:,
Comments
Post a Comment