dani alex

Greenhorn
+ Follow
since Oct 14, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by dani alex

ok...so new problem.

Can I set up a QR code so that if someone scans it from barcode scanner it goes to the market, but if they scan it from bar code scanner via an intent in my app, it just passes a text value?
12 years ago
nvm....I just embed the text in the qr code. Figured out how to do this. :P
12 years ago
I've searched, but really have no idea if this is even possible.

I am working on an application. There will be 10 QR codes that I generate. When one of these 10 QR codes are scanned, I need my application to open with the knowledge of what code was scanned.

Does that make sense?

(a simplified example) :
Qr code #1, when scanned opens the application and the screen prints "Frank".

Qr #2, when scanned opens the application and prints "Upfront".

Is this possible? Can anyone point me in the right direction?


cheers!

12 years ago
Ok. So I fixed it. Not quite sure why this worked though.

If I put the editString = getText().toString() inside the onFocusChange for the edit text field, instead of the onclick of the button it works fine. Then I just have the button do it's own thing with the editString.

Thanks for the replys!

I am new at Android and just learning how to work with it. The debug and exception systems make sense now. It is actually quite lovely.
12 years ago
How can I test if it is null if getText() causes the force close?
12 years ago
I have searched and tried all the solutions....and nothing seems to work. help please!!

here is the offending snippet, pulled out of the rest of my code. any way i try to use


creates a force close. If I comment out that line, it works fine.



update: Any form of getText() or setText() that I call within the void onClick causes a force close
12 years ago