Facebook registration process for Android App - android

I am in the process of registering my android app in facebook. I am following the steps shown in the document
https://developers.facebook.com/docs/android/getting-started
This needs the package name and the class name. I am aware of the package name. Could you please let me know what is "class name". Is this the launcher Activity (MainActivity.class) ?

Related

Facebook Xamarin Android app getting Content Not Found error

I'm having an issue with my Xamarin Android app returning the info below. From what I can tell I have everything configured correctly in the settings. The package name, class name and hash keys all look good.
Could there be something I'm missing?
I also posted in the Facebook Developer Community page but haven't received any responses.
Update
Should the Class Name be MainActivity? Something like namespace.MainActivity MyCompany.Android.MainActivity

When I change the package name, where else I have to change?

First I uploaded one app with one package and now client changed the package name, in my app I used FB login and push notifications with the old app, so I have to change any thing in the FB developer either I have to create new account or I can use the old fb developer account and app_ID, with changing of the Package name.I am so much confused what I have to do, when I change the package name,please suggest some solution.
You also have to change the folder names to match the name of the new package.
For example the package:
xxx.yyy.zzz
Should correspond to the directory:
xxx/yyy/zzz
First , In android code, you will need to change package names in manifest xml and gradle mainly. use refractor for that.
secondly,
you mentioned that you used fb login and push notifications,
so for these, you will need to make some changes .
in Facebook developer app settings page, simple add your new package name to existing package list,
and for GCM push notifications, do the same on developer console and create new configuration files and add them to your project and everything will work fine.

Android : How to Get Namespace of a Renamed Package Name For Facebook?

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!

Getting link to my app on play.google before posting my app

I want to share link to my app(link on play.google) using facebook api. But I have to have it before posting app on market to put it in my code. Are there any other solutions except updating my app right after posting?
use this
https://play.google.com/store/apps/details?id=<your package name>
and you can get package name by this way.
String packageName = getApplicationContext().getPackageName();
currently it will not show any app but after publishing it automatically redirect in your app page.

Package and Activity name

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 (-*-)");
}

Categories

Resources