android 6.0: search for devices via bluetooth - search

I am developing a Bluetooth application. First at all I Need to search available Bluetooth (bt) devices. This works for android 4.3 up to 5. ...
but not on the new Version android 6. When I press the button "search for devices" the bt-receiver starts but finds no device. What interesting Thing could that be? Do I Need other permissions than for older Versions of android?
I can't give you the code, because it is my companies app. But I would be really appreciated if you know sth. about this difficulties and give me some evidences.
Thank you!

Related

How is a Always on Display for Android coded?

My smartphone (Samsung A21s) doesn't supoort the AOD of Samsung. So i tested several apps from the Play store. But I want an app,so i decided to code my own app, which allows me to choose my own background. I want to use the pictures from the gallery. I also want a music control for the AOD. I have a accurate idea of what I want, but I don't know how to code it. Does anybody know, how a AOD is coded? I use Kotlin and I'm working with Android Studio.
Thank you for your help

Tizen send data from wearable to android phone and also from phone to wearable

I need to send some binary files via bluetooth from tizen g2 watch to android phone and then from phone to watch, as I've searched it I can't implement bluetooth in js files as said here so what is the most straightforward way to do it? can we use tizen wearable debug over bluetooth instead? is it applicable in this case?
I'm new to tizen so I feel confused and I really appreciate any advice about this problem.
You can develop companion app using Samsung Accessory Protocol(SAP) in this scenario. Please go through this link to know more. If you are trying to develop the tizen part in web, then have a look in the File Transfer sample of web section. There're separate applications for sending and receiving files from tizen to android and vice versa. You can combine those to implement the bidirectional communication.

Android Studio, No, minSdk(API 14) > deviceSdk(API 1), moto G, Ubuntu 15.04

I just installed Android Studio (v1.4) on Ubuntu 15.04 (64) and am unable to connect to my Moto G (Android 5.0.2) to run the application I made from a tutorial.
When asked to choose a device, I get the following choice for my device:
TA9290IPXK [NULL] No, minSdk(API 14)>deviceSdk(API 1) TA9290IPXK
I already enabled USB debugging on the device. when running 'adb devices' I get " ?????????????? no permission " and after killing and restarting the adv server it displays the proper serial ID but when going back to Android Studio it still does not work.
Has anyone encountered this issue ? Can someone provide a suggestion of solution please.
An obvious reason for that error message “No, minSDK(API 14) > deviceSDK(API 1)”, which I didn´t find so far mentioned neither at StackOverflow nor by other forums:
If the AVD Manager option for a virtual device “Emulated Performance - [ ] Use Host GPU” is unchecked, the Android simulator works just on "API 1" level :-(.
So if you try to execute a standard Android app ( e.g. "API 14" level ) with this setting,
The Android desktop screen is not displayed but just black screen with “android” in white letters.
When executing “Run / Device Chooser / Choose a running device / Compatible” again, there is the error message “No, minSDK(API 14) > deviceSDK(API 1)”, if “minSDKVersion 14” is set in the project configuration file “app”.
-
Why should you ever try to run the Android simuator with unchecked option?
Well...If your Win8 or Linux computer really provides OpenGL2 graphics, you may operate the simulator with default setting “Emulated Performance - [x] Use Host GPU”.
But if your Win8 or Linux computer just provides OpenGL1 graphics, as my legacy Win8-32bit notebooks “ASUS Eee PC T101MT” and “Dell Vostro 1000” with standard Windows drivers by Microsoft, the Android Simulator crashes by the error message “APPCRASH”, “Fault Module name: libOpenglRender.dll”.
And so by unchecking the option, you can´t run Android apps requiring a usual API level ( API 14,... ) :-(.
Read this article about the incomplete rollout of OpenGL2 drivers for Win,Linux and MacOX on current and legacy computers :-(:
https://github.com/processing/processing/wiki/OpenGL-Issues
Sincerely
Rolf
Ok I found the solution
Turns out I had 2 ADB installed in different Paths and Android studio was getting one of them that was not the correctly configured. I also had not properly set up the udev rules.
Here are the step I took to get it fixed
1. Remove ADB that was installed manually
2. Modify the udev rules to add the devices (It turns out that both my Nexus 7 and Moto G were not Asus and Motorolla respectively but Google inc instead. I acquired the right Vendor ID code using "lsusb" It returns XXXX:YYYY the vendir iD is the XXXX
3. Add the location of the right adb to path ( /Sdk/platform-tools/)
4. Then rebooted all of the devices (computer and android devices) and it seems it worked.
Sorry for not giving out all the terminal lines that were entered, being novice with Ubuntu it may have been a lot more confusing than helping.
Hopefully it can help someone that is in the same situation.
You have to set to connect as camera(even after usb debugging is already enabled)
Thanks to #Jorch914
i already found the solution to this. in order to solve this one, is go to Gradle > Build.gradle(module:app) > and then change the minSdkVersion that is compatible with your phone. Hope this help! :)

J2me mobile app run in sony ericson but not run in nokia mobile.Help me to solve it?

I am developing a mobile app using j2me. It works fine in "sony ericsson z530i". It works fine in "Nokia c2-00" mobile before 1 week. But I run the app now in nokia phone after sometime in the middle of app automatically my nokia phone switches off. I cannot resolve it but it works fine in sony ericsson mobile. I think I need to change some phone setting or the phone is in problem? I cannot find a solution so please help me solve the issue. I am using "Nokia c2-00" mobile which had "S40" sdk.
Some time problem may be in MIDP version in the mobile application check whether property and select MIDP as 2.0.
I find the solution.The problem is not in mobiles is in my application.It will not run due to ran out of heap memory.
Now i modified my code with respect to decrease the memory leak.Now its working in all mobiles which have the configuration cldc1.1 and midp2.0

Need Emulator (240x400 and 360x640) j2me

I developed the game in j2me. I need emulator for screen 240x400 touch and 360x640 touch. Where should i get ?
Download any of the manufacturers custom SDKs (SonyEricsson, Nokia, LG, Motorola )and find a device with your resolution
PS: It may be difficult as many of them moved to Android or other technologies

Resources