Back to project page friendica-for-android.
The source code is released under:
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
If you think the Android project friendica-for-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.wikilab.android.friendica01.activity; /*package de.wikilab.android.friendica01; import android.app.ActivityGroup;//from ww w . j a v a 2s. c om import android.app.LocalActivityManager; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.Window; public class PreferenceContainerActivity extends ActivityGroup { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.homeactivity); } public void test(Context c, ViewGroup mSomeContainer) { LocalActivityManager mgr = getLocalActivityManager(); Intent i = new Intent(c, PreferencesActivity.class); Window w = mgr.startActivity("unique_per_activity_string", i); View wd = w != null ? w.getDecorView() : null; if(wd != null) { mSomeContainer.addView(wd); } } }*/