Bluetooth instead of USB for App Data source - Java for Android App Development

Needing some advice.....
I have an app that I'm wanting to use (Reads car protocols to control tablet). Presently, this app relies on the data being transfered via USB into the tablet. I'm wanting to either add or replace this connection method to allow for Bluetooth. I assume I'm only needing to change this connection method within the app's resources, manifest and XML files - needs to point to the Bluetooth socket, instead of the USB socket.
I'm not a developer, but feel I can edit this if I know what to edit. Can anyone provide any insight on the best way to accomplish this? Currently, I connect to the OBDII Bluetooth device and run Torque. So, the connection will already be present with the device, just need the separate app (Steering Controls) to read the data coming into the tablet via Bluetooth for specific information that triggers the app to do what it's designed to do.
Any help on this is greatly appreciated! If easier, I'm happy to provide the apk, or specific files within the app for someone to modify (maybe easier than trying to explain it to me).
Thanks in advance!!!!!
Sent from my SGH-I747 using xda app-developers app

Related

Testers wanted for PeerDeviceNet -sharing thru wifi, wifi direct and mobile hotspot

!!! updated 12/28/2012: add code to detect and use mobile hotspot to enable sharing among devices !!!
I'd like to invite people to participate an open testing session for app "PeerDeviceNet - sharing thru WiFi and WiFi-Direct".
It runs on android 2.2 and above. It is free at google play:
https://play.google.com/store/apps/details?id=com.xconns.free.peerdevicenet
I have done tests using Nexus 7, Samsung Tab 2.0, Kindle fire(1gen), Galaxy Vibrant. I'd like more complete coverage of devices and vendors.
It supports 4 kinds of device-device connections:
1. for devices at the same wifi net: start PeerDeviceNet at devices simultaneously will allow them find and connect to each other automatically.
2. for devices which are all wifi direct enabled: from system preferences, you can setup wifi direct group connection; PeerDeviceNet will pick up this group info and connect devices in group automatically.
3. if only one device is wifi direct enabled: you can use PeerDeviceNet to create a softwareAP/hotspot at this device (PeerDeviceNet->Connection settings->Create wifi direct hotspot), other wifi devices can use generated ssid and passphrase to connect.
4. for devices with mobile hotspot, you can use mobile hotspot to connect devices and enable sharing.
It extends android's "share/send" feature to allow sharing of the following data:
1. photos/videos (single or multiple) (gallery), audios(astro, solid-browser, or other browsers)
2. web pages (browsers)
3. contact info(Contacts)
4. pdf, word docs (astro or other file managers)
5. apps (google play)
I'll highly appreciate it if you can spend some time installing the app and try out some of the above scenarios. If you encounter Force Closure, please post your device info, android version, or ROM info.
Thanks!
This works fantastically between all of my devices, ranging from Ginger Bread, Honey Comb, and Jelly Bean.
WiFi hotspot also works very well.
This really is a handy app, something like this should definitely be implemented into base Android. Sharing files between devices that have NFC is a breeze, but legacy devices can be troublesome. This is an excellent solution for both worlds.
downloading
looks good
Installed and gave it a test drive.
Works perfectly on our Galaxy S III, Galaxy S II, Galaxy Tab 10.1, Xperia X8, Packard Bell Liberty Tab G100 and Wildfire S - after adding the devices manually. For some unknown reason they don't see each other, though the local LAN has no restrictions put into place.
Hi, I´ve been testing this between SGN2 N7100 (Stock Rooted) and MyTouch 4g Slide (CM9.1 R8) and it works great (no FC etc.)
I have several questions though:
a) I´d like to buy you a beer. There is a paid version but that one is far behind the free one in updates...
b) chat works great (as long as I have signal. but within a flat its mostly great). Will there be an implementation into the full version?
c) if I buy the full version, will you be updating it?
Thanks! Keep it up!
EDIT: seems to me that your app fights with anyconnect VPN (even if that one is running in background I get FC from anyconnect and superuser permissions asked all time... I´ll look into the behavior a bit closer if I find some time) else everything works good.
EDIT: after reinstall of anyconnect it works flawlessly. Keep it up!
File Expert by Geek Software Technology
I have been using File Expert to do similar things... perhaps I don't understand this program's full benefits or potential. FE also connects via bluetooth and runs both a web and FTP server.
It would be nice if you implement an option to close the app...
Option to close the app.
paul1508 said:
It would be nice if you implement an option to close the app...
Click to expand...
Click to collapse
Agree with that. It's quite painful to close an app by going into settings instead of hitting some button from the home interface.
Testing now
Downloaded and tried it..
I have a GS3 that it seems to work on, and a Nook color (the original one) from like 2 years ago running CM7 that it just gives a black screen on. I can use the regular wifi connect from the Nook and connect to the hotspot from your PeerDeviceNet but there's no sharing of data back and forth, unfortunately. If the app worked on both I'm sure it'd be much better, but I don't suspect the older Nooks will be a big percentage of your users.
issues related to peer discovery
B.Jay said:
Installed and gave it a test drive.
Works perfectly on our Galaxy S III, Galaxy S II, Galaxy Tab 10.1, Xperia X8, Packard Bell Liberty Tab G100 and Wildfire S - after adding the devices manually. For some unknown reason they don't see each other, though the local LAN has no restrictions put into place.
Click to expand...
Click to collapse
Thanks for your feedback. The failure to see peer devices in LAN could be related to one issue i fixed in the latest release; please give it a try.
Also PeerDeviceNet's "search and connect" is based on peer-peer "pairing": no one is acting as server and waiting for other clients. All participating peer devices must start search at same time or in same short time period so that they can find each other. If one peer finished its searching when a new peer starts searching, the new one cannot see the one just finished. It is for security reason.
Regards
Yigong
XCONNS LLC
a) I´d like to buy you a beer. There is a paid version but that one is far behind the free one in updates...
b) chat works great (as long as I have signal. but within a flat its mostly great). Will there be an implementation into the full version?
c) if I buy the full version, will you be updating it?
I am working on refactoring code and bug fixing for the full edition. Thanks for your feedback.
Regards
Yigong
XCONNS LLC
compare to file expert
eonix said:
I have been using File Expert to do similar things... perhaps I don't understand this program's full benefits or potential. FE also connects via bluetooth and runs both a web and FTP server.
Click to expand...
Click to collapse
File expert is a powerful browser with many nice features. PeerDeviceNet is a totally different creature.
As a app, it plainly extends android native "sharing" protocol (send/send_multiple) to connected devices, to allow you share content from one device to another. (As a framework, it provides the components and runtime to support connected mobile apps). It has minimal GUI to support connecting devices and monitoring send/recv sessions. It has strong support for connecting multiple devices, run multiple concurrent send/recv sessions, and running in background.
So normally you will use your favorite apps to browse/view content, and when you want to share the content with another device, you hit "share" button and PeerDeviceNet will be there to help connect to other devices.
So you can use Astro file manager or Solid explorer with PeerDeviceNet to share files across devices similar to file expert.
Also PeerDeviceNet allows you share contact info, web links, or apps from google play to connected devices.
Regards
Yigong
how to close it
xbroadcaster1991 said:
Agree with that. It's quite painful to close an app by going into settings instead of hitting some button from the home interface.
Click to expand...
Click to collapse
There is "shutdown" button for that : "Connection settings" -> "Shutdown". It will shut down all background services and clean up notifications.
Regards
Yigong
peerdevicenet said:
There is "shutdown" button for that : "Connection settings" -> "Shutdown". It will shut down all background services and clean up notifications.
Regards
Yigong
Click to expand...
Click to collapse
Mmm, too many button presses to get there. It would be easier to have a "Shutdown" button in the notification shade. Otherwise well done! I tested sharing files between LG Optimus 3D (p920) and Xperia Mini (st15i) connected on the same LAN. Everything worked fine.
Can one add a function to "tether" a hotspot? but from wifi and not from 3g?
This would be really awsome.
Greets
Sent from my Xperia X10 using xda app-developers app
Yo so I got the full version. The lite is good but wanted to buy you a beer... Managed to transfer 4gb of data in few minutes between my and friends Samsung phone (unfortunately in 3 steps because of the data amount limit). Very useful, the chat also works good.
When will we see full version updated with chat and unlimited data transfer?
Thanks
Sent from my GT-N7100 using xda premium
tether to wifi router
keenofhiphop said:
Can one add a function to "tether" a hotspot? but from wifi and not from 3g?
This would be really awsome.
Greets
Not sure this will really help. because when connecting to PeeerDeviceNet hotspot, we already use wifi connection, so why not just connect to external wifi router directly?
Regards
yigong
Click to expand...
Click to collapse
unlimited capacity
Narhim said:
Yo so I got the full version. The lite is good but wanted to buy you a beer... Managed to transfer 4gb of data in few minutes between my and friends Samsung phone (unfortunately in 3 steps because of the data amount limit). Very useful, the chat also works good.
When will we see full version updated with chat and unlimited data transfer?
Thanks
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Thanks for using PeerDeviceNet and offering beer. I am still working on the full edition. For now i removed the limit of transfer capacity. Please chek out the new release at google play. https://play.google.com/store/apps/details?id=com.xconns.free.peerdevicenet
Regards
Yigong
SonyVaio+Htc Salsa=possible?
While my sony laptop has wifi direct facility my htc salsa lacks one and just has traditional wifi and wifi hotspot facility...how do i connect bothe these devices for transferring the data to and fro?

