Click here to Skip to main content
15,037,168 members
Home / Discussions / Android
   

Android

 
GeneralRe: Android connect to MS SQL Server Pin
David Crow19-May-17 6:35
MemberDavid Crow19-May-17 6:35 
Question(Short Video Demo) Fragment back navigation issue and overlapping fragments using a frame layout Pin
Daniel Antony Ali17-May-17 18:41
MemberDaniel Antony Ali17-May-17 18:41 
QuestionAnyone can help Pin
wseng16-May-17 21:58
Memberwseng16-May-17 21:58 
AnswerRe: Anyone can help Pin
Richard MacCutchan16-May-17 22:46
mveRichard MacCutchan16-May-17 22:46 
QuestionAndroid media player won't start Pin
Pavlex413-May-17 2:08
MemberPavlex413-May-17 2:08 
AnswerRe: Android media player won't start Pin
Pavlex413-May-17 5:13
MemberPavlex413-May-17 5:13 
QuestionAndroid read file from url Pin
Pavlex412-May-17 6:39
MemberPavlex412-May-17 6:39 
QuestionRe: Android read file from url Pin
David Crow12-May-17 10:06
MemberDavid Crow12-May-17 10:06 
Depending on how long it takes your thread code to finish parsing http://audiophileradio.stream/Ip.txt, your preferences/append code is also accessing the text variable. What's the possibility of that happening out of order?

Pavlex4 wrote:
mediaPlayer.setDataSource(STREAM_URL);
Have you tried hard-coding the value passed to setDataSource() to see if the reset of your player-related code is correct?


This is unrelated to the problem you are having, but the four if() tests are not as efficient as they could be. You are checking radio's value four more times than is necessary. Consider:
if (radio != null)
{
    text.append(':').append(radio);

    STREAM_URL = text.toString();
    Toast.makeText(this, STREAM_URL, Toast.LENGTH_SHORT).show();
}

"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


QuestionAndroid Shopping Cart Pin
Member 1319622012-May-17 2:52
MemberMember 1319622012-May-17 2:52 
AnswerRe: Android Shopping Cart Pin
Richard MacCutchan12-May-17 3:13
mveRichard MacCutchan12-May-17 3:13 
QuestionRe: Android Shopping Cart Pin
David Crow12-May-17 9:48
MemberDavid Crow12-May-17 9:48 
QuestionCorrect MVVM implementation to manually login to website, go to certain link in the website, read information from html element and display it in another View. Pin
JoJo8210-May-17 6:15
MemberJoJo8210-May-17 6:15 
AnswerRe: Correct MVVM implementation to manually login to website, go to certain link in the website, read information from html element and display it in another View. Pin
Richard MacCutchan10-May-17 6:41
mveRichard MacCutchan10-May-17 6:41 
GeneralRe: Correct MVVM implementation to manually login to website, go to certain link in the website, read information from html element and display it in another View. Pin
JoJo8210-May-17 12:07
MemberJoJo8210-May-17 12:07 
QuestionPrevious fragment visible under the new fragment issue Pin
Pavlex46-May-17 7:59
MemberPavlex46-May-17 7:59 
SuggestionRe: Previous fragment visible under the new fragment issue Pin
David Crow8-May-17 6:53
MemberDavid Crow8-May-17 6:53 
QuestionHelp Pin
Member 1302311825-Apr-17 14:06
MemberMember 1302311825-Apr-17 14:06 
QuestionRe: Help Pin
Richard MacCutchan25-Apr-17 21:28
mveRichard MacCutchan25-Apr-17 21:28 
AnswerRe: Help Pin
Member 1302311826-Apr-17 0:22
MemberMember 1302311826-Apr-17 0:22 
QuestionRe: Help Pin
David Crow26-Apr-17 3:00
MemberDavid Crow26-Apr-17 3:00 
AnswerRe: Help Pin
Member 1302311826-Apr-17 3:27
MemberMember 1302311826-Apr-17 3:27 
SuggestionRe: Help Pin
David Crow26-Apr-17 3:36
MemberDavid Crow26-Apr-17 3:36 
GeneralRe: Help Pin
Member 1302311826-Apr-17 3:38
MemberMember 1302311826-Apr-17 3:38 
GeneralRe: Help Pin
Richard MacCutchan26-Apr-17 21:07
mveRichard MacCutchan26-Apr-17 21:07 
Questionhow can i open a rar file with password Pin
Member 1298133419-Apr-17 3:05
MemberMember 1298133419-Apr-17 3:05 

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.