Click here to Skip to main content
15,906,766 members
Home / Discussions / Android
   

Android

 
Questionandroid src code for bluetooth file and data transfer Pin
Member 1119766327-Nov-14 19:55
Member 1119766327-Nov-14 19:55 
AnswerRe: android src code for bluetooth file and data transfer Pin
den2k8827-Nov-14 20:37
professionalden2k8827-Nov-14 20:37 
GeneralRe: android src code for bluetooth file and data transfer Pin
inbrok0014-Dec-14 9:55
inbrok0014-Dec-14 9:55 
AnswerRe: android src code for bluetooth file and data transfer Pin
Richard MacCutchan27-Nov-14 21:26
mveRichard MacCutchan27-Nov-14 21:26 
Questionhelp me Convert code SignalR From Xamarin (C#) to Eclipse (Java) Pin
thientamtita26-Nov-14 22:53
thientamtita26-Nov-14 22:53 
AnswerRe: help me Convert code SignalR From Xamarin (C#) to Eclipse (Java) Pin
Richard MacCutchan26-Nov-14 22:59
mveRichard MacCutchan26-Nov-14 22:59 
GeneralNeed help from Google Glass dev/designers/testers! Pin
Josh Siemanowicz24-Nov-14 5:42
Josh Siemanowicz24-Nov-14 5:42 
GeneralRe: Need help from Google Glass dev/designers/testers! Pin
Richard MacCutchan24-Nov-14 6:23
mveRichard MacCutchan24-Nov-14 6:23 
QuestionWeb browser Pin
Member 1125990424-Nov-14 5:08
Member 1125990424-Nov-14 5:08 
AnswerRe: Web browser Pin
Richard MacCutchan24-Nov-14 5:55
mveRichard MacCutchan24-Nov-14 5:55 
Questionabout images in ListView Pin
Erdinc2724-Nov-14 1:28
Erdinc2724-Nov-14 1:28 
QuestionI can't find control id in R.id Pin
Richard MacCutchan21-Nov-14 3:19
mveRichard MacCutchan21-Nov-14 3:19 
QuestionRe: I can't find control id in R.id Pin
David Crow22-Nov-14 4:48
David Crow22-Nov-14 4:48 
AnswerRe: I can't find control id in R.id Pin
Richard MacCutchan22-Nov-14 5:52
mveRichard MacCutchan22-Nov-14 5:52 
QuestionHow to display ListFragments with corresponding details fragments Pin
Member 1124009217-Nov-14 0:37
Member 1124009217-Nov-14 0:37 
SuggestionRe: How to display ListFragments with corresponding details fragments Pin
David Crow20-Nov-14 11:04
David Crow20-Nov-14 11:04 
SuggestionRe: Give Mee Lotsss Ideasss Pin
Richard MacCutchan16-Nov-14 23:46
mveRichard MacCutchan16-Nov-14 23:46 
QuestionGive Mee Lotsss Ideasss Pin
owais_ahmed_ansari13-Nov-14 2:02
owais_ahmed_ansari13-Nov-14 2:02 
RantRe: Give Mee Lotsss Ideasss Pin
Kornfeld Eliyahu Peter13-Nov-14 2:16
professionalKornfeld Eliyahu Peter13-Nov-14 2:16 
AnswerRe: Give Mee Lotsss Ideasss Pin
Richard MacCutchan13-Nov-14 2:59
mveRichard MacCutchan13-Nov-14 2:59 
QuestionHow to read files in the folder by clicking on the button Pin
Kroshandowski11-Nov-14 4:18
Kroshandowski11-Nov-14 4:18 
Hi!I have in MainActivity textView,whole show contents files (which located in the folder). I need show contents next file (which located in the folder) when click on button. I hope the problem is clear)))
Thanks in advance.
P.S. Now code looks like this:
Java
TextView myTv;
String res = "";
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.universal);

    myTv = (TextView) findViewById(R.id.textView);

    try {

        // OPENING THE REQUIRED TEXT FILE
        BufferedReader reader = new BufferedReader(new InputStreamReader(
                getAssets().open("universal")));

        String myLine = reader.readLine();

        // NOW READING THEM LINE BY LINE UPTO THE END OF FILE
        while (myLine != null) {
            res += myLine + "\n";
            myLine = reader.readLine();
        }

        // CLOSE THE FILE AFTER WE HAVE FINISHED READING
        reader.close();
    } catch (IOException e) {

        // INFORM USER OF ANY ERROR...
        Toast.makeText(getApplicationContext(),
                "Error Opening the File !!!", Toast.LENGTH_LONG).show();
    }

    // AND FINALLY SHOW THE READ TEXT IN OUR TEXT VIEW
    myTv.setText(res);


modified 11-Nov-14 10:44am.

QuestionRe: How to read files in the folder by clicking on the button Pin
David Crow20-Nov-14 11:08
David Crow20-Nov-14 11:08 
QuestionBinary XML missing layout_width. Pin
ericgahn30-Oct-14 11:47
ericgahn30-Oct-14 11:47 
AnswerRe: Binary XML missing layout_width. Pin
Dominic Burford3-Nov-14 0:40
professionalDominic Burford3-Nov-14 0:40 
GeneralRe: Binary XML missing layout_width. Pin
ericgahn5-Nov-14 20:27
ericgahn5-Nov-14 20:27 

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.