Dropbox style sharing for my PC?

Hi, I access my main computer from my netbook and galaxy note 10.1 quite a bit. I use an ftp server, samba/windows sharing, splashtop, vnc, and lately even teamviewer quite a bit to do a variety of tasks. I mostly do this from inside the network, but I open up a port when I need to... course that can be annoying and questionably secure.
Teamviewer seems to handle the remote control aspect quite well from outside my network and I don't have to open up ports.
I'm starting to think there must be a better way to share my files from my main pc other then samba or ftp. I'd like to just have the whole drive on my main pc as a mapped drive on my tablet and have it sync two ways just like dropbox does. And I'd like to do that securely, and as easily as possible. There must be a (free) application that does this? Anyone know of any?
Have you tried dropsync?
Or do you just don't want to use dropbox..?
I actually want the shared drive to be the one on my computer (that's always on)
Sugarsync is my favorite out of all the services
Sent from my GT-N8013 using Tapatalk 2
One option that may work for you is using a router with VPN server. That is the direction I went so I could still use regular sharing and still be secure.
There's also an app and service called Tonido.
You can select drives and access them remotely.
Www.box.com
Like dropbox. But you will get 50gb free
Sent from my HTC Sensation using xda app-developers app

Looking for a specific remote control app.

I've tried a few of the remote/ Makes your tablet a second screen apps, but I don't think I had found one that gave me audio out of the tablet. Is there such a thing?
bump
You might have to explain that one a bit better. Are you trying to remotely access the volume control on your tablet from your phone (or similar)?
If so, Droidmote works fine for that, although the server app (needed for the device u wanna control remotely) is now paying app (used to be free ).
If that's not what u were after, maybe a more detailed explanation of what ur trying to do could help...
I want to remote into my computer and use it on my tablet vut i need audio too.
Sent from my Nexus 7 using Tapatalk HD

Tasker with USB serial interface

Hi Folks,
Thanks for taking the time to read. I'm super new to the app development front. While I don't consider tasker as app development, it is providing me with all my needs so far accept for one thing. I'm looking to integrate serial communications. Slick USB 2 Serial proved that that it can be done, but I somehow need Tasker to be able to read the serial bus and interpret input using the built in expressions. Doing so will enable full integration to automotive applications such as steering wheel button volume control of the android device. Looking for any guidance at this point. This could work via a plugin or third party app.
Sent from my Nexus 7 using xda app-developers app

[Q] Saving remotes programmed into the QuickRemote

First an explanation then the question.
I have programmed my LG G2 to control a "Dual XDMA550BT" car stereo. I now can relax in the rear of my van and remotely control the vehicles stereo with phone. Nice feature right? Well here is my problem, the stereos original remote is missing. So I came up with the following idea I hope someone has the answer to. Obviously the QuickRemote does not do car stereos from it list of remotes as it does not list ANY car remotes. Instead I used the QuickRemote's "Universal" remote function the allows the QuickRemote "learn" another remotes codes and assign them to a users custom layout. So here is my problem. I want to be able the extract and restore the codes for the "Dual XDMA550BT" remote as I do not have that remote any more and may need to restore that data at some later point. So where does the QuickRemote save the data for the 'Universal" remote function? Also some pre-programmed remotes have more than one layout you can switch to, allowing more buttons the one layout can display on screen? Why can't I have multiple layouts on self designed remotes, as well as be able to import graphics for custom buttons? Finally, why not have a place to send the codes and layouts for the custom remotes, that way we can share custom remote layouts? Mostly though I need to save my QuickRemote's data for later recovery.
That last question is most important, but the others would be nice to know.
Oh... one more thought. If all the QuickRemotes used by other LG phones store data the same way, why not be allowed to send data to those other phones since the G2 has more remotes than some of the others...
Use Titanium Backup to backup your application, if you have rooted phone.
n3pla2000 said:
First an explanation then the question.
I have programmed my LG G2 to control a "Dual XDMA550BT" car stereo. I now can relax in the rear of my van and remotely control the vehicles stereo with phone. Nice feature right? Well here is my problem, the stereos original remote is missing. So I came up with the following idea I hope someone has the answer to. Obviously the QuickRemote does not do car stereos from it list of remotes as it does not list ANY car remotes. Instead I used the QuickRemote's "Universal" remote function the allows the QuickRemote "learn" another remotes codes and assign them to a users custom layout. So here is my problem. I want to be able the extract and restore the codes for the "Dual XDMA550BT" remote as I do not have that remote any more and may need to restore that data at some later point. So where does the QuickRemote save the data for the 'Universal" remote function? Also some pre-programmed remotes have more than one layout you can switch to, allowing more buttons the one layout can display on screen? Why can't I have multiple layouts on self designed remotes, as well as be able to import graphics for custom buttons? Finally, why not have a place to send the codes and layouts for the custom remotes, that way we can share custom remote layouts? Mostly though I need to save my QuickRemote's data for later recovery.
That last question is most important, but the others would be nice to know.
Oh... one more thought. If all the QuickRemotes used by other LG phones store data the same way, why not be allowed to send data to those other phones since the G2 has more remotes than some of the others...
Click to expand...
Click to collapse
Hi, Yes try using titaniun backup that will most likely work, Requires root though, also this should have been posted in Q&A not General. Thanks.
Data for every app are in /data/data/<app_package>, there will be folder files or databases(I hope) and inside there should be some files. Databases you can browse with sqlite browser. Of course you need root. I wonder to know if there are really these files, but I don't have root access, and while ma warranty is valid, I'm not gonna rooting my device
Sent from my LG-D802 using Tapatalk

Categories

Resources