I'm working on building a c2dm module for my Titanium project. (I actually want gcm, but the only change is to the sender_id, so that shouldn't be a problem).
However, I'm running into a lot of trouble when trying this. I tried using the module Kuraturpa wrote, but I can't get it to build(compilation error), and it doesn't include any .jar file for some reason. I tried following this guide, but I again ran into some build errors (this time, exec returns 2, apparently because it can't find gpref?)
Has anyone actually successfully gotten c2dm to work with 2.1.0.GA? Can they share that success? I can't believe this is this difficult.
I eventually got it to work by installing the macosx developer tools for c/c++ development from the apple website. Once that was installed, I had gperf, and the build worked for the given module.
As far as converting c2dm to GCM, that was dead simple.
Related
I'm using Android Studio and I'm close to just canceling the Android version of my app and just sticking with the released iOS version. I need to use an expansion APK and I cannot for the life of me get the downloader_library to import into Android Studio.
I try and run the project and it says it can't find anything from the expansion downloader. I've tried everything I can find on the forums. I've tried bringing into Eclipse and exporting out. I just can't get this to work.
I don't know if I have some kind of fundamental misunderstanding about Android and libraries and modules and things but I'm about ready to give up on this unless someone has an easy way to help me through. This is the very last step. I have the IAB working, the app works on multiple devices, the performance is good, I just can't figure out this splitting of the APK.
I succeed AOSP build in Nexus 4 and install google apps.
Also, I tried download app from google play and succeed install.
But, When I execute that app, failed execute.
So, check the Logcat I can find 'load .so failed' error in android run time.
Why doesn't working?
Please, how can I find solution this problem?
The short answer is: You probably can't fix this yourself.
The *.so files probably are native running libraries the developer of the app used in his code.
One guess:
Android 5 is capable of 64bit now.
While the Java part of the code works automatically with 64bit, the so-files need to be prepared for it by the developer.
Another guess:
The new ART Runtime causes problems in JNI. For developers, see this: http://developer.android.com/guide/practices/verifying-apps-art.html and
You should contact the developer and ask whether he checked his App on Android 5.
I'd like to create a PhoneGap App and open a connection to another device through Bluetooth (https://github.com/don/BluetoothSerial). I started with the sample projects but nothing seems to happen with my settings, no events are triggered / console shows nothing.
I'm new to Phonegap and after struggling for days with installing NodeJs, Cordova (4.0.0), Phonegap (3.6.0-0.21.19), Ant, getting new Java JDK (1.7.0_71), updating Android (23, target here is Android API19) I can build and run Android apps. I followed http://www.pycode.com/android/creating-a-phonegap-cordova-3.0-app-in-eclipse.html as installation guide.
Nevertheless I couldn't build the jar file for Cordova (Target "jar" is not found), paths are set correctly. I searched online but the existing posts didn't help. Actually I found out that it's better to just use the CordovaApp-CordovaLib as a library, so I used this instead. Anyway it seems like I can't use any plugins at the moment (added in config.xml and gave Bluetooth permission in AndroidManifest.xml). I'm not even sure if this is the problem here.
Seems like many people are struggling with Phonegap and I hope somebody experienced the same issues and can help.. Thanks in advance!
Update
Figured out that the onDeviceReady method wasn't called at all. Checked for cordova.js (don't just use any!) and copied it into my C:\ProjectPath\platforms\android\assets\www folder.
Quite embarrassing, maybe that's why nobody's answered. I used the PhoneGap Developer App - of course this couldn't work. Use cordova build to build apk and test it on device..
I am trying to run through the cloud sync tutorial, and for some reason it's not importing Android into the project correctly. I tried to look at the problem again today and I noticed that there are updates for the Google and Android plugins. I upgraded, and now when I try to load the App Engine connected to Android project wizard, I see the following error:
The selected wizard could not be started.
Plug-in "com.google.gdt.eclipse.mobile.android" was unable to instantiate class
"com.google.gdt.eclipse.mobile.android.wizards.NewAndroidCloudProjectWizard".
com/android/io/StreamException
Is this a bug with the latest Google plugin?
I think everyone with the most recent GAE plugin is having the same problem. If you take a look at this thread, I think it's the same issue.
Long story short, the newest plugin doesn't seem to be compatible with the wizard, which may be because Google is waiting to update it to use GCM instead of C2DM.
That's what Google's saying here, and the solution they suggest in the meantime is to create an Android project by itself, right click and go to Google->Generate App Engine Backend... I had some errors when I did this myself, but it might give you some of what you need.
My objective is to have an IDE with JS syntax error reporting and a PhoneGap plugin.
My goal is to make an android application using PhoneGap.
I understand that Eclipse has a well supported PhoneGap plugin.
The issue is that I have spent hours trying to get Eclipse JS syntax error reporting to work with no luck.
Netbeans is extremely easy to install and has working JS syntax error reporting with no extra steps needed. For example, with NetBeans, I just install and everything (including JS syntax error reporting) works. With Eclipse, I must install, then install several addons related to JS. In the end, I could not get the JS syntax error reporting of Eclipse to work, despite hours of research. I am new to Eclipse.
Is developing an android/phonegap app with Netbeans IDE a good method?
I found this plugin, but don't know exactly how it works with PhoneGap or if it's any good: http://www.nbandroid.org/
The Phonegap plugin described here on the PhoneGap wiki includes the default Eclipse JSDT syntax checking. It also includes an option to turn on customizable JSLint checking - see Section 7 here. This all comes with a single plug-in to add the Android ADT.
If something's not working for you, it would be great if you raised the specific problem on StackOverflow, on the mailing list, or create an issue.
From 7.4 version Netbeans has Phonegap support without external modules.
Obviously you need also phonegap and android sdk :)
see http://wiki.netbeans.org/MobileBrowsers#PhoneGap_2