How to build a simple Galaxy Watch 3 to approve notifications? - android

First of all, I'm a web developer (no experience with android development).
I wanna build an app to allow/restrict actions from my watch. The idea is simple before I run an action on my webserver, I want to send a request to my watch and get approval. If I don't accept the action on my watch in 10 seconds, I want to cancel my action on my webserver.
Any ideas on how do I start? It would be great if I can use any third party application to save time

Related

how to make an app that automate rideshare/restaurants app requests (ex. mystro)

does anyone have any idea how to make an app that automates and filter rideshare/restaurant apps requests? It's kinda working as an umbrella for more than one app.
for example, the XYZ app will be in the foreground and will monitor both Uber Eats and Postmate in the background and whenever requests are received it will show on the XYZ app screen with its details.
I believe it's not doable on the IOS but its existing on android on an app called Mystor. it uses somehow advisability functions in the phone but I want to understand the logic behind it and know how does it work?

How to Show Notifications when get close to Beacon even if the app is closed?

I have created a mini App that helps me playing with beacons.
-what i have done so far-
So until now, I have successfully connected my App to the beacon, made 2 texts, so when I'm in the app and get in the beacon's range, the texts are changing so I can see that, move 2m away or turning the beacon upside down so it simulates Out of range, and it will show the message that I'm not in the range anymore.
So far so good, I have also successfully made the app to show notifications when I get close to the beacon, and when I click the notification to open a second activity.
-the problem-
Now, I want to show a notification when I get in the beacon's range, and the app is closed (not in the background). And after, when I click on that Notification to open my app / open App Google Play's Page if not installed.
I have searched on the internet but I haven't found anything conclusive.
If you guys know anything, or have you accomplished this task, it would be great if you can help with it.
If you need more info like, my activities code I can upload it, but I considered unimportant.
Thanks!
Two points:
In order to make a phone react to a beacon without your app installed (e.g. to launch a PlayStore page) you need an app prei-nstalled on all phones that does this for you. The Google Play Services app used to do this through the Nearby feature, but it was discontinued in Nov. 2018 because of spam concerns. Since then this is no longer possible to do.
If you do have your app installed it is a straightforward process to detect in the background and send notifications. The Android Beacon Library provides instructions here:. https://altbeacon.github.io/android-beacon-library/notifications.html
You could create a BoradcastReceiver that intercept the android.intent.action.BOOT_COMPLETED.
In that way, you can launch a part of your app when you turn on the device.
There, you can use a Service or something that can manage the interactions with Beacons.
(BTW, i never worked with Beacons, i don't know what are the policies that you must follow).
If you don't need to launch the app when the device is turned on, anyway you can use a simple Service
Here the link to the documentation of receivers documentation.

How to send data from an Android application to a server?

I'm developping an online Chess game in Android. The first player uses the app and the second a webpage in html.
What i want to do is to send the text with the information of every move each player makes in his turns. All the processing and validation parts of the game will be done in the Android application. The second player just receives the text, parses it into html code and then send a very similar text to the application in order to receive the authorisation of the move.
I'm really trying to spend the least possible of internet resources.
I've been searching what's my best option in order to send the messages with Android, but since I'm not very experienced with it, I don't know what to do.
I found these possibilities for sending the messages:
GCM
Android ServerSockets and Sockets
Making Push technology, like long-polling
I have never used any of those technologies, but I would like to know which one could be the best for starting to make a deeper research of.
As you can see a chess game doesn't need a great amount of messaging since I have to send and receive a single message per move and per the authorisation of it by the chess engine in the Android application.
If you know a better solution or links with an example of the technology I should use, I would be very grateful.
On your case it's just matter if the the Android player will need to be with the app running (real time play) or there will be the option to send the play, play turn off the app, and see the next move in a few hours?
If it's a real time just open the connection and use polling or sockets to keep the game running.
If it won't be a real time game, GCM is probably your best approach.
But remind that both options will mean you'll need your own web-server running stuff.

Developing an Android Client Server app

I am developing an app as follows:
Android APP (As a client)..it will send data to a Server (Java application running on a PC).
I implemented this using socket programming and it is working. I have following issues:
When I click the send button on my app the APP UI freezes for ~7 seconds. It is able to ping and connect to server but during this time frame the UI freezes and if I click any other button on the app I get a message app is stuck (but the app comes back ok after ~ 7 seconds). What is the best way to resolve it.
Once data (strings) is received on the PC, I want to show it in the form of List Box UI so that user can select/double click on the specific string and a message box is open showing that that particular string is selected. What is the best way to develop this UI and how can it be invoked directly as soon as server receives the data from Client (android app) and this UI should show up.
Please let me know. All help is appreciated.
Place all your network-related code into a separate thread, or (easier) and AsyncTask. Otherwise, you would block the UI, as you have noticed, and the app would actually crash on newer Android versions (ICS and JB).
If you search SO and the interwebs, you will find plenty of examples.

Android: How to program changes to the standard android sms GUI

I want to write an android app that changes the android standard message sms GUI giving it an extra send button. The one send button should be the usual one and the other should be the one that uses my application to send the message. How do I add this extra button in the android standard sms message GUI? Anyone got an example code on how to do this?
Kind regards
Benjamin
Ok, this you Cannot do for phones which are in the market. You will need to grab hold of the sources and come up with a custom ROM for users to flash.
However, as another option, you can build your own SMS application and let users install so. When users need to send a SMS, they will be asked whether we default/your app needs to be used. This way is a much cleaner approach and more reachable to users.

Categories

Resources