Click here to Skip to main content
15,885,278 members
Home / Discussions / Android
   

Android

 
QuestionUnable to use Listadapter along with getfilter() for dynamic search filter? Pin
A KA15-Feb-16 5:48
A KA15-Feb-16 5:48 
SuggestionRe: Unable to use Listadapter along with getfilter() for dynamic search filter? Pin
David Crow15-Feb-16 9:12
David Crow15-Feb-16 9:12 
QuestionNative vs Hybrid App Development Pin
Member 1232849715-Feb-16 3:13
Member 1232849715-Feb-16 3:13 
QuestionAndroid: cannot open drawer inside onReceivedError Pin
Bazzer13-Feb-16 11:09
Bazzer13-Feb-16 11:09 
QuestionConsuming WCF web service from android Pin
Member 1232072611-Feb-16 0:26
Member 1232072611-Feb-16 0:26 
QuestionPopulate Spinner from Sqlite and display the associated record of selected or populated item Pin
Varma Lanke8-Feb-16 19:46
Varma Lanke8-Feb-16 19:46 
AnswerRe: Populate Spinner from Sqlite and display the associated record of selected or populated item Pin
Richard MacCutchan8-Feb-16 21:53
mveRichard MacCutchan8-Feb-16 21:53 
SuggestionRe: Populate Spinner from Sqlite and display the associated record of selected or populated item Pin
David Crow9-Feb-16 2:14
David Crow9-Feb-16 2:14 
How about something like:
Cursor res = dataHelper.getAllData(position);
...
public Cursor getAllData(int position)
{
    SQLiteDatabase db = getReadableDatabase();
    Cursor res=db.rawQuery("select * from "+Table_Pro+" where id="+position,null);
    return res;
}
But that seems rathger silly when the data has already been retrieved into listpro. Why not:
String s = listpro.get(position);
Of course you'd have to modify getAllProvinces() to store more than just an array of String types.

"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



modified 10-Feb-16 8:17am.

QuestionTutorialObjectTracking-master Pin
Member 122599845-Feb-16 2:25
Member 122599845-Feb-16 2:25 
AnswerRe: TutorialObjectTracking-master Pin
David Crow5-Feb-16 2:32
David Crow5-Feb-16 2:32 
GeneralRe: TutorialObjectTracking-master Pin
Member 122599845-Feb-16 2:47
Member 122599845-Feb-16 2:47 
GeneralRe: TutorialObjectTracking-master Pin
Richard MacCutchan5-Feb-16 6:25
mveRichard MacCutchan5-Feb-16 6:25 
GeneralRe: TutorialObjectTracking-master Pin
Member 122599846-Feb-16 4:10
Member 122599846-Feb-16 4:10 
GeneralRe: TutorialObjectTracking-master Pin
Richard MacCutchan6-Feb-16 4:12
mveRichard MacCutchan6-Feb-16 4:12 
GeneralRe: TutorialObjectTracking-master Pin
Member 122599846-Feb-16 4:30
Member 122599846-Feb-16 4:30 
GeneralRe: TutorialObjectTracking-master Pin
Richard MacCutchan6-Feb-16 5:23
mveRichard MacCutchan6-Feb-16 5:23 
GeneralRe: TutorialObjectTracking-master Pin
David Crow7-Feb-16 9:03
David Crow7-Feb-16 9:03 
GeneralRe: TutorialObjectTracking-master Pin
Member 1225998410-Feb-16 6:54
Member 1225998410-Feb-16 6:54 
SuggestionRe: TutorialObjectTracking-master Pin
David Crow10-Feb-16 6:58
David Crow10-Feb-16 6:58 
QuestionInsert Images in EditText as in Notes app in Android Mobiles Pin
Tirumaleswara Reddy.K4-Feb-16 2:16
Tirumaleswara Reddy.K4-Feb-16 2:16 
QuestionRe: Insert Images in EditText as in Notes app in Android Mobiles Pin
David Crow4-Feb-16 6:21
David Crow4-Feb-16 6:21 
AnswerRe: Insert Images in EditText as in Notes app in Android Mobiles Pin
Tirumaleswara Reddy.K4-Feb-16 18:44
Tirumaleswara Reddy.K4-Feb-16 18:44 
AnswerRe: Insert Images in EditText as in Notes app in Android Mobiles Pin
Richard MacCutchan4-Feb-16 21:39
mveRichard MacCutchan4-Feb-16 21:39 
QuestionApp crash always. Why? Pin
Member 1226347731-Jan-16 7:37
Member 1226347731-Jan-16 7:37 
SuggestionRe: App crash always. Why? Pin
Kornfeld Eliyahu Peter31-Jan-16 8:17
professionalKornfeld Eliyahu Peter31-Jan-16 8:17 

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.