Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Hello everyone, delighted to have joined this community
Started by frankkev Mar 12 2019 02:32 AM

7 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

frankkev

[GLOBAL: userInfoPane.html]
frankkev
  • Observer

  • 4 posts
  • Corona SDK

I am a programmer in AMS and I want to start programming Android with Corona. What I want to do first is an apk that interacts with the text of the incoming sms, that can extract mobile numbers in them and look for them in the list of contacts, that is the main idea, greetings to all.

[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 670 posts
  • Corona SDK

Hello, frankkev!

Sounds to me like you'd need to use Corona Native (or some plugin) in order to read texts, however, I am not sure how (or if it is even possible) to read incoming texts using Corona. As for getting the contacts from a device, I remember having seen a plugin available on the marketplace that can fetch them for both iOS and Android.



[TOPIC: post.html]
#3

frankkev

[GLOBAL: userInfoPane.html]
frankkev
  • Observer

  • 4 posts
  • Corona SDK

Hello and thanks for your reply, then you think it is not possible to access the incoming sms from corona? I ask you why it is what I need the most

[TOPIC: post.html]
#4

thomas6

[GLOBAL: userInfoPane.html]
thomas6
  • Contributor

  • 950 posts
  • Corona SDK

Hi Frank,

 

I see two main problems when using Corona for this:

- Corona apps don't run in the background. Period. That means scanning messages can only happen when the app is the active open app.

- Corona in its basic form does not have access to the content of texts, I believe (99% sure of this, not 100%). There might be plugins that do this, or you could go native, but that's a lot more complex than just using the basic SDK.



[TOPIC: post.html]
#5

frankkev

[GLOBAL: userInfoPane.html]
frankkev
  • Observer

  • 4 posts
  • Corona SDK

Hello and thanks for your answer, and to program Android with native Corona what should I do? If you can guide me, I would appreciate it very much

[TOPIC: post.html]
#6

thomas6

[GLOBAL: userInfoPane.html]
thomas6
  • Contributor

  • 950 posts
  • Corona SDK

Hi Frank,

 

Unfortunately I have zero experience with Corona Native so I can't guide you. However, I do believe it will require you to be very fluent in programming in C or C++ and juggling different frameworks, dev kits and xCode. If this sound daunting to you (as it does to me) I would assume that Corona Native is not the way to go for you.

 

Also, check the documentation:

 

https://docs.coronalabs.com/native/android/index.html



[TOPIC: post.html]
#7

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 670 posts
  • Corona SDK

Yeah, it's as @thomas6 already said. From what I've understood, Corona isn't designed to be running in the background and in order for it to be able to read incoming texts, it would have to somehow be running 24/7 (and in the background). To my knowledge, this'd be impossible.



[TOPIC: post.html]
#8

frankkev

[GLOBAL: userInfoPane.html]
frankkev
  • Observer

  • 4 posts
  • Corona SDK

Thank you for your answers, they have saved me a great waste of time because in reality all I'm interested in is interacting with the texts of the incoming sms, now what I'm thinking is that the best way would be to learn pure Android although it costs me a lot more work, I decided to use Corona because I have knowledge of lua but it is not enough. Again, thank you very much to everyone who took the time to help me.


[topic_controls]
[/topic_controls]