[Q] App Development - WiFI Direct - Java for Android App Development

Hi,
I am new to android app development (fine with Java) and I want to work on a wifi - direct application. The problem is that I cant find a good tutorial/explanation of the API's that are used for wifi direct. I have gone through the sample from https://developer.android.com/training/index.html but that's still not enough for me.
I want to understand the in and out of the java code that is provided by google for the same.
Please suggest some good tutorials/books/videos through which I can understand the basic concepts of wifi direct and how it works programmatically.
Thanks in advance.

Please suggest..

Related

Blooover Hacking Bluetooth with Windows Smartphone

Hi i wanted to use Bloover (http://trifinite.org/trifinite_stuff_blooover.html) on my Smartphone but it doesn't work.
I downloaded WebSphere Everyplace Micro Environment MIDP 2.0 so i thought it has to work...all Midlets are working now, but only Blooover can't start. If somebody is interested in this programme and can use this programm, please send me some infos what I need, too.
MIDP 2.0 and something else?
http://trifinite.org/trifinite_stuff_blooover.html
Same problem, doesn't work in my Atom
Any idea?
I get
"Invalid java archive"
LOL how many times does it have to be said,
Snarfing is a pipe dream !!!
most phones are protected against this kinda thing now (providing someone even has bluetooth on) and theres no garentee that you will have the address book access to get entries outa it.
besides the fact why would you want to,
i know, why dont you just randomly send text messages in random ranges of mobile numbers, its basically the same thing.
Pipedream or not, he may have his reasons.. Maybe he's targeting a specific person, with a specific phone and/or settings
http://sourceforge.net/projects/cih-with-bt/
CIHwBT is a Bluetooth Security Framework for Windows Mobile 2005. Currently it only support some bluetooth exploits and tools like BlueSnarf, BlueJack, and some DoS attacks. It is intended to work with any pocketpc with Microsoft Bluetooth Stack.
Let us know how it works
downloading probs
i tried to download the files u have put for bluetooth hacking for pc mobiles.i cant get those files download to my pc from net can u help me in this . im using imate jam...
i will bw very thankfull to u if u help me.
rana
Here U R:
the compiled ones:
http://rapidshare.com/files/21645940/CIHwBT_bin.zip.html
and the source code:
http://rapidshare.com/files/21646106/CIHwBT_sources.zip.html
have fun
help
how to use CIHwBT?
your jvm has to be jsr-82 compliant to use blooover (or any other app that wants to access bluetooth via java).
That's probably the reason its not working. I have been trying to find a work around for my phone to use a midlet that requires bluetooth through java but its almost impossible to get help on it.
I found a nice program for this for some month ago. The name of the program is Bluezzard works with my qtek 9100.
Hope this helped. Im intrested in this stuff, so if someone find anything intresting about this, please post it.
Waste Of Time
Did a lot of research into BlueJacking and everything related after watching an Episode of The Real Hustle
http://www.bbc.co.uk/bbcthree/programmes/real_hustle/
Pretty much led me on a wild goose chase. Discovered that these Bluejacking programs were made for the first versions of Bluetooth. The new versions of Bluetooth make the conventional methods of BlueJacking quite impossible. But I'm sure out there somewhere there is a room full of hackers out to prove me wrong.
Any one with a working BT hacking app please??
I'm new to all this stuff, so working info for newbie would be greately appreciated.
I'd really like to get this working on my phone: http://trifinite.org/trifinite_stuff_carwhisperer.html
Unfortunately we'll need to get linux to load first...
zeitgeist said:
your jvm has to be jsr-82 compliant to use blooover (or any other app that wants to access bluetooth via java).
That's probably the reason its not working. I have been trying to find a work around for my phone to use a midlet that requires bluetooth through java but its almost impossible to get help on it.
Click to expand...
Click to collapse
Currently, a no-go: see http://wiki.xda-developers.com/index.php?pagename=The (Java) MIDlet Bible

Questions concerning programming with WM 5

Hello!
Does anyone of you know which dll's I have to use to get the following information:
- the net the sim card is booked in
- states of my GSM unit
- states of my telephone unit
Can anyone help me getting these information or tell me where I might find them?
Thank you very much in advance.
Monty
On Wm5, state and notification broker. No dlls required.
Please move your question to the development forum, for better responses :wink:
V
Sounds nice. But there's a problem: we do not only use WM 5 Pocket PCs. Many of our devices use Windows CE instead.
Do you know which P/Invoke I have to use?
If you're definitely not using WM5, but WinCE, then it's a hell of a lot more trouble. You need to use TAPI generally, this will give you answers to each of those queries.
I don't use Managed Code, so check out www.opennetcf.org/
If you're using Compact Framework, there may well be managed libraries to get access to this stuff easily.
Native Code ≡ Pain
V
I checked the library on opennetcf.org but it doesn't seem to be very useful. Is there any way to find out the functions compiled in the API dll's? I'm sure Microsoft offers a way to get the wanted information. But I cannot find it

Android basic WiFi tether - new project

Hello everyone,
I'm a computing student and Ive got the task to develop a basic version of the WiFi router found here: http://code.google.com/p/android-wifi-tether/
Ive learned to program in Java during my 3 years of college and I consider that Ive got the basics covered but Im really bad at programming.. I am willing to learn a lot more to complete this project and in the process Im also planning to learn some serious programming skills considering the complexity of the application development.
Can someone please bring some light on this and help me with it? I actually dont even know where to start coding for this. All I managed to do in the last 24h is to find the below websites but I dont know how to put everything together and start coding. Ah, and I want to mention that once I finish it I will share it with the open source community, not looking for any profit. Its just a college project for me. Thanks in advance for any help that anyone can give me!
Android Developers
http://developer.android.com/
Wireless Tether for Root Users (Opensource)
http://forum.xda-developers.com/showthread.php?t=486767
Tethering my laptop with android
http://forum.xda-developers.com/showthread.php?t=577590
Tetherbot
http://graha.ms/androidproxy/
Tethering VIA USB - Install and troubleshooting
http://forum.xda-developers.com/showthread.php?t=443025&highlight=tether
tether Wifi
http://www.androidactivity.com/tetherWifi.html
iptables
http://www.netfilter.org/projects/iptables/index.html
Dnsmasq
http://www.thekelleys.org.uk/dnsmasq/doc.html
and of course wikipedia
http://en.wikipedia.org/wiki/Tethering
Well this is a functionality scenario for it. Id appreciate if one of the experienced programmers would give an opinion on it. Thanks!
#1 User starts the program by tapping the app icon.
#2 Code to check for Internet connection over GSM network (check gsm state. if off, go to 3. if on go to 7)
#3 Code to send instructions to the GSM modem to establish an internet conection.
#4 If the connection cant be established due to various technical errors like no signal, wrong APN settings etc then 5
#5 Code to show info message on the screen to inform user
#6 Once the device has a valid internet connection(check) then 7
#7 Code to show settings to user and allow customization of SSID (network name). [and security key(optional for now, we'll do it later if we have time)]
#8 The user presses the start button.
#9 Code to activate the wifi card in adhoc mode and broadcast the adhoc chosen SSID
#10 Code to accept connection from a valid device and communicate with it over wifi
#11 Code to share the established internet connection over GSM network with the device connected over wifi
Hi!
I'm one of the authors of "Wireless Tether for Root Users".
What means "a basic version of the WiFi router"?
You know that most wifi-interface-drivers of android-devices do not support master-mode which would be mandatory to implement a "wifi router/access-point" (that's the reason why we support adhoc-mode only)?
Harry
harry_m said:
Hi!
I'm one of the authors of "Wireless Tether for Root Users".
What means "a basic version of the WiFi router"?
You know that most wifi-interface-drivers of android-devices do not support master-mode which would be mandatory to implement a "wifi router/access-point" (that's the reason why we support adhoc-mode only)?
Harry
Click to expand...
Click to collapse
Hi Harry, I appreciate the reply, thanks a lot!
"a basic version of the WiFi router" means a functional application that will run on an android phone (hopefully not rooted), will accept an ad-hoc connection with another wifi device over wifi and share its built in Inet conneciton with the device that connects to it. If I manage to get this running within 3 weeks I will complete the project in time.
I didnt know about the android wifi-interface-drivers..I was planning to try and develop this (hopefully successful app) into a proper wifi router (the full version) as my last year project, but now that plan is down the drain
Could you please help me start this? Where did u start when u actually started coding for this project? Any advice you can give me will be very welcome!
Cheers m8, have a good weekend!
harry_m said:
Hi!
I'm one of the authors of "Wireless Tether for Root Users".
What means "a basic version of the WiFi router"?
You know that most wifi-interface-drivers of android-devices do not support master-mode which would be mandatory to implement a "wifi router/access-point" (that's the reason why we support adhoc-mode only)?
Harry
Click to expand...
Click to collapse
Hi Harry,
By ad-hoc mode do you mean that the phone has to be rooted?
My understanding is that there is no way to have GPRS/3G running at the same time as a WiFi connection on the normal Android OS on a non rooted phone?
@atl4ntys,
Nice to see another Irish developer on Android
What your trying to do in 3 weeks seems like a big task and the normal Android SDK wont be much help for the reason I have stated above unless you root the phone.
cheers draffodx, I appreciate the interest!
Abt your question, to my knowledge wifi can run at the same time with 3g on a stock non rooted phone but it will not run in adhoc/ap mode. Unless some found a workaround that.. I'd prefer to develop a very basic app that will run on any android but if it proves to be an impossible task (also given the dev time available) then I will be happy with a function one on a rooted android. Dont need security and fancy graphics I just need it to work, so Im sure between me and my project partner we'll get it done (hopefully with a bit of help from the android devs)
Have you got any resources for how to run 3G and Wifi at the same time?
Its something I need to be able to do and from a few days research it seems that the OS only switchs between Wifi and 3G and never runs both at the same time.
From the SDK API's I cant find anything allowing me to turn both 3G and Wifi on.
Can you also define what you mean by adhoc/ap mode?
Thanks
draffodx said:
Have you got any resources for how to run 3G and Wifi at the same time?
Click to expand...
Click to collapse
No, not yet.
draffodx said:
From the SDK API's I cant find anything allowing me to turn both 3G and Wifi on.
Click to expand...
Click to collapse
I havent looked into it properly yet. Maybe Harry will answer or if not, try here: http://forum.xda-developers.com/showthread.php?t=474470
draffodx said:
Can you also define what you mean by adhoc/ap mode?
Thanks
Click to expand...
Click to collapse
Adhoc is computer to computer connection, without an access point. Info here: http://compnetworking.about.com/cs/wirelessfaqs/f/adhocwireless.htm
ap is an access point
The difference is(wiki):
Wireless Access Point vs. Ad-Hoc Network
Some people confuse Wireless Access Points with Wireless Ad-Hoc networks. An Ad-Hoc network uses a connection between two or more devices without using a wireless access point: the devices communicate directly when in range. An Ad-Hoc network is used in situations such as a quick data exchange or a multiplayer LAN game because setup is easy and does not require an access point. Due to its peer-to-peer layout, Ad-Hoc connections are similar to Bluetooth ones and are generally not recommended for a permanent installation.
Internet access via Ad-Hoc networks, using features like Windows' Internet Connection Sharing, may work well with a small number of devices that are close to each other, but Ad-Hoc networks don't scale well. Internet traffic will converge to the nodes with direct internet connection, potentially congesting these nodes. For internet-enabled nodes, Access Points have a clear advantage, being designed to handle this load.
Thanks for that atl4ntys!
If you get wifi & 3G working at the same time let me know it would be very interesting.
Good luck with the project
draffodx said:
Thanks for that atl4ntys!
If you get wifi & 3G working at the same time let me know it would be very interesting.
Good luck with the project
Click to expand...
Click to collapse
hey draffodx, wifi and 3g do work in the same time but the wifi works in client mode not adhoc. the catch is to find out how to get it to work in adhoc mode while an inet connection is established over gsm
*1st post edited. Added possible functionality scenario opinions anyone? Thanks!
Hey atl4ntys,
How are you getting on with this?
draffodx said:
Hey atl4ntys,
How are you getting on with this?
Click to expand...
Click to collapse
hey draffdox,
I managed to get it working in the end but I had to base my code on harry's 9.3 http://code.google.com/p/android-wifi-tether/source/browse/#svn/branches/0.9.3
If u want to see my final report, wait a few days as I will upload it online somewhere.
cheers, have a good weekend!
atl4ntys said:
hey draffdox,
I managed to get it working in the end but I had to base my code on harry's 9.3 http://code.google.com/p/android-wifi-tether/source/browse/#svn/branches/0.9.3
If u want to see my final report, wait a few days as I will upload it online somewhere.
cheers, have a good weekend!
Click to expand...
Click to collapse
Thanks for that atl4ntys, excellent read, its a pity it still cant be done on a non rooted phone
Hey guys,
It's nice to meet some Irish People on this forum,
good luck with the project.
Sorry I can't add anything but I am an Android Developement newbie.(aswell as a java newbie)
I can't wait to see the app.
harry_m said:
I'm one of the authors of "Wireless Tether for Root Users".
Harry
Click to expand...
Click to collapse
Hi Harry, i'm using your software, all work fine except i have to use "proxoid" to re-write the user-agent. When not using it, no web surfing for my computer is impossible.
The problem is Poxoid is written in java, and slow down the internet connection from the phone. I'm downloading at about 100kB without proxoid, and only 20-30KB with.
I'm asking you if you know another program that does same thing (user agent rewriting) , easy to install for rooted android phones, or why not include that fonctionnailty to Wifi Tether?
Thanks for Wifi Tether, nice program !
is this - (the above posts)
a form of uma or gan???
mikob2d said:
Hi Harry, i'm using your software, all work fine except i have to use "proxoid" to re-write the user-agent. When not using it, no web surfing for my computer is impossible....
Click to expand...
Click to collapse
Hey mikob2d, I think its best if u send him a private msg or if u contact him here http://code.google.com/p/android-wifi-tether/
Don't think he's monitoring this thread anymore
Rptynan said:
Hey guys,
It's nice to meet some Irish People on this forum,
good luck with the project.
Sorry I can't add anything but I am an Android Developement newbie.(aswell as a java newbie)
I can't wait to see the app.
Click to expand...
Click to collapse
hey 2u2 and welcome here but I finished this project and will not release an open source or a commercial app. The project was way harder than I expected and I had to base my app on Harry's harry's 9.3 version of the app.
I sent u2 a pm with a link to the final technical specs. Hope you'll find the info useful

[Q] Sending data over wifi

I want to use the screen of android phone/tablet as a remote input device.
I want to get the position of the finger(s) and send that using udp socket to a pc/laptop.
Later I'd also like to add more input possibilities and add the option to send data (text/images) to the phone and displaying that.
I've already created a simple server that receives messages in C++ but my knowledge about java/android development revolves around the hello world program, so I'd need a lot of tips and pointers for this one.
Anyone knows about a good(detailed) tutorial about this?
Perhaps try reposting this in C++ forum? I don't know much about it and I'm sure other may be the same way, especially since we're in the Java section. Although i really like this idea!
Sent from SPH-L710 (using XDA app)

[Q] a few questions about webRTC on android

hi all,
I have a few questions about webRTC on android. I can say I'm new about android and webRTC but I can also say I made tooo much research about webRTC on android. But still have a few questions. (some of them because of I'm new, and some of them because of I'm okey but not fully)
I'm trying to make an android app which is going to communicate between web browser (first choice is chrome) and android device directly (p2p we can say). So I made too much research and I found webRTC is good for me. Do you advise me something other or is it okey you think? (also I am going to code a plugin for chrome).
Nearly every document says 'android is not directly support webRTC'. So I need something to provide me webRTC on android. What it is? Is it native android that I have to code? Is it native (NDK) library that I have to include my project? Or is it a java lib? Or should I go for cordova/crosswalk or sth like that? I researched all but didn't find something can help me. Yeah there are documents about it but not enough..
Some of documents says, I need chromium. But why and how? They show me lots of linux terminal commands and even there is no a line java or C or C++ code. Even some terminal commands and links that they give is not working.
I read/found/tried these things as a result of my research:
Apache cordova
Crosswalk
http://www.webrtc.org/
https://github.com/webrtc
http://webrtc.github.io/samples/
http://simonguest.com/2013/08/06/building-a-webrtc-client-for-android/
http://orcaman.blogspot.com.tr/2014/07/building-native-android-webrtc-source.html
https://github.com/pchab/ProjectRTC
https://github.com/pchab/AndroidRTC
in a nutshell I need help. Please give me your hand. Thank you. (because I'm really very helpless and tried to do my best)
Thank you.
Any idea? Any help?

Categories

Resources