yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] wire103:
Quick hack for using Traccar as backend

Hi,

If you want to use Traccar as the backend, then you can quickly implement a server side fix in PHP that converts the HTTP POST from Backitude to the required HTTP GET request OsmAnd style that Traccar expects.

Requirements:

- HTTP server with PHP

Place a backitude.php file with this content on your Traccar server:

<?

$data=$_POST;
array_walk($data , create_function('&$v,$k', '$v = $k."=".$v ;'));
$url='http://127.0.0.1:5055?'.implode("&",$data);
$response = file_get_contents($url);.
echo "200 OK\n";

?>

Replace 127.0.0.1 with your Traccar server, if it's located on another host than the one you put the PHP code in.

Configure Backitude like this:

Server URL: http://<yourserveraddress>/backitude.php

Successfull response code: 200

Authentication: none

Custom field1: <enter your imei or the ID youre using in Traccar>

Latitude: lat

Longitude: lon

Accuracy: hdop

Speed: speed

Altitude: altitude

Direction Bearing: bearing

Location Timestamp (UTC): timestamp

TimeZone Offset: do not post/empty

Custom Field 1: id

Works for me! Thanks a lot for Backitude - the Traccar client is not nearly as reliable or battery friendly as Backitude.
[Android Apps and Games] backitude:
Would this whole implementation be a lot simpler, if Backitude sent over a GET instead of a POST ?
[Android Apps and Games] wire103:
Yes, a toggle switch between GET and POST would make your program directly compatible, if the user can set port number on the URL as well.

Sendt fra min GT-I9505 med Tapatalk
[Android Apps and Games] nparley:
To repost from the other thread:

I have finally got around to opening up my Google App Engine app code. It runs on the free quota on Google App Engine and so it does not require you to pay for a server. Also as it's your app you have control of your location data, and can delete it at any time by going into the Google App Engine settings for your app. You send your location to your app and it is recorded in a database. The app allows you to share your location with other people by creating a white list of allowed Google accounts. I have also made a history page which you can use to see your updates from each day. I can't add links but you should be able to find the code at bitbucket.org / nparley

No doubt there will be bugs which I have not found. If you find one please add an issue to on the bitbucket page. I will continue to add new features as I can but am open to requests, just add a feature requestion issue on bitbucket.

Cheers,

Neil
[Android Apps and Games] holysmoke001:
[B[/B][/B]

ON WEB PAGE IT SHOWS ONLY "Hello world!"
[Android Apps and Games] nparley:
Hi holysmoke001,

I am not quite sure what you are referring to,

Neil
[Android Apps and Games] holysmoke001:
Hi Neil

I follow all your instructions for Setting up the app but when i go to yourapp(my app).appspot.com/

IT SHOWS ONLY "Hello world!" written on corner of the web page.

can you please upload detailed instructions step by step how to set up the app
[Android Apps and Games] nparley:
I assume you have done all the steps here? https://bitbucket.org/nparley/mylatitude/wiki/Setup App Does your site say running if you go to here https://appengine.google.com/

---------- Post added at 09:34 PM ---------- Previous post was at 09:26 PM ----------

OK the problem could be this https://code.google.com/p/google-app-engine-samples/issues/detail?id=40 i.e. the path is wrong and the app engine application launcher has created another default app.yaml and app.py file.
[Android Apps and Games] holysmoke001:
yes problem is same.Launcher is creating a new folder inside my project folder with a default main.py and app.yaml file.

my project folder is JMlatitude and i copied my client secret file in JMlatitude folder and edited the app.yaml file as JMlatitude.yaml but launcher is creating new folder (JMlatitude) inside project folder.pls help what to do
[Android Apps and Games] P500Alive:
Thanks Brian for the dedicated post.

This is how to get started with my service (www.backituders.com).

0) The service is free :)

1) Drop me an email to beta@ backituders <Dot> com. You'll get a username pwd password back.

2) Start using backituders!

You can find more infos, expandoing docs and guides at www.backituders.com.

Backituders is meant as an API you can use to implement your own applications on. I provide the server and APIs to set and get positions, set alamers and alerts and so on. There is also a ready-to-use "draw my map" and "follow my device live" feature.

Will use this post as updates to the service are done.

- 20131031: display timestamps in RFC format, display speed

- 20131104: changed the icons on the map to reflect direction (8 main dir) when available.

- 20131104: sono disponibili istruzioni base in italiano.

Thanks any for testing.
[Android Apps and Games] nparley:
Hi,

