android beeonics placement papers - skillgun
If you have multiple Broadcast receivers how do you identify for which application is it coming?
Question is not so clear. But if the question is how does Android sends broadcasted message to different application, then it is based on the action, data, and category present in the intent.
Android will perform action test, data & type test, and category test. If all the test are passing with any of the intent filters of receivers, then those receivers will be triggered.
If multiple receivers intent-filters are matching with the intent then all the receivers will be triggered. But there is no specific order if priority is not set in the intent filter.
How do you check memory leaks?
go to ddms, get the heap profiling dump.
generally .hprof files will be in /data/misc folder.
save the heap dump profile to desktop.
Now use eclipse memory analyzer to analyze the memory of your app.
Do you require any key for development?
If you are planning to release any application into the market, then it is mandatory to sign your application with private key.
But at the initial stages, you can use debug key which is located in c:\users\<username>\.android folder.
But remember you can't release an application which is signed with your debug key. You have to sign with a private key obtained with keytool
command. keytool is a .bat file available in java\jdk\bin folder.
You can use keytool to create your own private key with password.
Note: Important to remember that don't ever forget your key and password, else it would become impossible to upgrade your application.
To upgrade your application you have to sign with same application.
More about how to create private key and how to use keytool, please refer to below official android link.
How do you upload app into playstore?
If you want to upload an app into google play store, then follow below steps.
1. Create a private key to sign your application.
Note: to create private key, use keytool command.
2. sign your application with private key.
Go to file->export-> and select your private keystore to sign.
3. Go to https://play.google.com/apps/publish/signup/
4. If you are uploading your first app, then you have to pay one time reg
fee of $25.
5. Go to developer console
6. Click on add new application +
7. Add apk and title , and follow with rest of the process.
How do you start push Notifications?
If this question is about sending a push notification to the client mobiles from the server, then Server side program has to be configured to use GCM (Google Cloud Messaging). Once the server is configured to use GCM and client android app also configured with GCM client framework, then GCM will automatically push the notifications from server to the client mobile by using GCM framework.
More about using GCM framework to send push notifications from server to client (android phones), follow this official android link.
What is debugging mode?
You can build your application in 2 modes.
1. Debug Mode : Generally we use debug mode when we develop and test our application.
2. Release Mode : We use release mode, when we are about to release our application into play store.
Back To Top