BackgroundJS for Android - android

I saw plugin BackgroundJS yesterday and searching for one working on android, but didn't find anything
Is there any for android ?
If answer is yes, then please give me a link.
Or if it isn't :
How can I call my android service with Javascript (in phonegap)
com.abc.def -> BackgroundService.java

Related

Why is android looking for RNCGeolocation when I use react-native-geolocation-service?

Trying to get an android version of a react-native 0.61.2 app running...
The app intends to use react-native-geolocation-service but can not get past this error:
"Error: #react-native-community/geolocation: NativeModule.RNCGeolocation is null."
I understand that react-native-geolocation-service uses #react-native-community/geolocation on iOS but this is android. I have searched the entire project for the string RNCGeolocation and it's not there. How can I get running with react-native-geolocation-service on android?
For anyone dealing with this, i've tried every solution out there and still didn't work. I found that Geolocation uses a native location api (ou native module), and sometimes the problem is that the api seems not to be "there". So I installed react-native-location, that seems to provide (some of the same?) functions of that native api and, after that, I installed and was able to use #react-native-community/geolocation.
Hope it helps :)

Error in installing package for Microsoft.Azure.NotificationHubs in xamarin forms

I am quite new to azure hubs. But spent three days to understand the flow(to use in xamarin forms).
Currently tying to link with android only(through xamarin forms). So when I thought everything needed is ready(GCM key and azure access policies) from my side, I started coding using vs2015.
First thing I did was creating "Blank portable cross platform" project.
Then,tried to install Microsoft.Azure.NotificationHubs package. PFA
But I am getting following errors( related to Profile259).
I spent whole day to understand what error is saying and I understood that package is expecting different target framework than what I am referring.
So I tried changed to other versions and through some blogs I found that maybe this Profile259 directory is missing.But it's all there.
Package is expecting .Net Framework 4.5 Full Profile. I cross checked it by following the link
I updated my azure version.Nuget package is also latest.
So what could possibly go wrong.
Please guide me in right way to get push notifications in devices.
PFA below.
I had to add it as a component. Go to the Components under the Android and iOS project, select edit components off the context menu, and add the "Azure Messaging by Xaramin" component. You'll probably have to download it by clicking "Get More Components".
If you're working on Android only for now, try removing all other targets from screenshot #2. There's a chance the error message is caused by one (or all) of the Windows targets.

How to set up CouchDB-Lucene on Android

We are enhancing an Android app to have advanced SEARCH features.
The app uses Couchbase-mobile (version 2.0.0) as a an Android service...
I have these questions with implementation:
How simple it is to integrate something like [CouchDB-Lucene][1].
I guess we will have to trigger the couchdb-lucene java process on the Android device (as a service), but not sure if configuring the local Couchbase's .ini file is the only thing needed.
Is CouchDb-Lucene okay for Android or too heavy?
Would be great if anyone could provide some pointers.
Looks like someone got started here: https://github.com/ArtooTrills/TouchDB-Android-Lucene
I should note that this version of the Android syncronizing database is old. We are working on a new lighter version of it, check out the Couchbase mobile mailing list to get the latest info: https://groups.google.com/forum/#!forum/mobile-couchbase

how to debug android sdk code while debugging my app?

I am developing android app for a a couple of months and still in the learning process.
I often feel the need to drill down deeper into code for certain issues that don't make sense to me. For example when I see crashes in apps and the stack trace is shown,, containing SDK classes Looper etc...
So I was wondering if it is possible to debug through sdk code while debugging ?
currently I am writting for platform API 7 and 8. when we download the SDK is the source code SDK source accessible as well ? and if so can we debug it ??
Thanks,
Vogella gives a tutorial on how to do this. It is a plugin. So just click the link.
It is the number 2 in the article.
Let me know if it helped. =)

phonegap Google Analytics plugin for android returns class not found when i call one of the methods

Good evening,
I am currently developing an application for android using phonegap and sencha touch 1.1.
I am having trouble with the GoogleAnalyticsTracker plugin for Android. I followed all the instructions on github on how to import the necessery code for the plugin to work but I am having trouble with initialization.
In my plugins.xml I have added the following line:
< plugin name="Analytics" value="com.phonegap.plugins.analytics.GoogleAnalyticsTracker" />
As indicated in the readme.md file in github. I also added the GoogleAnalyticsTracker.java file inside com/phonegap/plugins/analytics and referenced the js file in my html... every thing seems to work fine except the part where I call the start method with my account id... The method returns the failure callback with error 'Class not found'. any ideas why phonegap cannot find the class specified in the xml?
if you need more info on this please do not hesitate to ask.
Thank you in advance!
PS. i am using phonegap 1.4.1
-L_Sonic
I took a look at the src and I see that the PhoneGap.exec calls in analytics.js does not match the plugin name. You have two ways to fix this.
In plugins.xml make the plugin line:
<plugin name="GoogleAnalyticsTracker" value="com.phonegap.plugins.analytics.GoogleAnalyticsTracker"/>
Or in analytics.js replace all instances of 'GoogleAnalyticsTracker' with 'Analytics'
This is a bug in the way the code is setup in github. You should message the author to get them to fix it.
Rather than using the PhoneGap plugin, I would recommend using the Google Analytics SDK for tracking usage of application developed using PhoneGap or any web based mobile app.
Ensure that you respect your users privacy and dont send any other data to Google Analytics.
Besides you should also adhere to Google Analytics privacy policy.
Heres how to do it.
http://www.the4thdimension.net/2011/11/using-google-analytics-with-html5-or.html

Categories

Resources