Wednesday, June 26, 2013

[android help] First Android app not running


First Android app not running



I am following the steps as in android training google and my activity_main.xml is like




xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send" />



I have defined the hint strings






My First App
Enter a message
Send
mainActivity
Settings
Hello world!




AVD details


But when I click on run button, it shows no activity !



.

stackoverflow.comm

[android help] Regex to remove track number from song name?


Regex to remove track number from song name?



I have a ListView that display song names and artists. Sometimes, the song names contain the track number and a separator with some in this format



13 - J. Cole - Best Friend


and others like this



13 - Beautiful People


After some digging around I found that the best way to go about this is to define a regex pattern that will remove any unnecessary characters in the string. Cool. I've looked at other SO questions on a similar topic here and a couple blog posts but still no luck.


This my first time dealing with regular expressions and I find it quite useful, just trying to wrap my head around coming up with efficient/useful patterns.


Here's what I need to remove from the string if it is a match



The track number
The "-" or whatever separator character that follows it
The artist name and the "-" that follows that(Each artist name is listed below the song, so it would be redundant)


Any help on this would be greatly appreciated as usual guys, thanks!


Edit: The same output that I would like is something like this, with just the song names. No track numbers, and if applicable; no artist names following the "-"



Beautiful People
Angel of Mine
Human Nature


.

stackoverflow.comm

[android help] How to activate speech to text with a button?


How to activate speech to text with a button?


android - How to activate speech to text with a button? - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















I would like to implement a button that when clicked would activate android's speech to text translator like the one provided by android's keyboard. Specifically, I would like a button that would have the app transcribe what the user is saying in real time, and record it word by word (real time) in an editText box. What would be the best way to go about doing this?


Thanks
















Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.










default






.

stackoverflow.comm

[android help] Android web server that can stream real time audio from local mic


Android web server that can stream real time audio from local mic



I want to write a web server on Android phone. When other phone users look at the server's web page in browsers, the web page can play real time audio recorded from the server's microphone. Can anyone please point me to the right direction? Thanks a lot!



.

stackoverflow.comm

[android help] Model View Controller in android


Model View Controller in android


stackoverflow - Model View Controller in android - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















I write android project that use MVC concept , and load available data from the model to controller to pass it to view to display it .But is there any way to load data not available and when you ensure this data is available to controller to pass it to View class to display it?.


























Observer Pattern is the answer. You will need a mechanism that Controller will register himself for Load Data Event. Which basically triggered by an Observable Class which tells observer that something has changed. And whenever this event will occur Controller will go and get the data from Modal and forward it to View.




















default






.

stackoverflow.comm

Saturday, June 22, 2013

[General] Android Support Nonexistent?


Android Support Nonexistent?



I tried to find it. REAL support i mean, a form that i can fill in and pose a question, a complaint, and have it answered. Not answers to FAQ'S and more answers to FAQ'S.
Am I doing something wrong or can't Google be bothered listening to criticism, complaints, questions, while trying to make more money and finding new ways to evade taxes?
I mean they must be trying to pick things up from the community somewhere. Here? Are people from Google perhaps actually checking out these fora?
Well I hope so, because i;ve got some more questions and complaints.



.

forum.xda-developers.com

[General] Mass Storage and Undeleting


Mass Storage and Undeleting



Hello,

I was wondering if anyone knows how to undelete files on a Note II? I'm unrooted atm, and lost a picture which I really need back. A lot of the sites I checked say root required.

Thanks.



.

forum.xda-developers.com

[General] How to install Instagram with Video for ANDROID using an .apk file! (Manual Installation) TUTORIAL


How to install Instagram with Video for ANDROID using an .apk file! (Manual Installation) TUTORIAL



Many people on Android havent been able to join in on the new Instagram with Video update because something isn't right.

I've found an APK that works, and I have just created a video tutorial to help ANYONE install it!

My YouTube channel is (devchaube15, just search this on mobile if you need to.)



.

forum.xda-developers.com

[General] galaxy s4 unlocking wont work with att code!!!!!!HELP


galaxy s4 unlocking wont work with att code!!!!!!HELP



Got a samsung galaxy s4 and I called att for the unlock and they gave it to me and I tried it but I get network unlock unsuccessful. I tried the free unlock method but u was told to turn on persha. Then when they tell you to type numbers in the diall pad to see what is locked and what is off I get the emergency calls only message what could this be.ciuld be my sim card because I did cut it diwn into a micro sim



.

forum.xda-developers.com

[General] How can I capture screen on my galaxy tab 10.1?


How can I capture screen on my galaxy tab 10.1?



press and hold the power button, followed immediately by the volume down button. Hold down both until a white border flashes around the edge of your screen and then release.

From my Galaxy Note 2 via Tapatalk



.

forum.xda-developers.com

[General] Email App Icon stuck on 1 Unread Mail


Email App Icon stuck on 1 Unread Mail



I have been having this problem and it has been bothering my for quite a while now.
The Original email app on my galaxy s3 one day decided to become stuck on 1 unread email. Whether i have read all emails or 5 unread emails, the app displays 1 unread email.
I have tried 'Clearing cache' and 'Clear data' several times on both the email app and gmail(Gmail just for the sake of it even though it is unrelated)
also, deleted all my inbox, junk and trash emails online.
However, no matter what i do the icon still displays 1 unread email.

My phone is not rooted and has been and still working perfectly fine apart from this issue.
I know that the issue isn't that big of a deal since technically email and everything is working, but that 1 on the email icon really annoys me.

I have uploaded a screenshot of what i'm talking about just incase i haven't made myself clear.



.

forum.xda-developers.com

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...