news part of android application - java

I need to add news part to my android application.
For example some application shows a notification that says the new version is available or our new product has been released. Some application shows this once and some of the shows each time the Internet is available.
Is there a class for server and client side of this parts?
thank you for your help

While working with Google Playstore, you can achieve this by updating your app version in the manifest file before publishing the updated apk build. Google Playstore will show timely alerts to the user saying "App needs to be updated", redirecting them to the Google Playstore link.
android:versionName="2.0"
Also you can call one of your webservice, within the application which checks the existing app version and latest app version. If the app needs to be updated it redirects to the same Google Playstore link.

Related

Error while installing two similar Unity apps on a device

I wrote an android app. It works correctly (install and run), but when I change the app bundle identifier, keystore, name of app and name of the company and after that and trying to install the "new app", my device says that the app can't be installed.
But if I delete the old app it's okay to install the new one. Why?
An android device can only have 1 installation of 1 package id.
Every Android app has a unique application ID that looks like a Java package name, such as com.example.myapp. This ID uniquely identifies your app on the device and in Google Play Store. If you want to upload a new version of your app, the application ID (and the certificate you sign it with) must be the same as the original APK—if you change the application ID, Google Play Store treats the APK as a completely different app. So once you publish your app, you should never change the application ID
So, the really problem was with Facebook SDK, which i used in my applications. If you will try to install new app with same Facebook SDK ID you will get error.

Link to local Google App Engine database

I have created google app engine application and I run it on: 10.0.2.2:8888/
but I forgot what is the full link to get to the full list of recrods uploaded to the app engine.
http://10.0.2.2:8888/WHAT_SUPPOSE_TO_BE_HERE
The App engine was generated automatically by ADT(Eclipse) for Android application.
This is the correct answer which has to be at least 30 characters long:
http://localhost:8888/_ah/admin/

New GCM Implementation Running On Emulater having Issues

I am trying to Implement GCM for my application but emulator gives above message.
I have updated my Google API
I also include Google play service library project
I also add Google play service library
I also recreate my Emulator
Still my project wont run
this is my emulator details
when i try GCM with old GCMRegistrar library which is currently deprecated, is working with Emulator but when i Used new GCM google play services for GCM it shows above error message
Include gcm.jar andgcm-src.jar file from your sdk location\sdk\extras\google\gcm\gcm-client\dist to your project library. Also dont forget create an emulator with GOOGLE API and add your google account in your emulator(emulator created with google api) settings-> account & sync settings -> add account -> google account -> now enter a valid google id and password.
Also you must have internet connection in your system, because these message is comming from google cloud message

Facebook request does not redirect to my android app

I am currently developing an android game using facebook invites (such as ruzzle or draw sthg). I have successfully passed the login part and the request part. However, whenever I make a request to a friend to invite him to play with me and they receive the request on the facebook app for android when they click on the request, the phone opens up the google play store. I do not understand why because the app is already installed on the phone and so it should open up the app directly right?
I used the exact same code as shown in the facebook developers site and I configured my app on their developers site too.
Thank you in advance for your help.

Android + Google App Engine connection

I'm working on connecting an android app in Java with google app engine. This is my first time doing it. I watched and did the same thing that it was done in this video:
http://www.youtube.com/watch?v=M7SxNNC429U
I have been working and I'm getting the same problem. When creating the project and running it, it runs but it shows me a message that I have to create/add an account, I already register it when creating the project. When I enter my gmail account info it shows me a message saying: "Can not connect with the server". I'm not sure what it is happening, please a ed help on it, thanks for you time and patience.
Careful C2DM is deprecated in favor of Google Cloud Messaging and the latest Google plugin doesn't have the wizard for creating a App engine connected android project
That video is awesome, but there's some useful documentation for AppEngine Connected Android apps too. Specifically in the Creating A New Project section, it explicitly states,
Important: You must sign up for a C2DM account using the same Google account that you use for the Android application you are developing and for the GPE plugin.
You can go back and edit things later so that the account you're logging into the app with is separate from the role account being used for C2DM. But for the code generated by the plugin, they have to be the same account. Also, don't forget you actually have to sign up for C2DM, as it isn't enabled in all accounts by default.

Categories

Resources