Im trying to build an Android Phonegap application with facebook-plugin.
This is my eclipse's project tree:
and this is the FB app settings form:
did i fill it correct?
It's been some time since I've built for Facebook but I'm pretty sure that the 'Package Name' needs to be your main package that the app is known by - so in your AndroidManifest.xml it will be whatever the value is for package=.... Then the Class Name is the name of the class that you want to launch from Facebook. The little [?] seems to indicate that this can be any class.
You might want to change Package Name to com.tech.map and Class Name to org.apache.cordova.facebook.ConnectPlugin....but I'm really not positive. Maybe either will work. Based on my reading of the ConnectPlugin readme, I'm not even sure that you need to do this; it looks like all you need is an APP_ID which can be found at the top of the "dashboard" page for your app.
Related
I created a CastRemoteDisplayLocalService descendant following the official docs.
OnCreate is called, onCreatePresentation never. What can be the reason behind this?
I used this code as an example: https://github.com/pasha656/Chromecast/tree/master/CastDisplay I had different package names but the same app ID - maybe this can be a problem. I tried to search the official docs whether app IDs and packages are linked together - no success, no info so far.
The above referred project and my project are calling onCreatePresentation() for me. I am not sure what are you missing
I would recommend you to follow the below steps and see if you can figure out something
Download this project : https://github.com/syatam/Cast-Remote-Display
Import to Android Studio and install it on Android mobile
App launches => Click on PLAY and select the chromecast device
When the app is connected with chromecast device, you should see onCreatePresentation() is being called in your logcat messages.
Share me your sample project if you are unable to figure out. I can take a look at it.
I have reached a problem in the final stages of completing my stack. I have been working on this project for a couple months now and it is finally complete. The aim of the app is for you (as the user) to be able to have a type of calculator which performs a certain sequence of sums once a numerical value is entered. It is now finished (thank goodness! :P) but I have reached an error whilst saving this app. I am saving it as an Android application (.apk) for use on a mobile phone. I have the Android personal 1 pack, and my error is as follows:
There was an error while saving the standalone application could not compile application class
I am unsure as to why this is occurring but find it hard to believe that this could have occurred because of either invalid syntax or that a command I was using was incompatible with Android.
As I said before my stack is very simple and only performs a few basic mathematical functions (mainly multiplying contents of fields) by each other. If you wish to see this script, please request.
#ninjabunny14 yep it's a good idea to include code, actual text of error messages, details of the platform you're developing on, versions of LiveCode/Android etc
In the meantime you could Google "error while saving the standalone application could not compile application class" like I've just done and found quite a few links to LiveCode forum threads (like this one http://forums.runrev.com/phpBB2/viewtopic.php?f=53&t=12330) which look like they might be of use...
NinjaBunny,
This sounds more like an error from the Android SDK than a LiveCode error. For starters check these things in the Android settings pane in the LiveCode Standalone Applications Settings:
Identifier: It has to be unique to this application. If you've ever done a test build for Android without changing this default identifier you will get an error.
Signing: Unless you have a key, choose Sign for development only or Don't sign.
Minimum Android version: make sure you have all of the packages needed for your target version in your Android SDK.
Go to Edit/Preferences and set up the Android SDK path, which is probably empty in your case:
I had this a few times because it is easy to forget.
The identifier in the android settings does not like characters like - so do not use a name like com.itis-me.myapp , but use com.itisme.myapp
the use of a character like - gives you this error.
I'm fairly new to publishing apps with FlashDevelop(FD) and Air, and me and my colleague are having some issues with some settings before the publication of the app.
So, here's the main question, what do you need to do to get a decent setting in package of the manifest-part of the application.xml that gets "merged" with the .apk file?
Is the package i use in my FD project somehow corresponding to the package in ?
And am I correct in assuming that the package="some.package" also has something to do with where the App actually gets installed on the mobile device?
I mean if I'm writing a very very simple app that is contained in only say 100 lines of code in a single Main class, then i won't be using any package in the FD project... so where does the manifest package get it's string value from?
Been searching on the web for a while now and it's starting to become a wee bit annoying... it's a bit of a jungle and it's hard to find specific answers neither through android's web and adobe air's web.
Any help would be greatly appreciated.
If I understand your question correctly, no, the package name in your Flash has nothing to do with your apk's package name.
That is set in the settings when you click on
File->Air for Android Settings
In that dialog under General there's an App ID field which starts with air.
it then says you should fill that in with whatever package name you wish the app to have.
it will wind up being air.your.package.name
And as for reference, you're right, there's not a whole lot on the web, but this book is quite handy:
http://books.google.com/books/about/Developing_Android_Applications_With_Fle.html?id=KGmmyBns0ngC
Or if you're going with straight Flash:
http://shop.oreilly.com/product/0636920013884.do
i have used eclipse, android sdk and phonegap to create a small application. I give it a test and create a test.apk package.
What i ma wondering is where can i set up some details about this app, like who made it, the app name, the version, an icon maybe, any other things i might need to setup.
I have a AndroidManifest.xml file and when i open it i get a nice gui but i don't know what to modify there
Im not sure what i need to set up and even if i need to.
A good tutorial is much appreciated. Thanks
You can set most of those things in the manifest file. If you want to include this information in your code, add license headers in all your classes, use java-doc etc.
If you want this information to be accessible in your app like from 'About' button, you have to handle it yourself.
Take a look at this example.
This details are to be filled when you upload it to android market. I dont think you set them in AndroidManifest.xml ! you can see the xml code , by clicking on the "source code" tab just below the UI .
Here's a tutorial that describes managing AndroidManifest.xml, the app name and icons from our AppLaud Eclipse plugin for PhoneGap Android.
I'm trying to add the facebook SDK to my project but it won't work at all.
I've followed the official steps; opened the fb sdk, made sure it's set to "is library", in m yown project go to properties->android->add library and it lets me select com_facebook_android and it shows up with a green tick next to it. HOWEVER, when i go back to that screen straight away it now has a red cross next to it, and if i try to launch the app in the emulator it has " com_facebook_android] Could not find com_facebook_android.apk!"
(This is just me testing without referencing the library in my app)
if i DO reference the library, then any calls to the facebook library give an error within eclipse and the tooltip suggests to add it to build path, so if i click that it launches fine, but still does the above apk error and the app force closes on any activity which references facebook.
As far as I can tell I'm following the official instructions fine but it just keeps coming back to that red cross in my app's properties
Does anyone know what this could be?
Not sure why you have the issue, i've setup a empty project with facebook library in it, if you have no luck then try downloading that, unzipping it and importing exsiting project into workspace.
link : Download here
you know what i have done one trick to use the official facebook SDK in my application, i have created com.facebook.android and add all the library classes into it. Then i can easily reach to access any class whenever i want it. This can be a way to use the classes inside your application instead of using Library.
Its running fine in my case.