Reading SMS and fullscreen

RilleR

Member
Licensed User
Longtime User
Hello,

Im quite new in developing with Basic 4Android, but have made apps with other softwares besides Eclipse.
It is stunning and i am amazed by the simplicity and the compact code beeing generated by in B4A, eventhough there are some new things to remember.

To have more functionality in my apps i try to translate my code and continue my development.

I have two functions that i try but can't get to work, the first one is reading the last incoming text message from a specific sender. I have tried the code here Basic4android - Phone in the section below the "Sms Interceptor" but must miss something. I have a feeling that the List1 in the example is my problem, mybe im not creating it correctly in the designer..


The other problem is that i have tried numerous ways to do "Full screen".
I would like the screen to expand with the same icons and windows if started on a larger screen than my optimized "4, and also if someone install at a small screen it should collaps to still have the exit bar at the lowest bottom of the screen....is there a way ?

Simple questions mybe, but i would appreciate a point in the right direction..'

Thankyou in advance

/Richard
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
SmsInterceptor should be used to intercept new incoming messages. You should use SmsMessages to access stored messages: Basic4android - Phone

It is better to start a new thread for the second question. Setting full screen is done by checking Project - Activity properties - Full screen and unchecking Include title.
 
Upvote 0

RilleR

Member
Licensed User
Longtime User
SmsInterceptor should be used to intercept new incoming messages. You should use SmsMessages to access stored messages: Basic4android - Phone

It is better to start a new thread for the second question. Setting full screen is done by checking Project - Activity properties - Full screen and unchecking Include title.


Thankyou for your reply Erel,

I want to access stored messages and show the last recived message from a specific sender. The reason to why i don't want to use SmsInterceptor at this point, is because i need it to work even if the user have forgot to load the application. I have found the example of this, but i can't get the message to show in a Listview....mybe i'm missing something :)

Sorry i will use one question per post from now on ;)
 
Upvote 0
Top