Fragments represent reusable behaviors or portions of the user interface in an Android app.
I am trying to create an ImageView in a Fragment which will refer to the ImageView element which I have …
android android-fragments android-imageview findviewbyidI have some fragments in my activity [1], [2], [3], [4], [5], [6] And on Back Button Press I must to return from [2] to [1] if current …
android android-fragmentsHow can I get the context in a fragment? I need to use my database whose constructor takes in the …
java android android-fragments android-contextIs there a way in which we can implement onBackPressed() in Android Fragment similar to the way in which we …
android android-fragments onbackpressedI have two classes. First is activity, second is a fragment where I have some EditText. In activity I have …
android android-fragmentsI want to add a Fragment to an Activity that implements its layout programmatically. I looked over the Fragment documentation …
android android-3.0-honeycomb android-fragmentsI am playing with fragments in Android. I know I can change a fragment by using the following code: FragmentManager …
android android-layout android-intent android-fragmentsThe activity hosting this fragment has its onActivityResult called when the camera activity returns. My fragment starts an activity for …
android android-fragments android-activityI have seen two general practices to instantiate a new Fragment in an application: Fragment newFragment = new MyFragment(); and Fragment …
android android-fragmentsI'm getting user reports from my app in the market, delivering the following exception: java.lang.IllegalStateException: Can not perform …
android android-fragments android-viewpager illegalstateexception fragmenttransaction