Sorry I might not have been clear in my instructions. You have to keep the file named app.yaml as this is the file Google App Engine looks for and will create a new one if not found. It is inside this file where you have to make the edit, the top line contains `application: YOURAPPNAME` here you have to change YOURAPPNAME to JMlatitude.

Neil
[Android Apps and Games] holysmoke001:
Thanks Neil its working now:o
[Android Apps and Games] holysmoke001:
Hi Neil pls help me in setting up backitude custom server settings

1.there are two custom field 1 one in request parameter values and another is in request parameter keys .which key i have to fill in both custom fields

API key or application key setup at yourapp.appspot.com. when i fill custom field 1 in request parameter values it shows no custom field parameter key configured, value will not post (configure below) when i run test it shows error gaugler.backitude.service.backitudeException:Custom Server POST failure: HTTP/1.1400 Bad Request

2. what to fill in Device ID
[Android Apps and Games] nparley:
Get the key from going here: yourapp.appspot.com/viewkey. You want to end up with something like this:

https://bytebucket.org/nparley/mylatitude/wiki/settings.png I.e. at the top in the custom field type your long key. Under requestion parameter keys change custom field 1 (it'll have no value to start with) to the word "key". I don't seem to have a device ID on my backitude version are you sure you have the latest version from the play store? (or try leaving it bank) Also make sure you change the response codes to 200,202

Neil
[Android Apps and Games] dukerider33:
Trying to set up the app in google apps

I have also tried to set up the app with google engine. I got stuck where I need to download a copy of my app code. I have no idea how to do this. In the description you wrote to download the latest .zip or clone the git repo into a directory. How will I be able to do that?

Thanks for helping me.

regards

Manfred
[Android Apps and Games] dukerider33:
Hi Neil!

Great app, finally got it to work. Will report more feedback later!

Good work!!
[Android Apps and Games] dukerider33:
Error message with key

Hi Neil!

Now the app worked for a couple of hours and now I get this message:

Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v3 on this site. If you are the owner of this application, you can learn about obtaining a valid key here: https://developers.google.com/maps/documentation/javascript/tutorial#api_key

Do you have any idea what I could do?

Thanks!
[Android Apps and Games] nparley:
This probably means you have your Google maps api key wrong or you did not fill in your Google maps api in when you setup the app. The instructions show you where to get the browser api key from, it's this page https://code.google.com/apis to get your Google maps browser api key. You can go here https://appengine.google.com log in to your app, click on data store viewer, in the by kind drop down pick maps the keyid should equal the key you get from the Google api console. You can edit it if it's not correct. If you have no maps kind in the data store you need to delete all the users and run the setup again.

Hopes this gives you some help trubble shooting,

Neil
[Android Apps and Games] dukerider33:
Hi Neil,

had to setup the site completely new from the scratch. Now it works nicely.

Thank you!
[Android Apps and Games] quattro_driver:
Wrong hour determined by PHP script

Hi All

I'm new to PHP development so have implemented the code developed by ascan1971@gmail.com that is referenced at the head of this thread, to use as a seed for my development and education.

I have learned a lot from it, but there is one thing that's driving me nuts. I have e-mailed the developer about it several times, but perhaps my mails are dropping into his spam folder, as I can get no response, so I am hoping someone here can help explain the perceived odd behavior.

It goes like this:

A POSIX timestamp is sent to the server as part of the Backitude upload and is stored in an SQL database. The script that is called when one wants to display the current location information reads the relevant data from the SQL database including this timestamp, and without any other processing decodes it using this line of code: $datum_english = "Last update of the position:<br>".date("l, j. M. Y, H:i:s", $latestupdate).".";

An example of and actual '$latestupdate' value is: 1384980886, which, according to my calculation represents 21/11/2013 @ 20:54:46

What displays in the browser is 21/11/2013 @ 13:54:46 - seven hours adrift.

I'm just not seeing what is happening here.

Anyhow, just preparing myself for the "doh!, of course" response, so feel free to come back with obvious answer.

Thanks in anticipation. BTW I live in the UK, if that's relevant.
[Android Apps and Games] nparley:
Hi,

Does PHP take the time zone from the server? Is your server based in the US? You could use something like DateTime::setTimezone or date_default_timezone_set

Neil
[Android Apps and Games] quattro_driver:
Now that's not how I expected it to work at all, but it might explain the anomaly. I was thinking it would simply give me the date relative to the Unix Start point without applying any compensation, e.g. a value of 1 equating to 01 Jan 1970 00:00:01 Just seems to me to be a confusing thing to do; for this very reason.

