I have two activities:
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void click(View view) {
Intent intent= new Intent(this, TranslucentActivity.class);
startActivity(intent);
}
}
public class TranslucentActivity extends Activity
i am writing one activity class like below
public class HeaderFooter extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.headerfooter);
}
}
and i am extending one more class from HeaderFooter class
public class Home extends HeaderFooter
{
@Override
public voi
Tell me please, I have a lot of hours can not understand.
I have a map.
Hi im very very new to android, so this would be my first app.
Im taking a java class and trying to make an app similar to a lab
we did in class.
In my application i have 1 activity class,for that activity class i have set the layout ,which is another class file not "Xml File".
I want to lock the screen of the app on button click
I have written the code as
public class MainActivity extends DeviceAdminReceiver{
public void makeTest()
{
System.out.println("Entered Main Class");
}
public class Controller extends Activity {
static final int RESULT_ENABLE = 1;
Button powerOff;
int amountOfTime =20*1000;
Context context = this;
DevicePolicyManager mDPM;
ActivityManag
I am using the following code to to display data in my custom list. but it closes with an exception of unsupported operaton.
I want that image only be dragged in its parent view. when user tries to drag it outside the view it will return its original position. basically i'm implementing android unlock type feature. please help me out.
I am using the Twitter4J Library and I am trying to implement some Async Tasks to make some calls to the service as follows.
public class TweetsActivity extends Activity {
/** Called when the activity is first created.