Posts

Showing posts with the label android-intent

Passing ArrayList of JsonObjects through intents

Passing ArrayList of JsonObjects through intents How do I pass ArrayList of JSONObjects from RecyclerView's viewholder to another activity through intents? You can Serialize your Model and then you can pass with Intent , for more help share your code. – Thunder Jul 2 at 9:15 Dude , do you understand the rules of asking questions . share your code ,full code of your model and all – Thunder Jul 2 at 9:26 2 Answers 2 If it's just ArrayList of strings you can use intent.putStringArrayListExtra() if it is ArrayList of objects make your object class Parcelable and use intent.putParcelableArrayListExtra() ...

Trying open a specific folder in android using intent

Trying open a specific folder in android using intent I am trying to open a specific folder in android ?Is it possible to open a specific folder ???? this is the code i m using config=(Button)findViewById(R.id.btn_cf); config.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent("Intent.ACTION_GET_CONTENT"); Uri uri = Uri.parse("mnt/sdcard/myfiles/allfiles/download"); intent.setDataAndType(uri, "*/*"); startActivity(Intent.createChooser(intent, "download")); } }); have you tried this link stackoverflow.com/questions/17165972/… – deniz Feb 4 '14 at 5:09 possible duplicate of Android: S...