Thank you for the suggestions, I will investigate the links you have provided.

Cheers

Paul
[Android Apps and Games] nparley:
I just checked and it seems to be how it works

php > $script_tz = date_default_timezone_get();
php > echo $script_tz;
UTC
php > date_default_timezone_set('America/Los_Angeles');
php > $script_tz = date_default_timezone_get();
php > echo $script_tz;
America/Los_Angeles
php > $latestupdate = 1384980886;
php > echo "Last update of the position:<br>".date("l, j. M. Y, H:i:s", $latestupdate).".";
Last update of the position:<br>Wednesday, 20. Nov. 2013, 12:54:46.
php > date_default_timezone_set('UTC');
php > echo "Last update of the position:<br>".date("l, j. M. Y, H:i:s", $latestupdate).".";
Last update of the position:<br>Wednesday, 20. Nov. 2013, 20:54:46.

Cheers,

Neil
[Android Apps and Games] quattro_driver:
Hi Neil

That's really helpful of you to even test your suggestion; seems a really easy implementation too.

Thanks for your help.

Cheers

Paul
[Android Apps and Games] vinchan13:
Hi Neil

I have followed your instructions to deploy the application successfully on google and now reached the point of setting up the maps API at "https://xxxxxxxx.appspot.com/setup". However, when going into my appspot page, it returned the following exception:

HTTPException: Deadline exceeded while waiting for HTTP response from URL: "https://accounts.google.com/o/oauth2/token"

Everything was going smoothly until I hit this exception. Did I miss anything ?
[Android Apps and Games] nparley:
Is this working now? It might have been a server problem that happened to strike when you were setting it up

Neil
[Android Apps and Games] .wojtek:
[MENTION=714252]nparley[/MENTION]

I've followed your guide but I'm stuck at the appspot.com/setup part - after selecting account for authorization I get:

I've tried googling about it but without success :(
[Android Apps and Games] mcampbellsmith:
Are those settings still valid? If you have an update, it would be great if you could post it. This throws a java exception for me in Traccar
[Android Apps and Games] backitude:
I think the first post on this thread contains email addresses, might be easier to get ahold of him that way although I don't know which is his. Maybe you can tell by domain name
[Android Apps and Games] wire103:
Yes and no :)

Yes, because the backitude.php workaround script was made due to Backitude only supportiing POST reporting to custom servers. As the protocol most compatible with Traccar expected a GET request, I made the simple script as a simple gateway for the request to pass through.

No, because now Backitude does support both GET and POST. So I think you could just adjust the parameters in the program and report directly to Traccar. I haven't looked at it, as my old hack still works for me.

But if you look at the backitude.php code, it should be fairly obvious what to do.
[Android Apps and Games] mcampbellsmith:
Hey, thanks for your quick response. I still have the error. I'm sure it must be my config error, but can't seem to find it.

I see the request coming into traccar, but in the log it reports:

WARN: String index out of range: 0 - java.lang.StringIndexOutOfBoundsException (String.java:694)

I also see in apache error log the following:

