app keeps force closing

derik123derik123

Well-known member
Mar 25, 2010
81
0
0
Visit site
Alright, this is my first post here... because I was looking for a support forum.
Before I ask you my problem...

yes, I'm using google app inventor
:(

Alright, So i'm attempting to make a sms spammer.
why? because i'm bored and wanted to check out google's app inventor.
I know this may seem like a bad idea... but i don't plan on putting it on the market. I'm just "making" it for my own knowledge.

whenever i press the send button it force closes.

anyway.. here is what i have so far..
25gs60k.jpg

there is the "code"

and here's the "app" itself.
15hlymb.jpg


can anyone from this tell me why it's force closing?

thank you.

if i take out the foreach and just have

Code:
when sendtexts.click
do
set texting1.phonenumber to textbox1.text
set texting1.message to messagetext.text
call texting1.sendmessage

it works fine.

so... :(

theres the logcat

Code:
W/ActivityManager(  140):   Force finishing activity com.google.AppInventorPhone
App/.Screen1
W/ActivityManager(  140): Activity pause timeout for HistoryRecord{4414a4b8 com.
google.AppInventorPhoneApp/.Screen1}
D/dalvikvm(11014): GC_FOR_MALLOC freed 9279 objects / 430928 bytes in 80ms
W/ActivityManager(  140): Activity destroy timeout for HistoryRecord{4414a4b8 co
m.google.AppInventorPhoneApp/.Screen1}
I/Process (13421): Sending signal. PID: 13421 SIG: 9
I/WindowManager(  140): WIN DEATH: Window{44354a78 com.google.AppInventorPhoneAp
p/com.google.AppInventorPhoneApp.Screen1 paused=false}
I/ActivityManager(  140): Process com.google.AppInventorPhoneApp (pid 13421) has
 died.
W/InputManagerService(  140): Got RemoteException sending setActive(false) notif
ication to pid 13421 uid 10131
 

Fazulka

Well-known member
Apr 26, 2010
135
10
0
Visit site
I have attached a fixed version for you. The I don't know how to use that foreach block. You were getting the force close because you tried to define a variable from an object. To open the source I sent click "My Projects" then "More Actions" then "Upload Source"
 

Fazulka

Well-known member
Apr 26, 2010
135
10
0
Visit site
My friend and I made this app a little nicer, added a contact picker and made it look better. You can now use buttons to select the number of texts. I have attached it to this thread. I also changed the icon to a spam can.
 

derik123derik123

Well-known member
Mar 25, 2010
81
0
0
Visit site
wow! Thank you very much for your help. this is fantastic. I hope to learn alot from this. Though, if you don't mind, could you upload the .zip for your second verison?

thank you.
 

Trending Posts

Forum statistics

Threads
943,216
Messages
6,917,885
Members
3,158,892
Latest member
ukfred