|
@@ -11,6 +11,7 @@ import android.animation.AnimatorListenerAdapter;
|
|
|
import android.content.Context;
|
|
import android.content.Context;
|
|
|
import android.content.Intent;
|
|
import android.content.Intent;
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.SharedPreferences;
|
|
|
|
|
+import android.content.pm.PackageManager.NameNotFoundException;
|
|
|
import android.os.AsyncTask;
|
|
import android.os.AsyncTask;
|
|
|
import android.os.Build;
|
|
import android.os.Build;
|
|
|
//import android.content.SharedPreferences;
|
|
//import android.content.SharedPreferences;
|
|
@@ -54,6 +55,14 @@ public class LoginFragment extends Fragment/* implements OnClickListener */
|
|
|
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
|
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
|
|
Bundle savedInstanceState) {
|
|
Bundle savedInstanceState) {
|
|
|
View view = inflater.inflate(R.layout.fragment_login, null);
|
|
View view = inflater.inflate(R.layout.fragment_login, null);
|
|
|
|
|
+ TextView tv_ver = (TextView) view.findViewById(R.id.tv_ver);
|
|
|
|
|
+ try {
|
|
|
|
|
+ tv_ver.setText("ver:"+ApexTrackingApplication.get_instance().getPackageManager().getPackageInfo(
|
|
|
|
|
+ "com.usai.apex", 0).versionName);
|
|
|
|
|
+ } catch (NameNotFoundException e1) {
|
|
|
|
|
+ // TODO Auto-generated catch block
|
|
|
|
|
+ e1.printStackTrace();
|
|
|
|
|
+ }
|
|
|
// Button btn = (Button) view.findViewById(R.id.sign_in_button);
|
|
// Button btn = (Button) view.findViewById(R.id.sign_in_button);
|
|
|
// btn.setOnClickListener(this);
|
|
// btn.setOnClickListener(this);
|
|
|
|
|
|