Back to project page hackspacewidget.
The source code is released under:
Apache License
If you think the Android project hackspacewidget 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.ring0.hackspace; //ww w . jav a2s . c o m import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.app.FragmentActivity; import com.google.gson.Gson; import de.ring0.hackspace.datatypes.Space; public class HackspaceViewActivity extends FragmentActivity { Space ss; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); Gson g = new Gson(); ss = g.fromJson(sp.getString("status", ""), Space.class); setResult(RESULT_OK); } @Override protected void onStart() { super.onStart(); } @Override protected void onResume () { super.onResume(); } }