[Q] Sending files through bluetooth on predetermined devices programmatically - Android Software/Hacking General [Developers Only]

Hi all,
In the app I'm developing I will need to be able to send arbitrary files (probably many at a time) to known and previously paired bt-enabled devices. Is there any way to bypass the discovery dialogue and the devices list by somehow providing a registered intent with the address of a device, say, through a putExtra call? In other words, I will already know the bt mac addresses, so I won't be needing the extra discovery and user input.
Downloading an alternative bt app that is capable of this would also work for me. So far I've tried to use the services offered by both "androbex" and "bluetooth file transfer" but with no luck.
I'm developing for a Samsung Tab, android-8.
Any help would be greatly appreciated.
Many thanks!

Related

[Q] Share/Send recorded sound

hi,
i used an existing sound recorder and implmed, one by myselft.
There are some samples form MS, how to do sound recording too.
Now i want to send the recorded sound to another user's android phone.
Should be simple
- Send as email attachment
- Send via bluetooth
I did not find a program on the marketplace and trying to implent this by myself i found no example, how to do this. In this forum and on other resources, i read, that it currenty is not possible, to send email attachments programatically.
Is there really no way, to do such a simple task, as sending/sharing an audio file (after converting the recorded byte-array to .wav format) to another phone via email or bluetooth ?!
regards,
hannes
E-Mail attachment shouldnt be hard but WP7 does not support bluetooth file transport
Forget about bluetooth (until MS releases some kind of BT API). As for email attachment, you have a two options:
- implement smtp/exchange client by yourself;
- use (create) http "proxy" service on the external server (you sending audio data and additional parameters, and service forms the message with attachment).
Both ways a really not easy and expensive.
Send me a PM and I'll write something and upload it to the marketplace tonight.
MJCS said:
E-Mail attachment shouldnt be hard but WP7 does not support bluetooth file transport
Click to expand...
Click to collapse
The problem is: An email attachment in fact IS hard (impossible), without using some external service.
sensboston said:
- implement smtp/exchange client by yourself;
- use (create) http "proxy" service on the external server (you sending audio data and additional parameters, and service forms the message with attachment).
Both ways a really not easy and expensive.
Click to expand...
Click to collapse
Thank your for your response!
This is quiete the same, what i found out too. It is possible (i am a developer and i can host such a sevice on my domain) but that's not the way i like to do it.
I play in a band and recorded some demo with the phone and now want to send this recording to my band colleagues but it was not possible to do this.
This should be as simple as "open a bluetooth connection" + send.
On a windows phone, store it in the "media collection", on other phones, store it on a selectable location on the file system.
This is really anoying.
I like the platform and like developing for it but not beeing able to do such simple things...it's hard to argue, why WP is better than f.e. android.
MJCS said:
Send me a PM and I'll write something and upload it to the marketplace tonight.
Click to expand...
Click to collapse
I think, i don't get the point of your reply.
What do you want to write - a program, that does does recording audio + email it to other users?
I am searching for a solution, how to develop this by myself, not for a program on the marketplace.
regards,
hannes
HannesB said:
I think, i don't get the point of your reply.
What do you want to write - a program, that does does recording audio + email it to other users?
I am searching for a solution, how to develop this by myself, not for a program on the marketplace.
regards,
hannes
Click to expand...
Click to collapse
Oh...and I had already started programming it. Oh well. Basically do this:
Upload to SkyDrive using the API or...
Create a WCF Service that allows you to send a file stream
Have the files stream get written to the server as a GUID
Return link to file
Send link via e-mail
Have file expire after 24/hrs or something
hi,
thank you, for your response.
...and starting programming on it so fast.
(if you really started programming it - put it on marketplace, i am sure, many people would like souch a tool)
The "problem" with this approach (and email too) is:
- i need an internet connection to upload
- the people that want to download the file, need an internet connection
- there are still people, that don't have an internet flatrate for their phone or any internet connection (or have to use roming, if not at home) and jus say "..hey, you recorded it - send it to me via bluetooth".
Seem's, the steps you discribed, are the only option, to do it. The phone i used 5 year ago, could send pictures and audio recording via bluetooth and since the mango update is currently released and doest not contain an api for bluetooth access, i think it will not be released soon, if ever.
In another posting i read: "I take a picture with me and my friends and i can't send them over the bluetooth. They have cheap dumbphones and I have Omnia 7 and I'm embarrassed. Bluetooth filetransfer is essencial feature."
Ok, this is "offtopic" now, sorry but anyway thank you for your responses.
The steps you explained are possible for sure, but in my opinion a bit "much work", for simply sending some data != text.
HannesB, I agree with you, it's kinda annoying. But, probably, MS will open some new APIs in future (WP7 is based on WinCE so it's not such a big deal, code/drivers are already exists for that platform). Don't forget - WP7 platform is still too new.
I have an app called CopyCat. It will let you do recordings (and change the playback as well).
http://www.windowsphone.com/en-US/search?q=copycat
It will let you store to the Public folder of your DropBox account.
As previously mentioned, unfortunately there is no way to attach WAV files to an email currently.
Hope this can be of help.
Why are you guys complaining about a function that you can have with evernote you can record sound and save it on your evernote account over your windows phone

Guidance building an app - connecting users voice to voice

Hi, I'm creating a new app where one of the main features is to connect two users in a voice to voice connection over the phone.
I purchased "Sams Teach Yourself Java in 21 Days including Android" and I am about half way through the book but I still do not have any ideas on how to ultimately execute and do this.
I've also read over PhoneGap, and its various APIs but still do not see a particular one to initiate this connection.
Could anybody offer some guidance?

[Q] Hotspot radio

Hello,
I'm trying to build an app which streams audio output from a Galaxy S II, via hotspot, to devices connected to that hotspot (no internet). I'm very new to android coding, so that's why I want ask, in a few words, what would be the easiest way to build the app?
So far, I've figured the app should have 2 sort of profiles, one for 'server', one for client, and the basic functionality of the app would be to send the output from the server device to the hotspot, then have the client devices receive that signal.
Question is, could anyone advise me on some key elements to take into consideration? I'd really appreciate any help, since this is my disertation, and it's not long till it's due.
Thx

[Q] Android app and controller project

Hi everyone,
I'm noob android developer and I am writing to ask for advice on a project i'working on.
In detail I have an Android device and an extern controller. I have to create an app that communicates (transmit and receive) via bluetooth connection with the controller (the communication protocol is already defined). What is the best way to handle the data received from the external card? I mean, I was going to create a class Comunication that admin messages with controller, send and recive. I would like to save the received packet in a different class (or even the same, I do not know what is the best way) that is always accessible by all the activities of the app. Moreover, these activities must be able to send requests through the class Comunication to the controller. Do you have any idea on how I can do? The problem is that I do not know how to create the structure of an app like that. Any idea?
thanks
anyone have any ideas?

Can an android device be uniquely identified by a web server

Hi all
Do you know if there is anything on an android device (I use an s7) that can uniquely identify it to a web server.
My friends like to place sports bets on my device and many bookmakers don't allow multiple people to bet from the same device, so is there a way they can tell the same device has been used?
I'm aware the ip needs to be changed and this isn't an issue for me.
Thanks in advance
Hmmm.....cookies?
Other than IP and cookies, try using private/incognito mode. Can't think what else could be used to detect a device.
Thanks mate, appreciate the response!

Categories

Resources