Good day. I'm working on an android program which is application manager. I want to call the application of "Dictionary.com" but in my code, I should include the package and activity name of this application. Can someone post here the Package name and Activity name of this Application? Please. THANK YOU!!!
Application name is something that visible to the user. So put some user friendly name such as "Digital PocketDictionary"
Package name should be unique. It is recommended if you can use your domain in reverse version. As an example, if you have your own hosting or a website related to this app such as www.digitaldic.com you can use com.digital.dictionary as the package name. Make sure all the letters are simple.
It's a little difficult to get what you are asking for, specially the activity name. But here's what you could do to get the package name.
Install the required apps on your phone and then connect it to your computer and in your Eclipse, go to the "DDMS" perspective. In the devices window, click on your phone's entry. On the right, go to the File Explorer.
Go to system/app. You should see the name of the .apk file. You'll get the name of the package in the "info" column.
Getting the name of the activity might be difficult. you could contact Dictionary.com to get the info, coz I doubt you will be able to start the activity, if Dictionary.com doesn't allow it.
I just tried this code and it works without having to include the activity's name:
PackageManager pm = this.getPackageManager();
Intent i = pm.getLaunchIntentForPackage("com.example.test3");
if (!i.equals(null)){
startActivity(i);
}else{
System.out.println("too bad (-*-)");
}
Related
I've recently started creating an app for Android. but i do not have a Website.
how to get Package name. Can i make it com.example.(app name) ?
and how to know if it is available or not ?
package name have no concern with any website. It is used to identify your application uniquely in your mobile phone and in any App store. You can set any name or string in your package name i.e com.example.myfirstapplication
it is not necessary that there should be com.example in the package name you can change them also i.e my.first.application.packagename
You can set whatever package name you like, as long as it isnt already taken when you publish it on the playstore.
More good reading: https://stackoverflow.com/a/6273935/5644761
Question: Where/When would the end-user see the package name for my application? I've found these places thus far, thanks!
On the Android OS > Settings > App Manager > Running > Click mine
play.google.com URL get parameter (example)
Details: I'm prepared to publish an app using com.mydomain.myapp where myapp is currently a word in English but the user bases, phone carriers pre-installing the app, etc. will be in asia, latin america, africa, etc.
caveat1: Please take the details of this ex with a grain of salt as I've simplified it so you don't have to read a novel.
caveat2: I read Androids docs and the many stackoverflow posts re how to name your package w/out seeing reference to user exposure.
caveat3: My question would be "Does it matter what I name my package yadda yadda..." but I figure that would be subjective.
I would not worry about the package name, just look Facebook app, which package's name is "com.facebook.katana" (may be mistaken, but the fact is that finishes on "katana".
I have an Android app and its package name is com.domain.myapp. During the development, I have to change it to something else due to some reasons and I changed it to com.domain.myappandroid.
Now, I have to integrate Facebook SDK for Android and it asks me to add the package name and the class name of my Activity. My Activity is named GameActivity and it is in com.domain.myapp.activities, the package name didn't change to com.domain.myappandroid.activities after changing my app package name.
I know that the package name is com.domain.myappandroid but I am not sure if I should use com.domain.myapp.activities.GameActivity or com.domain.myappandroid.activities.GameActivity. I tried both and I don't know if it is working or not since the dashboard says 0 installs for Android.
Please help, thanks!
Note:
I am using using Facebook Android SDK v3.0.2 and I can't verify if it is reporting the app installs properly.
Write the package name of your app i.e. com.domain.appandroid. It will work fine.
actually you should use com.domain.myapp, the class name have nothing to do with the Facebook SDK function but callback to game site , it means wether classname you used, the Facebook function will worked well, but if you use the com.domain.myappandroid, players click the message that send by their friends, the game will not launched。。。。 so ~ use com.domain.myapp~ i just have the same case~ and i worked very well by this way!
I would like to update the SmartWatch widget whenever the user changes the widget settings.
I know it can be done by sending an WIDGET_IMAGE_UPDATE_INTEN intent, but it seems that I don't have the information of host app package name (i.e. com.sonyericsson.extras.smartwatch).
How can I get "host app package name"?
PS: Currently, I've hardwired the "com.sonyericsson.extras.smartwatch" name in my code.
Every time your widget extension is receiving an intent from the host application, the package name of the host app is included as an extra in the intent.
String hostAppPackageName = intent.getStringExtra(Widget.Intents.EXTRA_AHA_PACKAGE_NAME);
You could store the package name for later use in your code. This is also how it is done in the utility classes of the SDK, i.e. it is stored as a global variable in the abstract class ExtensionService, which is used by all Sample extensions in the SDK.
Take a look at the SDK utility classes here
I am trying to submit an application to the marketplace but when I try to upload I get a message:
The package name of your apk (xxx.xxxxxx.xxxxxxxxx) is the same as
the package name of another developer's application. Choose a new
package name.
My company has two apps in market already but the package names are distinct. I have queried the address https://market.android.com/details?id=xxx.xxxxxx.xxxxxxxx to check to make sure that it's not mistakenly identifying one of our other apps but it comes up as "Not Found" which should mean that this package name doesn't conflict.
Is there something else I should try to get this to work? I am going to try a small change to the package name and see if it will pass but this error shouldn't have occurred in the first place.
Maybe the package id does exist, but the application is in an unpublished status at the moment.
Is better to rename the package in this way you avoid having problems.
Change the package name or contact google support