I have made App using Ionic Framework and Android Home Screen widget using Java(as we cannot create widget using ionic,i guess).
so now I want to use some data from my app to Widget.Is their any way to get this..?
i have used PouchDB in my App. is it possible to access same database in both.
is it a way to access same encrypted file from both.
is angular-storage same as shared preference in android.as i have stored some data using angular-storage.
Related
So, I am sending links via email from my application. When these are received by another user, I would like the link to be able to open directly in my Android application.
Have been trying to achieve this by using Intents but currently cannot get working correctly.
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.
I'm developing java desktop application that communicates with MySQL database via JDBC.
I want to develop an android application that will use Web services to access data in the same database.
Is there a way to tell android app from my desktop app when to invoke web service (I want all changes that i have committed from desktop app on database to show in android app)?
Which is the best way to implement this?
Is it possible to send parameters from desktop to android via socket and then in socket thread in android app to invoke web service? Is this good approach?
the best way to do this is with an SOA approach. use a j2ee container, and expose your services by web services. then android can directly use those over http.
alternatively, you can use jdbc in android just as you use jdbc in the desktop application.
You can use Google Cloud Messaging. GCM is perfect for doing this type of data syncing. To achieve that you can do the following
Register your android app with the GCM server and save the ID in your database.
Send a push notification from your desktop app or web service to your android app by taking the ID from your database at the time of update.
Simply invoke the web service in your android app when you get the message from GCM server.
Here is an implementation of GCM server & client.
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.
I have an online store (like PC WORLD) and I want to create a Android app of this store, too.
The back-end of this online store is written by PHP & MySQL Database. So all of the data is stored in MySQL Database.
So what is the best way to retrieve information from remote MySQL server to my Android app?
Best regards,
Julius
Create a web service or some sort of API for your site.
Have you thought about using your current web site and just creating a web view app? In other words just creating a web browser window minus the address bar, and other controls? You could create one custom webpage then all you would be doing in the native app language is the browser window.
To retrive data from mysql the best way is create your web as android app or simply convert this web application to an android app by using www.web2apk.com.
This site will create an apk file of your web application. So you dont need to make any new database for android it will automatically retrive from same database.
You dont need to include any service for that.