[Q] Edit App to connect Bluetooth instead of USB - Android Q&A, Help & Troubleshooting

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!!!!!

arshull said:
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!!!!!
Click to expand...
Click to collapse
Also, I believe most of the code is there already; at least very similar. So it may just be as simple as entering the bluetooth socket and port information.
Sent from my SGH-I747 using xda app-developers app

Related

[Q] App for intercepting data connections

Hi,
I thought maybe you guys, if anyone, would know. I am looking for an app that can:
- make a log of all the other apps, including stock ones, that make attempts or actual connections to the internet, and at what time
- be able to intercept those connections
- preferably I would create a white list of apps that are allowed to connect, but others do not have permission.
Purposes include:
- saving on bandwidth in poorer countries where internet is expensive.
- making sure apps or malware doesn't try to send off my data when it shouldn't be.
- prevent annoying background sync/apps from running when I don't want them
I find it strange that we either give all the permissions the app wants, or it doesn't work. Why can't we restrict their internet access?
Does this sound feasible? Does it already exist?
I'm rooted and using an Asus Transformer.
Thanks for any help
Try DroidWall. (root required)
It can block apps from connecting to the internet on an per-app based system.
But i don't think it has any kind of log or similar (haven't used it for a while, so might have been upgraded)
it looks like that does exactly what I needed, although I have to re-root my device for it to work again. Anyway, thanks for the tip
droidwall
droid wall definitely and yes it requires root.

[Q] Laptop/Desktop to Android Smartphone USB

My Question has been asked, maybe in the wrong forum, maybe I didn't ask the right question.
I'll try my best.
I have developed an application, it's almost finished but I have one more feature.
Detect events from laptop/desktop (keyboard) on Android Smartphone
I have been trying bluetooth, USB, NFC etc... I just can't quite nail the solution. I've been trying now for around 5 days to solve this problem. When the smartphone is plugged into a laptop/desktop I'd like to be able to detect keyboard events (or any type of event) from the laptop/desktop in my android app. Android 4.2.2
The idea is to log events, as the android app (installed on a dedicated device) will always be connected to a laptop/desktop for usage. The events, considering what the are will trigger certain actions on the device and within the application. If that makes sense. So far all is going well... it's just this one feature which I cannot nail.
The phone is rooted, USB Host mode enabled, recognises that it has been connected using USB. But I can't for the life of me find the device (in my development example, a macbook pro) nor can I detect any type of event triggered from the laptop.
Is this possible? If so can anyone please help me by pointing me in the right direction, adding links to resources I can read up on.
Many thanks in advance.
This is a problem which is slowly becoming demoralizing as I cannot finish the app without this feature.
Again, many many thanks for anyone willing to share some light on a possible solution. USB would be perfect but am I missing something?
Regards
Anyone?
To end these endless, sleepless nights
Much appreciated guys!
D
chronograff said:
My Question has been asked, maybe in the wrong forum, maybe I didn't ask the right question.
I'll try my best.
I have developed an application, it's almost finished but I have one more feature.
Detect events from laptop/desktop (keyboard) on Android Smartphone
I have been trying bluetooth, USB, NFC etc... I just can't quite nail the solution. I've been trying now for around 5 days to solve this problem. When the smartphone is plugged into a laptop/desktop I'd like to be able to detect keyboard events (or any type of event) from the laptop/desktop in my android app. Android 4.2.2
The idea is to log events, as the android app (installed on a dedicated device) will always be connected to a laptop/desktop for usage. The events, considering what the are will trigger certain actions on the device and within the application. If that makes sense. So far all is going well... it's just this one feature which I cannot nail.
The phone is rooted, USB Host mode enabled, recognises that it has been connected using USB. But I can't for the life of me find the device (in my development example, a macbook pro) nor can I detect any type of event triggered from the laptop.
Is this possible? If so can anyone please help me by pointing me in the right direction, adding links to resources I can read up on.
Many thanks in advance.
This is a problem which is slowly becoming demoralizing as I cannot finish the app without this feature.
Again, many many thanks for anyone willing to share some light on a possible solution. USB would be perfect but am I missing something?
Regards
Click to expand...
Click to collapse

