Android: Make phone call in app

I need to add a few numbers for a business app I am developing. What would be the easiest way to do this? Could I use the button widget to pass the number to the dialer? If so how? Also do I need to set anymore permissions in the build.settings file?

Thanks. [import]uid: 89054 topic_id: 36411 reply_id: 336411[/import]

It depends on what function you are using in your app.
Yes you could use button widget or you can create rects with numbers on it and add an Event listener [import]uid: 138389 topic_id: 36411 reply_id: 144575[/import]

system.openURL(“tel:” … phonenumber)

should dial your call. You will probably need the read phone state permission (or whatever it’s called)
[import]uid: 199310 topic_id: 36411 reply_id: 144607[/import]

I will give this a try. A little off topic but I tried similar syntax to call to google maps, but it didnt work. Any thoughts? [import]uid: 89054 topic_id: 36411 reply_id: 144674[/import]

See: http://www.coronalabs.com/blog/2012/12/18/reintroducing-google-maps/
[import]uid: 199310 topic_id: 36411 reply_id: 144755[/import]

It depends on what function you are using in your app.
Yes you could use button widget or you can create rects with numbers on it and add an Event listener [import]uid: 138389 topic_id: 36411 reply_id: 144575[/import]

system.openURL(“tel:” … phonenumber)

should dial your call. You will probably need the read phone state permission (or whatever it’s called)
[import]uid: 199310 topic_id: 36411 reply_id: 144607[/import]

I will give this a try. A little off topic but I tried similar syntax to call to google maps, but it didnt work. Any thoughts? [import]uid: 89054 topic_id: 36411 reply_id: 144674[/import]

See: http://www.coronalabs.com/blog/2012/12/18/reintroducing-google-maps/
[import]uid: 199310 topic_id: 36411 reply_id: 144755[/import]

It depends on what function you are using in your app.
Yes you could use button widget or you can create rects with numbers on it and add an Event listener [import]uid: 138389 topic_id: 36411 reply_id: 144575[/import]

system.openURL(“tel:” … phonenumber)

should dial your call. You will probably need the read phone state permission (or whatever it’s called)
[import]uid: 199310 topic_id: 36411 reply_id: 144607[/import]

I will give this a try. A little off topic but I tried similar syntax to call to google maps, but it didnt work. Any thoughts? [import]uid: 89054 topic_id: 36411 reply_id: 144674[/import]

See: http://www.coronalabs.com/blog/2012/12/18/reintroducing-google-maps/
[import]uid: 199310 topic_id: 36411 reply_id: 144755[/import]

It depends on what function you are using in your app.
Yes you could use button widget or you can create rects with numbers on it and add an Event listener [import]uid: 138389 topic_id: 36411 reply_id: 144575[/import]

system.openURL(“tel:” … phonenumber)

should dial your call. You will probably need the read phone state permission (or whatever it’s called)
[import]uid: 199310 topic_id: 36411 reply_id: 144607[/import]

I will give this a try. A little off topic but I tried similar syntax to call to google maps, but it didnt work. Any thoughts? [import]uid: 89054 topic_id: 36411 reply_id: 144674[/import]

See: http://www.coronalabs.com/blog/2012/12/18/reintroducing-google-maps/
[import]uid: 199310 topic_id: 36411 reply_id: 144755[/import]