file_get_contents(http://127.0.0.1:5005?lat=-34.90266418457031&lon=141.0177764892578&timestamp=1394274465&hdop=3.9&altitude=25.5&id=<my imei> (note i changed the lat/long/imei)

I also tried doing a curl --data command, but see the same error. Can you confirm the above url is correctly formatted?
[Android Apps and Games] mcampbellsmith:
phpTrackme

I have modified a server that was modified by [MENTION=5316406]uszu[/MENTION] from an original server created by [MENTION=289509]_LEM_[/MENTION]. The original was created for a Windows/Android app called TrackMe. Both are fantastic implementations.

A demo implementation of the server can be found http://flaa.fabiszewski.net/phptrackme/ Thanks [MENTION=5316406]uszu[/MENTION]

The server is working well for me with Backitude and can currently be downloaded from github at https://github.com/markcs/phpTrackme. This may change if my changes get pushed into uszu's main repository.

The custom server settings within Backitude are:

Server URL: http://<your server>/requests.php

Request Type: POST

Successful Response Codes: 200,201

Authentication options: Credentials in POST parameters

User Name: What ever you choose

Password: What ever you choose

Custom Field 1: upload

Custom Field 2: backitude

User Name: u

Password: p

Latitude: lat

Longitude: long

Accuracy: accuracy

Speed: speed

Altitude: alt

Direction Bearing: angle

Location Timestamp: <this can be deleted>

Request Timestamp: do

Timezone Offset: <this can be deleted>

Custom Field 1: a

Custom Field 2: db

mysql needs to be configured on the server by running the trackme.sql sql script file into mysql.

config.php needs to be configured with correct mysql username, password, ip address. Use trackme as the database name. Initially set allow_registration = 1 so Backitude can register and your user/pass is automatically created.

Let me know if there are issues and/or it works for you.
[Android Apps and Games] gcbxda:
hi everyone. this thread is a year old... is that because this is the ultimate best solution for location reporting? or because everyone moved to something better?

btw, let me just share what i'm using currently:

app: GPSlogger for android

by: Mendhak

pool gps and celullar data over time, upload (3h in my case) to consumer file sharing services such as dropbox, gmail, etc.

then on the desktop i download the files (zipped xml) and view on http://sourceforge.net/projects/viking/
[Android Apps and Games] endyablo:
Custome Server Settings

Hi Ware, well i have some problems with settings backitude, u can help me please?
[Android Apps and Games] theNilesh:
Using Google Spreadsheet

Just check it out.

github/TheNilesh/backitude2GoogleSheet
[Android Apps and Games] Chameleon846:
I know that this is reviving a very old post, but does anyone have a current method of integrating Backitude into a Traccar server? Unfortunately the above php file no longer works as create_function was DEPRECATED as of PHP 7.2.0, and REMOVED as of PHP 8.0.0.

I've been using Backitude on an Android phone to send data to a "TrackMe" server for a number of years. I'm keen to change to a Traccar server due to the additional geofence features, but unfortunately the Traccar client on Android is very power hungry (it doesn't correctly 'sleep' the GPS between position updates).

Unfortunately my php skills aren't up to rewriting the backitude.php code above.
[Android Apps and Games] Chameleon846:
Disregard this. By using the Request Type: GET (parameters in URL) within the most recent version of Backitude the additional php file is no longer required. The only other change that I found to get Backitude to work correctly with a Traccar server is that the keyword for the Accuracy setting has now changed from 'hdop' to 'accuracy'.
[MDA III, XDA III, PDA2k, 9090 General] ralpheboyo:
Just bought a 1 GB sd Card. However I always get a write failure when copying music (mp3 260 mb) files from my card reader to my sd card?????? (xp home edition) Active sync takes to long and I never had this problem with a 256 sd card. Any suggestions appreciated. Formatted the card..........no use......Please help Thx!!!!
[T-Mobile Samsung Galaxy S II SGH-T989] bowens44:
I have been using hellybean for a couple of months now. I have found that I have problems doing restore to a previous version.

Some background. I have had SD card issues in every version after 20131013. MY SD card frequently becomes inaccessible . I have not been able to find a solution for this so I end up reverting back to 20131013 release. Each time a new release comes out I try it. The SD card issue is still there for me in the 20131029 version which for me makes it unusable......

Anyway, I always do a back up before trying a new version. What I have found is that that I can't restore with my backup. The phone boots but when the hellybean animation appears it is blue instead of red. It spins and spins and eventually the phone just shuts off.

At this point I have to boot into recovery and do a wipe and install to get back to a working phone.

If I do a backup and restore on the currently installed version everything works as expected. The restore issue also occurs if I try to restore after installing a different 4.3 rom.

Can any one tell me what is causing this?

My Recovery is TWRP 2.6.1.0
[T-Mobile Samsung Galaxy S II SGH-T989] bikeryder007:
Are you saving your nandroid in internal storage or external SD card? If it is external, it may not be working properly because it keeps unmounting and scanning. Just a guess. Also, that sd card issue is not just with Hellybean, I have had it on 3 different 4.3 ROMS recently.
[T-Mobile Samsung Galaxy S II SGH-T989] bowens44:
Thanks for the reply. Good point, it is on external. I didn't think about that. I will test this tonight.
[T-Mobile Samsung Galaxy S II SGH-T989] bowens44:
Ok I wiped my phone completely including the internal sd, everything but the external sd. I installed the 20131013 version of hellybean. did the setup, made sure everything worked. then I did a backup to the internal sd. download and dirty flashed the latest hellybean. did the setup etc.

then I attempted to restore the earlier version. The restore said that it was successful but on rebooting, once again the hellybean animation was blue instead of red and and after a couple of minutes the phone just shut off and I had to do fresh install to get back to a working phone.

I really can't understand why I can't do a restore.
[T-Mobile Samsung Galaxy S II SGH-T989] Still_living714:
Explain your flashing process
[T-Mobile Samsung Galaxy S II SGH-T989] bowens44:
1. boot to recovery (TWRP 2.6.1.0)

2. I do a backup,

3. do a wipe , not advanced wipe.

4. flash the ROM

5. Flash gapps if necessary

6. reboot system

7. wait 10 minutes or so

8. reboot again

9. go though setup.

The problem occurs if I decide that I preferred my previous set up and attempt to do a restore. I have been using hellybean (love it!). I am using the version from 20131013 . if i try to restore this from my back up after flashing another ROM or a later version of hellybean the restore says that it was successful but after rebooting either the screen is unreadable. random colors etc or the phone just shuts off. The animation for hellybean on reboot after an attempted restore is blue instead of red....

I have found that if I reflash hellybean after trying another ROM and then do a restore is works.
[Nexus 7 (2013) Q&A] Fraxon:
At this moment I have a custom Rom and kernel on my nexus 7. Kitkat will be out soon, what is the best way to get ota for Kitkat? Flash back to original software? Where can I download that?
[Nexus 7 (2013) Q&A] ChiDi9901:
Do you have a nandroid backup? This is very important!

Gesendet von meinem Nexus 7 mit Tapatalk
[Nexus 7 (2013) Q&A] Fraxon:
Yes, I have a 9-29 backup in my TWRP folder
[Nexus 7 (2013) Q&A] Fraxon:
So.. What to do?
[Nexus 7 (2013) Q&A] RMarkwald:
Simple, wait until it's actually announced and ready to download for your device. When 4.4 is announced, it may or may not be ready that very same day, so sit tight. You'll see enough news about it to know when it's ready.
[Nexus 7 (2013) Q&A] Fraxon:
I'll get an ota message even if I'm on a custom rom? And I can install that without any problems?
[Nexus 7 (2013) Q&A] NekroWolfen:
No, when it's release and ready to download just go back to the stock rom, then there you'll get the OTA.

I personally will wait to download the img, restore the Nexus to 4.4 and just to try Kit Kat, then I'll just flash back to AICP, I'll wait then for 4.4 to get incorporated into custom ROMs. :)
[Nexus 7 (2013) Q&A] Rouz.:
I'm on stock ROM and stock recovery, but rooted + custom Kernel, does anyone know if I can receive the OTA?
[Nexus 7 (2013) Q&A] bogii4:
probably not has to be stock recovery and non-rooted
[Nexus 7 (2013) Q&A] RMarkwald:
No. You need stock recovery AND stock kernel.
[Nexus 7 (2013) Q&A] Rouz.:
Where should I get the stock kernel? I did not make a nandroid backup as I did not flash the recovery, I only used fastboot boot recovery.img

If I flash the stock google images, does it wipe the virtual sd content? or only my data? Thanks a lot for helping me out!
[Nexus 7 (2013) Q&A] RMarkwald:
You can get it from the stock images, just extract the boot.img and flash that via bootloader using fastboot. Same goes for stock recovery.
[Samsung Galaxy Mini] blanxlr:
Install APK and create an account

Verzonden vanaf mijn GT-S6500D met behulp van Tapatalk now Free
[Samsung Galaxy Mini] Nasheich Xfiles:
not need to port it

just upgrade your devices to ics or jb

then go to playstore and install it

Don't forget to hit THANKS button
[Samsung Galaxy Mini] :
what is BBM?
[Samsung Galaxy Mini] abdo jouma:
Blackberry masenger

pls press thanks:)
[Samsung Galaxy Mini] felixhusen:
Just root your Galaxy mini 2 and upgrade to jelly bean by cyanogenmod 10.1 and install bbm
[Android Software/Hacking General [Developers Only]] yashade2001:
Hi all. With this app you can use ADB Sideload with GUI.

SS :

Download link :

http://www.mediafire.com/download/cedv14vz2p5zbda/Sideloader+GUI.exe

Put exe to mini adb directory. Then you can use.
[Galaxy S 4 Q&A, Help & Troubleshooting] Explorer2012:
Please help with this issue screen shot attached
[Galaxy S 4 Q&A, Help & Troubleshooting] RickyyD:
That's your Google Apps process that's crashing/force closing. It's really annoying when that keeps happening.

You can try these options;

1) Delete your Google account, then add the account back.

2) Go to application manager, search for play store and clear data.

Let me know if it worked or not.