[Q] [SOLVED] Reading sensors from Android to PC, and into Processing

Hi guys, I've been an avid reader of the xda forum, and it's great, so far it has been an awesome source of knowledge, however up until now I had found everything I needed...
Long story short, I want to be able to use the sensors in my smartphone (Rooted Moto G XT1032, 16 GB) in the open source software Processing. Could somebody please point me in the right direction?
Basically I want to:
Connect my phone to my PC via BT or WiFi
Read the value of the sensors within my phone and transmit them to my PC
Somehow read those values in Processing and create nice graphs and stuff
I know how to program Processing, I've looked into the Amarino Project, but it does require the Arduino Part, and I know how to interface Arduino and Processing (I've done some PID control and other stuff with those), but I want to skip the whole Arduino part (at least for now).
Could somebody please point me in the right direction?
Thanks in advance, cheers!
Update 17/09/2014: Currently looking into the SensoDuino project, which apparently will solve my problems in the Android Front.
I tested it following the video in the main page of the project in the part Pairing and Establishing a Serial Connection between Windows 7 and SensoDuino (sorry I still can't post links), I have been able to read the data using Tera Term
Just mind the COM ports, and that you are actually transmitting over bluetooth, you can check this in the services tab of the properties of the paired device within Windows (If anybody wonders why not Linux, which I use the most, in which I do my main work and in which this would be pretty much a native feature, I intend to use this with a Windows Only Software)
Special thanks to TheBeano!
P.S. Depending on what the rules of this forum regarding solved threads are, I'll either update or publish whatever the outcome of this project is, cheers!
Hectormd said:
Hi guys, I've been an avid reader of the xda forum, and it's great, so far it has been an awesome source of knowledge, however up until now I had found everything I needed...
Long story short, I want to be able to use the sensors in my smartphone (Rooted Moto G XT1032, 16 GB) in the open source software Processing. Could somebody please point me in the right direction?
Click to expand...
Click to collapse
Look at SensoDuino, they have a demo of connecting to Windows 7 via Bluetooth serial. Once you have a Bluetooth serial connection you can use Processing's serial comms to read the phone sensors. You could do the same sort of thing with Amarino, that is just read from the serial port, but it might be more work to decode the binary protocol that it uses from Processing. Sensoduino sends ASCII I think.
TheBeano said:
Look at SensoDuino, they have a demo of connecting to Windows 7 via Bluetooth serial. Once you have a Bluetooth serial connection you can use Processing's serial comms to read the phone sensors. You could do the same sort of thing with Amarino, that is just read from the serial port, but it might be more work to decode the binary protocol that it uses from Processing. Sensoduino sends ASCII I think.
Click to expand...
Click to collapse
Thanks a lot, it looks exactly like the thing that could fulfil my needs.
I'll update this post or publish whatever I come up with cheers, and thanks again!

[Q] Remote access app

Hi.
I'm new here, so apologies in advance if i ask a question that was handled in a previous thread.
I'm looking for a decent app that will allow me to control an android device from a pc. I have a tablet that is being used as a kiosk device and i would like to connect remotely and check the status of apps, run scripts, generally just troubleshoot issues that might pop up from time to time. I would like screen sharing also, that would make things a lot easier. I've tried webkey, teamviewer, airdroid but none of them give me the kind of functionality I need
At the moment I'm using a Nexus 7, but I'd like the app to work on any device. In future we might start using generic android devices, nothing brand-specific.
Any help in this regard would be greatly appreciated
meshegan said:
Hi.
I'm new here, so apologies in advance if i ask a question that was handled in a previous thread.
I'm looking for a decent app that will allow me to control an android device from a pc. I have a tablet that is being used as a kiosk device and i would like to connect remotely and check the status of apps, run scripts, generally just troubleshoot issues that might pop up from time to time. I would like screen sharing also, that would make things a lot easier. I've tried webkey, teamviewer, airdroid but none of them give me the kind of functionality I need
At the moment I'm using a Nexus 7, but I'd like the app to work on any device. In future we might start using generic android devices, nothing brand-specific.
Any help in this regard would be greatly appreciated
Click to expand...
Click to collapse
Hey,
once there was ShareKM the dev kinda dropped the projekt. I found some Guides for it because the old version stopped working.
Here is the original thread ShareKM on XDA
If you read it a bit they start to talk about the workarounds.
Hope that helps you I'm also very interested in this.
i found app that will help you to remotely control your tablet
BBQ Screen Remote Control
screen.bbqdroid.org/
it is a paid app
but you can search and download its apk in google
shubham1358 said:
BBQ Screen Remote Control
screen.bbqdroid.org/
it is a paid app
but you can search and download its apk in google
Click to expand...
Click to collapse
Thanks. But as far as I can see, this only works if the pc and android device are on the same network. My kiosk devices are hundreds of kilometers away, so I need something that works over the internet

Can I disable pop up USB notifications?

Hi all, sorry if this thread is in the wrong place, but not sure where I'd actually put it, so feel free to move it to the correct forum if needed.
Basically I've got an android head unit in my car which claims to be running android 10 (the unit is a PX5 I think), and have multipe USB connections which allow me to plug in a memory stick to transfer MP3's onto the inbuilt storage, plug in a USB DAB radio receiver, or an OBD adapter, TPMS, etc. Problem is these devices are to be left plugged in permanently, and whenever I start the car I get a pop up notification asking if a device should be the default adapter for a specific app, etc. I've attached a photo to show the type of pop up I mean. There's an option to make it the default, which it doesn't want to be otherwise none of the adapters work with their respective apps, but there is no option to say no and never ask again? So it asks every single time I start the car. Is there a simple way I can stop this pop up from appearing? If I cancel the prompt, all works fine with each adapter and app, but I'm sick of having to cancel it every single time. No idea if the stereo is already rooted or not, haven't checked, but not sure if that would hinder me or not.
Does anyone have any ideas? Thanks.
StuartTheFish said:
Does anyone have any ideas?
Click to expand...
Click to collapse
None good or simple. This is a really annoying part of Android.
If you have an AndroidManifest.xml with meta-data in it (see: https://developer.android.com/guide/topics/connectivity/usb/host) then it will always pop up.
If you don't you won't be able to get permission to use the device.
What you and I want is to be able to say, "This app gets permanent and exclusive access to VID/PID 1234/5678, but never do an automatic app startup. Wait until the app is invoked normally."
System HID devices (like keyboard, mice) go in quietly, but belong to the system.
But to clarify things, is in this case your FTDI UART showing as a Linux /dev/ttySomething or just being handled in Java?
Could you do this:
Code:
$ zcat /proc/config.gz | grep CONFIG_USB_SERIAL
If yes, do you see it in /dev?
Hi, I've no idea how it's handled I'm afraid. All I know is it's a USB OBD adapter to do real time monitoring and data logging of my car's ECU. Normally it's used with a Windows laptop, but works with the android version of the software if I tell the app the VID and PID info. I also don't know why the TPMS app is the one always making the request to use this device when it has it's own one which it never asks for, it just works.
So, I guess that "TPMS" is "Tire Pressure Measuring System"?
So both your OBD and your TPMS use undifferentiated FTDI UARTs?
That's a separate problem.
Could you post the two apps to me privately?
Renate said:
So, I guess that "TPMS" is "Tire Pressure Measuring System"?
So both your OBD and your TPMS use undifferentiated FTDI UARTs?
That's a separate problem.
Could you post the two apps to me privately?
Click to expand...
Click to collapse
The two apps are NDS1 (Nissan Datascan), and the TPMS app is by Deelife, both are just apps I got directly off the play store. The NDS1 app needs to be configured with the VID and PID to work, which I found out via the serial USB terminal app, also from the play store. The TPMS adapter however doesn't show up in this, but the Deelife TPMS app just works regardless, albeit with it autodetecting and wrongly asking to use the UART one each time I start the car.
Nah, too much bother.

Categories

Resources