Default Activity Class Name

  • 1
  • Question
  • Updated 5 years ago
  • Answered
To use FB connect plugin with Phonegap Build, we need to give FB:
Default Activity Class Name
This is the fully qualified class name of the activity your app launches by default. We use this when we deep link into your app from the Facebook app. You can also find this in your Android Manifest

I'm assuming it's not:
org.apache.cordova.CordovaActivity
and probably not:
com.example.WidgetName

Suppose my config.xml is:

TicTacToe

Then the "Default Activity Class Name" is:
com.gaming_platform.tictactoe.TicTacToe
?
Photo of yoav zibin

yoav zibin

  • 22 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of John Weidner

John Weidner, Champion

  • 435 Posts
  • 80 Reply Likes
To post your config.xml in this forum you need to put it within <code> </code>

Your app's package name will match the "id" specified for the "widget" element.
The main class name will be the contents of the "name" element. So if your config.xml contained:

<widget xmlns   = "http://www.w3.org/ns/widgets"

xmlns:gap = "http://phonegap.com/ns/1.0"
xmlns:android = "http://schemas.android.com/apk/res/android"
id = "com.abc.def"
versionCode = "1"
version = "1.0" >

<name>MyApp</name>


Then your default activity classname would be:

com.abc.def.MyApp
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hi Yoaz

Can you confirm with John's answer?
Photo of yoav zibin

yoav zibin

  • 22 Posts
  • 0 Reply Likes
I believe this is correct. Thanks for the reply :)
Photo of Scott Saunders

Scott Saunders

  • 11 Posts
  • 0 Reply Likes
What happens when there are spaces in the Name?
Photo of John Weidner

John Weidner, Champion

  • 435 Posts
  • 80 Reply Likes
Java does not allow spaces in a class name. So that wouldn't work.
Photo of Scott Saunders

Scott Saunders

  • 11 Posts
  • 0 Reply Likes
The answer, after a little research, is that build removes the spaces from Name so that it will work.

App Name becomes AppName

:)
Photo of Row Moin

Row Moin

  • 1 Post
  • 0 Reply Likes
how to open my phonegap app automatically when my internet connected?
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hello there

You are contacting PhoneGap Build support but this is hardly Build issue. Please forward 3rd party, framework or programming inquiry at their appropriate support site.

PhoneGap Google Group: https://groups.google.com/forum/#!for...
Cordova @ Stackoverflow: http://stackoverflow.com/questions/ta...

Thanks.
(Edited)

This conversation is no longer open for comments or replies.