Android : Ndk To Access Native Bluetooth Lib?
May 1, 2010Looking for any pointer or advise using NDK to access to native bluetooth lib. is it doable? anyone have good or bad experience to share?

Looking for any pointer or advise using NDK to access to native bluetooth lib. is it doable? anyone have good or bad experience to share?
I am completely new to the NDK.
I have done a couple of the tutorials including the hello from jni one and another one that calculates the sum of two numbers.
They involved using cygwin and the ndk to create the library so file and I have a bit of a grasp on how to insert my own libraries into the libraries layer of Android.
I have now been asked to access the native libraries on Android and see what I can use them for.
My question is can I do this?
The STABLE-APIS.txt document is a bit vague and mentions the following as Stable C++ API's in Android 1.5
cstddef
new
utility
stl_pair.h
Does that mean I can access them?
If so then how do I go about it?
I am trying out an example of OpenCV from http://github.com/billmccord/OpenCV-Android and am stuck at the point where it is mentioned "Before attempting to run the VideoEmulator application, you must first copy this XML file into the emulator in the following location: /data/data/org.siprop.opencv/files/haarcascade_frontalface_alt.xml " Where in my eclipse workspace do I need to place this haar xml file to be copied to the location /data/data/org.siprop.opencv/files/ of the emulator?
View 1 Replies View RelatedCould someone please tell me how to access android's native resources? In particular, I would like to use the camera icon and shutter sound in my own app.
View 3 Replies View RelatedTry to select (or update) from custom databases (for example mmssms.db) but on init I see " Unable to open the database file". Try send permissions in manifest <uses-permission android:name="android.permission.WRITE_SMS"/> <uses-permission android:name="android.permission.READ_SMS"/> but this doesn't help.
View 2 Replies View RelatedIs there any way to access the contact DB in my native libraries(C/C+ +)? Also to update the contact database through native libraries itself.
View 4 Replies View RelatedIs it possible, from within my android java app, to capture an image of what is on the screen, even if it was written using native (ndk)? I do not wish to take screen shots of other apps, just my own. I can already capture and image of a canvas that I am aware of, but is there a view or canvas or something like it that always represents what is on the screen, so that a) I don't have to capture the separate views images and recompile them, and b) I can see what my native (jni) code is doing with the graphics too?
View 1 Replies View RelatedI am working on video renderer application which need surface and control of surface. And through isurface i can register heap buffer to that surface and post buffer operation. I have gone through android_view_surface.cpp file. It is having all required APIs which are helpful for my application. But i don't know how can i implement it. What are the procedures to get access of those APIs.
View 2 Replies View RelatedWhen I had a crackberry and had it paired with my Bluetooth on my car I could hit a button on the module in my car and it would launch voice dialing on the berry. With an android phone it doesn't. I am wondering if there was a way or an app that could monitor for the button or give me the same Bluetooth config of the berry so I could gain that back.
I love hands free dialing and I've tried apps like vlingo but they seem too unusuable still.
Galaxy Nexus
I use MAP to see texts on my Toyota Camry. It's supposed to be able to read email as well. However, there are times where the MAP settings aren't saving and the look actually changes. In one instance I get this:
With this screen the settings won't save and messages can't be read. If I reset the phone, however, and go back to the MAP settings it will sometimes change to this:
With the setting screen like this, the car can access text messages but not emails. HTC One X using Tapatalk 2
I tried to send my wife a copy of a picture using Bluetooth yesterday, by going to the picture, pressing the left button (the one with 4 squares).Somehow, it gave my wife access to all the files on my phone.That didn't matter, insofar as there was nothing on it I didn't mind her seeing (though I don't think she expected quite so many pictures of Lucy Liu! ) but I wonder if anyone knows what I might have done wrong?Or, perhaps, the phone is set up in such a way that you have to be sure to trust someone completely before sending information by Bluetooth?If it helps, I'll try to recreate what happened later, but if anyone knows off-hand what I might have done and how it ought to be done differently.
View 3 Replies View RelatedJust wondering if anyone knew how to connect HTC Desire to a laptop to use the phone's Mobile Network Sharing feature? I want to use Bluetooth for the connection, not a USB cable.
View 2 Replies View RelatedI even tried flashing a custom rom (Fresh) on the last attempt and it just seems like it is giving me the Sprint stock Rom. Shouldn't the custom Rom look different? Once rooted do I still need to use Unrevoked method to grant superuser access for Apps?
View 9 Replies View RelatedSo I cancelled my all access trial, I don't find it useful to me, even though I cancelled it, I'm still seeing radios, and other all access features. Will it disappear from my Google Play Music after it's supposed to expire (06-07-2014)? My account type still lists as All Access...
View 1 Replies View RelatedI want to access a web service in android web application.But I don't have any idea.
View 3 Replies View RelatedI was cleaning all the crap off my phone I don't use anymore and I believe I accidently removed the bluetooth software that allows it to connect to stereo bluetooth headsets. I can control the player with the headset, I can make phone calls from it, but when I try to play music there is no sound.
I was trying to reset the phone using RUU, but it reboots the phone and then says it cannot reconnect after that and the software shuts down. I can still sync with outlook, so my driver is not the issue. I am out of ideas.
Is there anyway possible to reinstall just the bluetooth portion of the rom?
Is there any way to turn the bluetooth option on the caller id screen to automatically toggle the bluetooth function on vs rushing to home screen toggle?
I'm often on the road at work or just have my hands full and it is such a drain running bt all day. Is there anything close to what I'm asking available or possible?
I'm just looking at the Android's native IM app and wondering if it's possible to create new providers? I know other people have written seperate IM clients but it'd be great to add to list in the native IM app.
The 3 I'd like to work on is Facebook, MySpaceIM, Skype.
Just wondering when this forum will have an app in the market....
Would make it very nice, as website is sometimes hard to navigate on the desire... Need some changes to the site, like maybe a "next page" button so that maybe it's easier to get to... Rather that zoom-in and try to hit the 2... Anyway, any plans in he works? Anybody know?
Is it possible to use a native C/C++ library? If so, are there any restrictions for those libraries to be used?
View 3 Replies View RelatedI am facing some issues in calling the Android soft keyboard from a C++ file. I have a project in C++ and I need to show and use the native soft keyboard in some screens. I am compiling all the code with NDK. how to use the soft keyboard in a native / C++ application ?
View 1 Replies View RelatedThis is my first android phone and im having some problems with the bluetooth. Im trying to send my contacts over bluetooth from my old sony ericsson but it doesnt seem to be going smoothly, i would say its all down to me! Basically i have got the bluetooth on for both phones, the desire is set to be discoverable and i try to send the contacts via bluetooth on the SE. I get the whole passcode and accept the file which i have done, but then it says again about accepting the file. Ive tried it a few times and i have 3 bluetooth icons at the top of my screen now which i imagine are for transferring files which need accepting. Is there anywhere i can to accept them or close them down?
View 1 Replies View RelatedI want to prevent native application to receive message.I want that my application only receive message. Is it possible ? if yes then how ? can i access the received message and delete it ?
View 3 Replies View RelatedI'm still checking everything out.
I'm wondering what the limitations are if we develop the app using Titanium.
What cannot be done using Titanium, for iPhone and for Android?
What things can only be done using only the the native tools?
I have a library written in C which implements some complicated algorithm over two databases and as a result produce new one. I am trying to import it in android using android-ndk. What is the correct wat to use sqlite in you native libraries, i was able to build the sqlite manually using the ndk but when i use it gives some strange errors when trying to fetch rows from db which is on phone storate - after i fetch some data i got SQL:database not opened. how can use sqlite in native code on android.
View 2 Replies View RelatedWe know that it's very convenient to use TraceView in Android java code to check the runtime of different chunks of code. Now I develop my app with NDK and I want to check the runtime of some native functions, but I found nothing in TraceView guide if it's possible to use this tool. Because I noticed that one of my native methods spent too much time and I want to dig out the more detailed root cause. Is there anybody know if we can use TraceView in native code?
View 2 Replies View RelatedI am planning to write a video player application and I am planning to use the gstreamer on the native side. I am trying to use the SurfaceFlinger for the rendering part. For this I have written a test program to experiment on the rendering part. I am using the surface flinger wrapper from the project
http://gitorious.org/rowboat/external-gst-plugins-android
But the following ERROR occurs when we try to run the .apk.
CODE:.......
The I changed the permission for "android.permission.ACCESS_SURFACE_FLINGER" in frameworks/base/core/ res/AndroidManifest.xml to "dangerous" and recompiled. But got the same error.
Then I commented out the "checkCallingPermission" method in IServiceManager.cpp and recompiled. Then also i got the same error.
I'd like to know if it's possible to associate a protocol (for example: 'myapp') to a native application installed on a Blackberry (or Android) so that if a user types in 'myapp://xxx' in a web browser it calls the native application. In this case, how is it possible to achieve it? As far as I understood, it's possible to do it with iphone but I don't know if it's possible with blackberry or android.
View 3 Replies View RelatedDoes anyone know how Java thread relates to Android native thread? Does it map one to one?
View 2 Replies View RelatedI want to install a non-native sms app (handcent) as well as Where's My Droid, however both programs have access to communication and contacts, which always worries me, esp on a free program. Does anyone know if there are any known datamining problems with these apps? Any other malicious code, etc? Just want to check before I download.
View 5 Replies View Related