Explanation or example of how to use ContentObserver in Delphi Application - android

I am currently working on an Android Application developed in Delphi 10.2 and have most of the functionality that I need working. However I am trying to get my head around the following SharedActivity.getContentResolver.registerContentObserver. I what to use this for detecting when an SMS has been sent via content://sms/sent URI.
I have the code that will go and get the message using sharedactivity.getcontentresolver.query but just struggling with the ContentObserver part in Delphi. Have spent 2 days searching for an example but found nothing. Maybe it is not possible!

Related

Effective way to develop scheduling apps both on web and android

Im currently studying to develop a schedule apps project.. This app developed both on web and android.. Warn: This post will be long with some newbie questions inside
So, the Main features are: the app interface like a calendar with addable reminders and activity.. (like google calendar)
The only thing i could think firstly is build a restServer along with the client, so my android app could connect to the same database.. My progress right now is developing the restServer with codeigniter..
Before going to far i decide to ask this on the forum to get any ideas.
The problem is i dont know what should i do to make them integrated to each other.. If im using library (ex: the calendar to track reminders and activity) on the website.. So how i implement that to my android app too? I know how to get the data.. But how about the ui?
Could i use any library for calendar on android and implement same data as on the website?
And then, what is the effective way to implement this project? I tried to search something like progressive web apps but no luck.. Hard to find the tutorial..
Any ideas or help would be appreciated.. This is my first post, very sorry for any mistakes and my bad grammar 🙏

how to merge call programmatically in android- conference-call

I am working on an android app that auto-call/auto-dial 5 people and put them in conference call programmatically, The calls are GSM (local calls from my number to another 5 phone numbers)
Till now what I have studied I found that currently there is no API in android SDK with which one can merge call programmatically.
Still I am looking for solution.
Thanks in advance.

Is it possible to develop an Android app that monitors the use of other apps?

I am a long time lurker on Stack Overflow where generally the solutions I sought already existed on here. However, I am stumped trying to find information on tackling this problem.
Basically, I am looking at making an Android app - first time making such an app - and part of the functionality is to monitor what else the phone user is doing and then maybe create a log of what the person has done. For example, spent 27% of the time when the phone screen is on using Facebook.
As for my actual Android Studio experience, all I have created so far is a simple app that takes in text from an input field and alerts it back out to you. I am studying a video series to learn how to use and develop with Android Studio.
I am enthusiastic about the challenge, so if anyone has some good resources or information to help me achieve this I would be really grateful.
Yes it is possible to track applications usage, using google API.
Here is google resource link
What may interest you the most is the part concerning UsageStats
You can use this since api 5.0. You can then for example use method getTotalTimeInForeground() to get the total time this package spent in the foreground, measured in milliseconds, which seems to correspond to your needs.
Therefore, using your Facebook example. After you get the package name (com.facebook.katana) , you could get the application (Facebook) uptime on a daily/weekly/monthly base.
Also, you could use getLastTimeUsed() and make your application logs those timestamp then do some maths.

Message view in android

I'm implementing an app including a feedback activity. In iOS, I use jsqmessageviewcontroller. I have searched online but failed to find a similar library in android Is there any library of displaying text messages? Like the jsqmessageviewcontroller in iOS.
As far as I know, there is no out-of-the-box solution. You will need to implement it on your own. If you look at the tutorial here: http://adilsoomro.blogspot.in/2012/12/android-listview-with-speech-bubble.html , you will get the full source code for something similar to your iOS counterpart.
In short, you need a ListView with a custom views and 9patch (fancy name for PNG) to make the speech bubbles.
Have a look at http://androidlibs.org/ to find more libraries, if you need.
Update:
https://github.com/tuenti/SmsRadar/ :
Read incoming and outgoing text messages using an Android application
across different Android SDK versions it's not trivial. If yo don't
want to appear as SMS application and your application has to read
incoming and outgoing SMSs this is your library.

Bluetooth remote control using android

I have an android tablet and have an application installed on it... Now i need to control this application on the tablet through my android device... is there a way to do such thing?
Explore this example project by Google
http://developer.android.com/resources/samples/BluetoothChat/index.html
see how it works and try to implement your programming skill to transform this chat application to your idea...
How ever I am assuming that you are the author of application which you have desire to control.
happy coding.
EDITED:
Logic structure is simple both application should be able to detect bluetooth and paired(connect) with each other for communication. once you have communication instead of sending message(in chat) you send some information via buttons which will execute some methods on tablet...Just a thought... As if in chat application you can update and add messages to your thread...this application will help you to reach goal. Lot of work though!
If you are familiar with Sockets, this shouldn't be a problem for you, because the Bluetooth-connection and communication in Android is very much the same. See the Bluetooth-Tutorial and Googles "Bluetooth-Chat" example.

Categories

Resources