I've been reading a bit on the use of System.Properties, using or removing
(@hide) and reflection to get access to it, needless to say I havent been
succesful..
This is my code..how do I "import" to allow access to this
android.os.SystemProperties..THNX!
package com.MovilTeacher_titan.app;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.DialogInterface.OnClickListener;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.StrictMode;
import android.os.SystemProperties;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.MovilTeacher_titan.app.R;
import com.example.app.library.UserFunctions;
import com.tchip.kw.kwsoft;
@SuppressLint("NewApi")
public class DashboardActivity extends Activity {
UserFunctions userFunctions;
Button btnLogout;
MediaPlayer ourSong;
kwsoft kw = new kwsoft();
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
String Key = SystemProperties.get("ro.tchip.software", "k");
boolean ismachinestatus2=kw.getmachinestatus2()==1 || Key.endsWith(
"kw");
if (kw.getmachinestatus1()==1 && ismachinestatus2 )
{
//tv.setText("it is Tchip");
Log.v("DashboardActivity","is current");
StrictMode.ThreadPolicy policy =
newStrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en