QT for android: How to implement scanning the wifi signal strength(RSSI) ?
-
Hi;
I'm trying to develop an android application using QT for android. The application will be used to scan the RSSI. Everyone who ever do like this can tell me what i should do, which functions i may use? should i use JNI to call java functions ? And how can i implement call java function while i use QT Creater 5.1.1???
Every help will be appreciated. -
Hi,
AFAIK no need to use java function in Qt 5.1.1. You can use the basic Qt programming that we are using in windows application. I have created an Android application in Qt 5.1.1. But currently we can develop in Qt GUI wizard. QML 2.0 is not fully supported in it. May be the future Qt release will support QML.
But i think you can easliy create your application using Qt GUI with C++.Hope this will help you.
You need to download Android SDK, NDK from Android webiste and configure it in Qt IDE. Also you can download Qt Necessitas 4.8 version, "Your text to link here...":http://necessitas.kde.org/necessitas/necessitas_sdk_installer.php, which comes with all Android components. You can just install, build the code, run it in Android Emulator or device and enjoy. If you need any help contact me in my mail.Regards
Ansif -
-
Hi,
Using Qt IDE, you can develop an .exe, .apk and many other formats. Only thing you need to select the appropriate kit in the Build&Run page of Qt IDE.The benefit of Qt is, Write code once and deploy every where. It means the same code for windows is used for Android development too."Your text to link here...":https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDAQtwIwAA&url=http://www.youtube.com/watch?v=6ze5Kr0emzQ&ei=C0Q9UrusGYjZrQfohIGwDA&usg=AFQjCNF8Nmx5ktO2U0n_EUPySCuow0LM2Q&sig2=LP5uxidp7RvhJGG3AsPgag&bvm=bv.52434380,d.bmk
Hey one more things, its Qt, not QT
Regards
Ansif -
bq. can the apk run windows’ fun in a android system to scan the RSSI around my phone?
If you mean that you want to use windows native functions in android then, no it can't.
-
[quote author="p3c0" date="1379747277"]bq. can the apk run windows’ fun in a android system to scan the RSSI around my phone?
If you mean that you want to use windows native functions in android then, no it can't.[/quote]
Hi,
I agree with you.Ansif
-
Now, i have developed a little app to scan RSSI running in Linux system. I used the wireless tools in the app. So, can i transplant the little app to android system without any change of the wireless tools? I mean , can i use wireless tools lib for a android apk?
-
Hi,
If you have developed the application in Qt, then just configure Qt with the Android SDK and NDK. After that, build the same code and deploy it into Android. I think yes you can install the third party library in Android with your application.
Config Android in Qt,
"Your text to link here...":http://qt-project.org/doc/qtcreator-2.7/creator-developing-android.htmlAnsif
-
[quote author="freshman" date="1379752023"]Now, i have developed a little app to scan RSSI running in Linux system. I used the wireless tools in the app. So, can i transplant the little app to android system without any change of the wireless tools? I mean , can i use wireless tools lib for a android apk?[/quote]
I assume you used the wireless tools which are already installed in your Linux system and using it in your application through its library and header files.
For Android, you will need to compile that wireless tools lib for Android and then include its header in your app.
OR check if Android SDK itself has that utility/function to scan the WiFi strength. -
[quote author="blueshift" date="1379787407"][quote author="freshman" date="1379752023"]Now, i have developed a little app to scan RSSI running in Linux system. I used the wireless tools in the app. So, can i transplant the little app to android system without any change of the wireless tools? I mean , can i use wireless tools lib for a android apk?[/quote]
I assume you used the wireless tools which are already installed in your Linux system and using it in your application through its library and header files.
For Android, you will need to compile that wireless tools lib for Android and then include its header in your app.
OR check if Android SDK itself has that utility/function to scan the WiFi strength.[/quote]
Hi blueshift,
Did you ever tried to build a Qt project with third party libraries in Android. I was trying to build one of my project which contains 3rd party libraries.
Ansif
-
hello All ,
Pls need help if any one have made application on Wifi to scan or receive / sent data pls send to me @ praveen0991kr@gmail.com I will be very thankful to you ...
@fresherman ; Ansif ;Thanks
Praveen
-
[quote author="praveen0991kr" date="1406798375"]hello All ,
Pls need help if any one have made application on Wifi to scan or receive / sent data pls send to me @ praveen0991kr@gmail.com I will be very thankful to you ...
@fresherman ; Ansif ;Thanks
Praveen[/quote]
Hello Praveen,
Did you find the solution. Did the links send to your mail was helpfull.
Regards
Ansif