Develop an Android BLE peripheral, suggestion ? - Java for Android App Development

I'm searching a guide/tutorial to learn how to develop an app for android lollipop that simulates an peripheral bluetooth with some service and characteristic.
And another app that writes and reads characteristics from the peripheral.
I try to make it by my self, but I have found some problem and my apps crashed on write and I don't understand very well how to use descriptor ..
Can you suggest me some link or tutorial ? I don't ask you to tell me how can I make app above, because I suppose is too long to explain and I don't want bother you :/

Related

when i looked into TinyGPS............

Everyone who talk about getting the cell id and lac must also know this
TinyGPS software, and i am one of them.
Unfortunately, i haven't successfully get the cell id and lac.
Though i read a lot topics in this forum and a lot articles that i find by using
google, all of my tries are failur.
So i decided to find out why TinyGPS work well on my smartphone while
my program even can not open com:2 port.
Then i find that after you installed TinyGPS, it will also install a file named
tinygps.dll which is actully a serial port driver, and it will also change your
default com:2 driver to this tinygps.dll by modify your registry key. I think
that is why after you install TinyGPS you have to restart your smartphone,
because the new registry setting have to take affect.
So i wonder if i can write a serial port driver just like tinygps.dll. But i only
develop applicationes for smartphone before , not the hardware driver.
I think this will not be a easy task, and i am here calling for help.
Did anybody know how to write a drive for com:2 (gsm modem)?
or at least someone is interested in writing one with me?
BTW:can someone send me a copy of serial2.dll which xda used as the
com:2 driver, maybe i can replace my original one with serial2.dll , and
find if my program can open com:2 port then.
my email : [email protected]
MSN:[email protected]
Thanks a lot.

starting a process on incoming call and stopping when the call is answered

Hi,
I am trying to write a small application for my WM6 phone device.
What I intend to do is :
- write the application in c#
- it will be a background application (daemon)
- starting to blink leds of my phone (I have a dll which I know how to call from within a C# app)
- stopping this process when the call is answered or the ringing state is passed
- no forms will be used (as it will be a background application which will only play with leds)
- when the exe is called a second time , it should disable itself
Unfortunately, I could not succeed a few months ago as seen here :
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2454023&SiteID=1
Then , I had some other issues to deal with and left the project. Now I want to start over, fresh...
However, I am not sure of what is the most acceptable solution for this.
As I do not want to load the CPU or memory with unneccessary processes, I want to be able to do it correctly.
Could someone show me the path ?
Please take a look at the thread that I gave the URL above. At that time we discussed this but I couldn't achieve it.
Thanks for any help, comments...
SystemState class seems to only work if you have a form based application. Which is silly I know. Basically the only solution is do dump the daemon idea and have a form based app but hide the form.
thanks for your reply.
what do you mean by "dump the daemon idea" ? do you mean I shouldn't use it ?
if I create a form based app and hide the form, which method should I use to start the process when phone starts ringing ?
p.s : english is not my native language so I may misunderstand some phrases.
yes he means forget the daemon..and i recommend using C++ as it uses less system resources plus its fast .. im currently developing my first Kitchen in C++ if u want i can work with you also
I agree with you; of course c++ is faster but it's not as easy as c#.
what do you mean by kitchen ?
I would like to work with you but my intention is just creating a simple application. This is not my job, you see ?
A kitchen is a place where you can cook your OWN ROM for your Windows Mobile Device..currently its for Himalaya Only ..check it out here
http://forum.xda-developers.com/showthread.php?t=378498
for me its not a JOB also its just my hobby ..im also a student in 12th grade
thanks for your kind offer. however, I wouldn't like to take your time for my very simple application
If you tell me the correct and easiest method to invoke my application and start its process, I can write the application. I'd just consult you if I'm stuck.
If you are also interested in this app. I can always send you the source code.
sure sure..send me the source....i am not doing much at the moment any way..except for re-writing the tools in C++..i have another useful suggestion..u can use MortScript to this but then it will be different
if you pm me your email address , I can send you the current source code.
But I am not sure if what I wrote is the best way of doing it.
by "best" I mean least cpu power used.
ather90,
did you receive my email ?
yeah i got the source..but there is a problem..you have built this on WM6 Pro SDK..not on WM5..i dnt have WM6 SDK..so i couldnt work yet..but will download it today..its better if you can switch it to WM5 SDK ( it will be same for WM6/6.1 i guess).
I don't know how to convert it to WM5 SDK.
If you tell me I can switch...
NO probs..the SDK is almost downloaded..i figured i might as well download the SDK caz i will need later
ok; waiting for your update...
any updates ?

Android USB communication

Hello everyone,
i was wondering if anyone could give me any tips about how to communicate with android device through usb from c++ or java(i guess that won't work without JNI though). I was trying to google up some documentation on this matter but found nothing. I wanted to program something like 'nokia ovi' suit as my b.c. 'thesis'.
Thanks for reading this, Tomas Herman
Hi,
Did you found any info on this ?
Certainly should be possible since Sync applications are working ...
Daniel
Yes, this is possible but AFAIK only as a hack. You can install the USB driver for the SDK and use adb's port forwarding. See /code.google.com/p/android-notifier/ as an example. Obviously, not an elegant solution and definitely not for the general Android user.

Ideas for android app

hi i would like to learn and develop applications for android mobiles but icant get any idea about what application i should start to develop . I know java and i can understand the most of how the sdk workds with eclipse ...
The problem is that idont know what kind of application to do
Well, I dont know if anything like this exists, but I've wanted an app that would provide an in-depth view of wifi networks. For instance, my school's wifi is crap and only connects half the time. I want an app that will give me a log of errors that are disabling me from connecting so i can troubleshoot and attempt a fix.
I dunno, might be a dumb idea, but it's something I would use.

[Help] App development

I'm making a Java project for school to the final tests, and I need good Guides and Documentation.
The purpose is to make a Remote Control App.
Here is the problem, I don't really know how can I communicate from the PC to the App, And I just started to learn how to make Android apps .
I know how to control the PC if I get the correct variables (I attempt to use the ROBOT in java).
The things I need to learn is:
How I create a network (LAN based) between the PC and the App.
How to make an App that can bee used for those purpose.
Thanks to any one who help :laugh: .
*Sorry if there is any grammar/spelling, English is not my native language*

Categories

Resources