i am trying to get message content. the code works in android 2.3.6 but crashes in 4.3 - android-contentresolver

I am trying to get the content of a message. The following code works in Android 2.3.6 but crashes in 4.3.
Uri uriSms = Uri.parse("content://sms/inbox");
receivedSmsCursor = getContentResolver().query(uriSms, null, "date>?",
new String[]{String.valueOf(today.getTimeInMillis())}, strOrder);

Related

Occasional java.io.IOException: Operation not permitted only on Android 7.0 by DatagramSocket.send()

The following code works fine virtually 100% time on all Android device Android 7.0:
DatagramSocket clientSocket = new DatagramSocket();
clientSocket.setSoTimeout(4000);
clientSocket.setReuseAddress(true);
clientSocket.setBroadcast(true);
...
DatagramPacket dpSend = new DatagramPacket(baSendData, baSendData.length, InetAddress.getByName("239.255.255.250"), 3702);
clientSocket.send(dpSend);
On Android 7.0, only on Android 7.0, clientSocket.send(dpSend) generates the following error occasionally. I want to emphasize "occasionally". It works fine most of the time.
I am wondering if anyone could offer any insight of Android 7.0 to shed some light on why the exception happens only on Android 7.0.

Android QR Code Scanning in Smartface 4.5 giving exception

I have developed an application in Smartface 4.4 which has a QR Code Reader in which the QR code are not auto-focusing. So i went to smartface 4.5.0 and tried with the sample code on the website https://www.smartface.io/developer/guides/plugins/codereader/
but got the exception
Can't find Variable SMFImageCode .
Then I tried he Code-reader object and debugged it and I got the following exception.
Please help to get this solved anyone.

unity for mac doesnt have GetGraphicsAPIs

I have this error for compiling source on Android or iOS
UnityEditor.PlayerSettings' does not contain a definition forGetGraphicsAPIs'
Howvere I tried the same code on windows8 unity 5, it works properly.
In short
Unity5Mac Android error
Unity5Mac iOS error
Unity5Mac pc,mac,linux standalone OK
Unity5Win Android OK
Unity5Win iOS OK
Unity5Win pc,mac,linux standalone OK
I have googled GetGraphicsAPIs and check the document about unity5.
Could anyone know some information??

cordova build error: SDK "iphoneos6.0" cannot be located

i developing a html5-App for Android and iOS. Building for Android and iOS-Simulator works like a charm. But if i want to build the app for iOS-Device the build process stops with following error:
update-ios:
cordova prepare ios
build-ios-xcodebuild:
xcodebuild: error: SDK "iphoneos6.0" cannot be located.
/Users/.../nbproject/build.xml:178: exec returned: 64
For development i using netbeansIDE, xcode 5.1.1 and cordova 3.5.
Also i downloaded the iOS 6.1 sdk and copied into sdk folder of xcode, but that don't work for me. May i have to set an environment variable?
Is there someone, who could give me a hint?
In advance

Android 4.1.2 Unfortunately has stopped

I want to download and parse an XML code from the internet and I have no problems with the version 2.3.3. Everything runs perfect!
But when I start the version 4.1.2 (AVD) I got following error:
Unfortunately, myProject has stopped.
At this line:
HttpResponse httpResponse = httpClient.execute(httpPost)
What is the problem with version 4.1.2?
I searched for hours in the web, but still have no result.