Related
im trying to get a very very small program runnint, however im very lost when it comes to programming windows mobile device, i have a database online, and i want a small dialog box to show up on my wm device and alow me to type something in , then it search the online database.. and return the information, or even just take me to where the online listing is, that's all no bells or whistles.. could someone help me with this please?
i have even added a search feature to my database, soo i just basically want this little program to relay text to that search feature, then take me to it.. so i don't have to go to all these links and whatnot
Well,
it is quite hard to advice you anything without actually knowing about the file structure / database format. Maybe the easiest way would be to simply set up a search option online as a WAP2.0 page - if you don't want others to access this section, simply password protect it.
If you really have a need to generate the 'search string' offline (which I just can't understand since you want to be taken to your DB online) then simply use something which generates the search string for you.
For example you could have a "results.php" online which simply needs the search terms 'attached' in order to list you all relevant records. Now, the question remains how the database is structured. If you have 2 fields in your database, containing firstname and lastname, then it would be simple. You would need only something that adds your search terms to the string and then navigates to your server. For example you search for SMITH as lastname, it would have to transfer the string as followed:
www.mysite.com/results.php?lastname=smith
For sure your results.php needs to be programmed first!
However,
this has nothing to do with your device, you better join a programmer forum - in this case I would suggest you look for web development forums since this can be done entirely on the server side!
Hello,
I would like to get a list of database names in code. I'm not looking for databases outside my application/package, just those in my /data/data/<my_package>/database folder.
I can easily locate them on the file system and open them using adb and sqlite3,
but I need to dynamically get a list of databases so that I can open and manage them in code.
I currently use a separate database to keep track of database names as they get created/deleted through my application, but I imagine there is a way to get a list of databases directly via SQL query or some sqlite library call.
Can anyone help me with this?
Thanks,
-dj
This should be in the "Android Development" forum.
BTW, I tried to post this question in a more topical "Android Development" forum, but I'm an XDA newb and don't have permissions to post in there.
Maybe these links can help you? I don't do much droid programming anymore and I never worked with databases in droid. Also welcome to XDA
http://www.devx.com/wireless/Article/40842
http://developer.android.com/reference/android/database/sqlite/package-summary.html
solution
The solution turned out to be very simple.
The main application context has a databaseList() function that, conveniently, returns a list of database names associated with the application.
String[] dbList = getApplicationContext().databaseList();
Thanks for the links dbzfanatic. devx looks like a good resource... it's going on my bookmark bar for sure.
Glad I could help and thanks for posting the solution for others who might have the same question. Since it's a string array I'm guessing the function just returns the DB names and not handles to them?
database names
dbzfanatic said:
Glad I could help and thanks for posting the solution for others who might have the same question. Since it's a string array I'm guessing the function just returns the DB names and not handles to them?
Click to expand...
Click to collapse
Correct, just a list of the database names.
I need a few more posts before I'm permitted to post a link, but this is the approximate reference link:
developer.android.com/reference/android/content/Context.html#databaseList()
I am creating this thread to start an area for Backitude server side developers and for casual users looking to implement their own flavor of location history or Google Latitude, to come and chat, ask questions, and get information.
Backitude is an android application that allows users to track their device locations in a highly configurable and continuous manner. Location data can be stored locally as (KML, CSV) or posted to a custom server. Anyone can create their own server implementation for storing or sharing location data.
Currently, three users are sharing their implementations:
http://backitude.ascanwex.de/ ([email protected])
-and-
https://bitbucket.org/nparley/mylatitude/wiki/Home ([email protected])
-and-
http://www.backituders.com ([email protected])
Let me know if more exist you would like me to add to the list!
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:
PHP:
<?
$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.
wire103 said:
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:
PHP:
<?
$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.
Click to expand...
Click to collapse
Would this whole implementation be a lot simpler, if Backitude sent over a GET instead of a POST ?
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
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
[B[/B][/B]
nparley said:
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
Click to expand...
Click to collapse
ON WEB PAGE IT SHOWS ONLY "Hello world!"
holysmoke001 said:
[B[/B][/B]
ON WEB PAGE IT SHOWS ONLY "Hello world!"
Click to expand...
Click to collapse
Hi holysmoke001,
I am not quite sure what you are referring to,
Neil
nparley said:
Hi holysmoke001,
I am not quite sure what you are referring to,
Neil
Click to expand...
Click to collapse
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
holysmoke001 said:
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
Click to expand...
Click to collapse
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 ----------
holysmoke001 said:
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
Click to expand...
Click to collapse
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.
nparley said:
I assume you have done all the steps here? //bitbucket.org/nparley/mylatitude/wiki/Setup%20App Does your site say running if you go to here://appengine.google.com
---------- Post added at 09:34 PM ---------- Previous post was at 09:26 PM ----------
OK the problem could be this //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.
Click to expand...
Click to collapse
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
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 [email protected] 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.
holysmoke001 said:
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
Click to expand...
Click to collapse
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
nparley said:
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
Click to expand...
Click to collapse
Thanks Neil its working now
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
holysmoke001 said:
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
Click to expand...
Click to collapse
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
Trying to set up the app in google apps
nparley said:
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
Click to expand...
Click to collapse
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
nparley said:
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
Click to expand...
Click to collapse
Hi Neil!
Great app, finally got it to work. Will report more feedback later!
Good work!!
Error message with key
nparley said:
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
Click to expand...
Click to collapse
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!
dukerider33 said:
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!
Click to expand...
Click to collapse
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
nparley said:
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
Click to expand...
Click to collapse
Hi Neil,
had to setup the site completely new from the scratch. Now it works nicely.
Thank you!
Androrat is a client/server application developed in Java Android for the client side and in Java/Swing for the Server.
Code:
The name Androrat is a mix of Android and RAT (Remote Access To
ol).
It has been developed in a team of 4 for a university project. It has been realised in one month. The goal of the application is to give the control of the android system remotely and retrieve informations from it.
Features
Get contacts (and all theirs informations)
Get call logs
Get all messages
Location by GPS/Network
Monitoring received messages in live
Monitoring phone state in live (call received, call sent, call missed..)
Take a picture from the camera
Stream sound from microphone (or other sources..)
Streaming video (for activity based client only)
Do a toast
Send a text message
Give call
Open an URL in the default browser
Do vibrate the phone
- Credits to Robin David (https[://]www[.]soldierx.com[/]hdb[/]Robin-David)
- Download the source code here
Github - https[://]github[.]com[/]DesignativeDave[/]androrat
Sorry to you all, because this is my first post, i can't post link to outside this forum so you should remove the "[" and "]" from the link above to access it. Thank you
idrcelab said:
Androrat is a client/server application developed in Java Android for the client side and in Java/Swing for the Server.
Code:
The name Androrat is a mix of Android and RAT (Remote Access To
ol).
Credits to Robin David (https://www.soldierx.com/hdb/Robin-David)
Download the source code here
Github - https://github.com/DesignativeDave/androrat
Click to expand...
Click to collapse
interresting lets see..
but why is it in android wear and not android apps and games ?
webwalk® said:
interresting lets see..
but why is it in android wear and not android apps and games ?
Click to expand...
Click to collapse
Because, that is my first post - and i can't post it right in the development place . I hope you like it. Thank you
Works on android 4.4<= ?
Interesting!!
Great its working on Android 4.4.
For more visit us at:
ati-erp.com
Looks like a great concept. How do the rest of us android enthusiasts install this?
Suggestions:
Add
-ability to wipe phone and SD card.
Interesting and useful app, but without an APK, I'm afraid you'll have problems making this success.
https://github.com/DesignativeDave/androrat
Compiled APK
Sorry to not satisfy question / ask about compiled APK and FUD binder, my purpose to post this thread only for advanced user that know how something really done, if you need the APK - please learn some language (especially JAVA) in order to compile it and know how it works, and then you will know the easy way to FUD it .
Compiled file?
How to use this software? Is there any compiled version? I don't have a computer. :/ please anyone can upload the compiled file? And also 'how to use manual'
Thank you, I would be really thankfull to you
No further Process after building apk in binder...
idrcelab said:
Androrat is a client/server application developed in Java Android for the client side and in Java/Swing for the Server.
Code:
The name Androrat is a mix of Android and RAT (Remote Access To
ol).
It has been developed in a team of 4 for a university project. It has been realised in one month. The goal of the application is to give the control of the android system remotely and retrieve informations from it.
Features
Get contacts (and all theirs informations)
Get call logs
Get all messages
Location by GPS/Network
Monitoring received messages in live
Monitoring phone state in live (call received, call sent, call missed..)
Take a picture from the camera
Stream sound from microphone (or other sources..)
Streaming video (for activity based client only)
Do a toast
Send a text message
Give call
Open an URL in the default browser
Do vibrate the phone
Credits to Robin David (https[://]www[.]soldierx.com[/]hdb[/]Robin-David)
Download the source code here
Github - https[://]github[.]com[/]DesignativeDave[/]androrat
Sorry to you all, because this is my first post, i can't post link to outside this forum so you should remove the "[" and "]" from the link above to access it. Thank you
Click to expand...
Click to collapse
No further Process after building apk in binder...what is solution?
thehunt94 said:
Works on android 4.4<= ?
Click to expand...
Click to collapse
yes , its working on 4.4
Can anyone provide me with an installable version of this utility?
Need help in configration
idrcelab said:
Androrat is a client/server application developed in Java Android for the client side and in Java/Swing for the Server.
Code:
The name Androrat is a mix of Android and RAT (Remote Access To
ol).
It has been developed in a team of 4 for a university project. It has been realised in one month. The goal of the application is to give the control of the android system remotely and retrieve informations from it.
Features
Get contacts (and all theirs informations)
Get call logs
Get all messages
Location by GPS/Network
Monitoring received messages in live
Monitoring phone state in live (call received, call sent, call missed..)
Take a picture from the camera
Stream sound from microphone (or other sources..)
Streaming video (for activity based client only)
Do a toast
Send a text message
Give call
Open an URL in the default browser
Do vibrate the phone
Credits to Robin David (https[://]www[.]soldierx.com[/]hdb[/]Robin-David)
Download the source code here
Github - https[://]github[.]com[/]DesignativeDave[/]androrat
Sorry to you all, because this is my first post, i can't post link to outside this forum so you should remove the "[" and "]" from the link above to access it. Thank you
Click to expand...
Click to collapse
I'm using dial-up connection so can i setup androrat and able to use it ? If yes then plzz tell me
Work on Lollipop?
Work on lollipop?
Black Screen
the apk does not open of some phones it shows a black screen and says app not responding wait or close .... any solution for this ..i created the apk using the androrat binder app
I am not able to compile it . As soon as I build it my antivirus detects it and deletes it.Any solution for this?
Hi,
AndroRat working perfect , I tested with my own phone , I can download images and everything but I tested with another phone in China , it can connect and also access photos everything but after download images and when I try to open, it gives me " images cannot view ..." Like error , why is that?
download link
Where is it ?
Is the client side invisible/unnoticable for the user?
By retrieving messages do you mean just SMS or it can get whatsapp, viber and so on?
Apk Binder
Dear friends
Please help me for the apk Binder app (in both Droidjack and Androrat) they does not work!
I think there should be another way to bind or mix 2 apk files.(with Winrar or ...)
Thanks in advance!
Hey guys,
firstly I've read the rules and I believe here is the right place to ask that, but if not, please correct me as I'm a new user of the forum.
Well, I'm doing a research related with privacy in Android. I need build an application that can monitoring when another application
send sms in background for example. So I'm trying analyse the possibilities to do that using a application with root privileges or if in
last case, take a ROM and modify it.
My question is: what a rooted application can if fact do? For example, can I have access to the process in executions and know
what they are doing?
And another thing is, I'm starting search about the using of critical data for applications, like location data. As I'm starting, someone can
please guide do in how to know when a application require this kind of critical data? In the level of what should I search for or some link
related with that?
Thank you for now
Pablo