Click here to Skip to main content
15,886,258 members
Home / Discussions / Android
   

Android

 
QuestionRe: android bluetooth Pin
David Crow15-Dec-15 5:49
David Crow15-Dec-15 5:49 
QuestionAndroid Studio Pin
Member 121877905-Dec-15 2:48
Member 121877905-Dec-15 2:48 
AnswerRe: Android Studio Pin
Richard MacCutchan5-Dec-15 3:47
mveRichard MacCutchan5-Dec-15 3:47 
GeneralRe: Android Studio Pin
Member 121877905-Dec-15 3:59
Member 121877905-Dec-15 3:59 
GeneralRe: Android Studio Pin
Richard MacCutchan5-Dec-15 5:00
mveRichard MacCutchan5-Dec-15 5:00 
QuestionRe: Android Studio Pin
David Crow5-Dec-15 14:19
David Crow5-Dec-15 14:19 
QuestionPass value from Activity to Fragment which in layout in Android Pin
Tirumaleswara Reddy.K4-Dec-15 2:47
Tirumaleswara Reddy.K4-Dec-15 2:47 
AnswerRe: Pass value from Activity to Fragment which in layout in Android Pin
David Crow4-Dec-15 4:17
David Crow4-Dec-15 4:17 
Tirumaleswara Reddy.K wrote:
Now the problem is, i am not able to pass values from class-1 to fragment.
can any one tell me the solution...
Does class-1 own the fragment? In class-1's onCreate() method, do you have something like:
// Create the detail fragment and add it to the activity using a fragment transaction.
Bundle arguments = new Bundle();
Values v = (Values) getIntent().getSerializableExtra(MyFragment.ARG_ITEM_ID);
arguments.putSerializable(MyFragment.ARG_ITEM_ID, v);
MyFragment fragment = new MyFragment();
fragment.setArguments(arguments);
getFragmentManager().beginTransaction().add(R.id.thread_detail_container, fragment).commit();
You can more easily see how to do this very thing by looking at the Master/Detail sample project.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


GeneralRe: Pass value from Activity to Fragment which in layout in Android Pin
Member 1335895812-Aug-17 22:19
Member 1335895812-Aug-17 22:19 
QuestionAndroid .png image layer on active camera Pin
mack %GUI%23-Nov-15 6:01
mack %GUI%23-Nov-15 6:01 
AnswerRe: Android .png image layer on active camera Pin
Afzaal Ahmad Zeeshan4-Dec-15 3:13
professionalAfzaal Ahmad Zeeshan4-Dec-15 3:13 
Questionwhy is my fragment not displaying anything Pin
dananddarshan17-Nov-15 23:48
dananddarshan17-Nov-15 23:48 
QuestionRe: why is my fragment not displaying anything Pin
David Crow18-Nov-15 2:52
David Crow18-Nov-15 2:52 
QuestionHow to give path in Android Pin
jasonalien17-Nov-15 1:20
jasonalien17-Nov-15 1:20 
QuestionRe: How to give path in Android Pin
David Crow17-Nov-15 5:16
David Crow17-Nov-15 5:16 
AnswerRe: How to give path in Android Pin
mack %GUI%23-Nov-15 6:04
mack %GUI%23-Nov-15 6:04 
AnswerRe: How to give path in Android Pin
Jervie Ocampo23-Dec-15 8:10
Jervie Ocampo23-Dec-15 8:10 
QuestionInvalid redirected_uri Pin
Deepak Rattan9-Nov-15 19:27
Deepak Rattan9-Nov-15 19:27 
QuestionRe: Invalid redirected_uri Pin
David Crow10-Nov-15 3:11
David Crow10-Nov-15 3:11 
QuestionHow can application like "etude" or "autoflip" work? Pin
Carle_Lai5-Nov-15 16:10
Carle_Lai5-Nov-15 16:10 
AnswerRe: How can application like "etude" or "autoflip" work? Pin
Richard MacCutchan5-Nov-15 23:27
mveRichard MacCutchan5-Nov-15 23:27 
GeneralRe: How can application like "etude" or "autoflip" work? Pin
Carle_Lai6-Nov-15 0:12
Carle_Lai6-Nov-15 0:12 
GeneralRe: How can application like "etude" or "autoflip" work? Pin
Richard MacCutchan6-Nov-15 0:19
mveRichard MacCutchan6-Nov-15 0:19 
GeneralRe: How can application like "etude" or "autoflip" work? Pin
Carle_Lai6-Nov-15 0:37
Carle_Lai6-Nov-15 0:37 
QuestionUpdating multiple cascading spinner by AsyncTask - what would be best approach Pin
Arindam Tewary3-Nov-15 9:06
professionalArindam Tewary3-Nov-15 9:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.