Android app using java Webview container - Push notifications to device - java

I have an Android app that I have created using the Java Webview. The app resides on a website and right now is pretty basic. I am wondering how or if it is possible to send Push notifications to the device? I am using the most current SDK and the Eclipse IDE.

Related

Doubts related to Android wear development | Beginner

I have built a Java Spring Application. This application in the end after doing its work pushes data to a sqlite database.
Now the functionality that i want to add is: Once data is pushed into db, i want to send a custom notification on an app running on android wear. This custom notification should have a message and some options for user to respond to. Finally on seeing the notification on android wear the user should select one of the options and that should be stored in a database.
As i am new to android development, I cannot understand three things:
1. What kind of android application should i develop?
2. How can this android application receive some message or data from some other service (in my case java application)?
3. How to save user response to database?
Some guidance would be really appreciated.
Thanks
I will try to answer all your questions. If your current Java application is a web app, then you will end up building a mobile/wearable app that will communicate to this web app. If your current Java application is not a web app, you will either have to integrate its logic into the mobile/wearable app directly or turn it into a web app so it can communicate with the mobile/wearable app.
You will end up developing two Android apps, essentially. A mobile app for the mobile device and a wearable app that will communicate with the mobile app. This can all be done in Android Studio and in one project though, so it will basically be one application at the end of the day.
Like I mentioned above, you will have to either integrate that existing application's logic directly into your new Android mobile app, or turn your Spring app into a web app and host it on a server that your Android mobile app can call out to to get data.
Android has the concept of local databases and can actually use SQLite on the device. This is most likely how you would store the response from your service.

After receiving signal from Bluetooth device to open new activity(screen) in android based mobile app

Is it possible using Android Studio or Eclipse Indigo + ADT to develop a mobile application where the app will receive a Bluetooth signal and based on the signal will open Activity(screen)? For example I am on the first floor in a building and I am receiving this Bluetooth signal then automatically my android application will open new screen with relevant information.
If that is possible do you have an idea where can I find tutorials?
Regards

Sharing Application Data in Google Drive for installed desktop app & android app

I was intent to use https://developers.google.com/drive/web/appdata, so that my Android app & Java desktop app able to exchange data among themselves.
Currently, the Android project had enabled Google Drive API OAuth 2.0 credential under "myapp-android" project name.
I was wondering, in order for the uploaded data visible among my Android app & Java desktop app, must my Java desktop app also create OAuth 2.0 credential for installed app, under "myapp-android" project?
The reason I ask so, as I feel uncomfortable, for a single project shared by both Android and Java desktop.

making a Java application synchronize the contacts on the PC, when an android phone is connected to it

I do not know how to start building upon this simple idea :
When an android phone is connected to a PC, a Java application running on the PC detects the device and starts synchronizing the contacts in the android phone.
Can anyone help me how do I start this ? I know how to write applications in Java but have never worked with android OS or have made application for the android operating system. That is the reason I am unable to start this.Please tell,if there is anything I need to delve in before I should start.
The contacts info can only be got in the android apps, so you have to write an android app and a pc app, and transfer data between them.
When a device is connected to pc, start your pc app automatically.
Install your android app to the device.
adb install apk-path
Start the android app.
adb shell am start -n pkgname/activityname
Start a tcp connecton.
adb forward tcp:port tcp:port
read this page for details.
Try to collect contacts in android app and transfer them to pc. There are many articles about how to get contacts in android, and the data transmission will use Serialization and Socket programming.
adb (android debug tool) is a android sdk tool, you need to learn more about it.

php triggers android app to send its gps location

I am a beginner in java and php.
My application is made of 2 parts:
server side (php)
client side android device (java).
Whenever the admin on the server side wants, he can send request to the android for its location coordinates even if the application on android is not running.
I managed to create the java file that will detect the mobile location and save it in a variable on the android.
My question is, how to enable the php(server side) to send request that will start the action of finding the location coordinates on the android?
thank you for the help in advance!
You can add push notification capability to your app using Google Cloud Messaging for Android.

Categories