Android

Android Parse – Pininbackground not working

I am using subclass concept of parse. I created a class as follows – @ParseClassName(“ClassNameOnParse”) public class MyClass extends ParseObject { public String getUserId() { return getString(“userId”); } public String getBody() { return getString(“body”); } public void setUserId(String userId) { put(“userId”, userId); } public void setBody(String body) { put(“body”, body); } } and on my broadcast receiver i want to…
Read more

Google Play Services change my style (more precisely remove)

After I added Google Play Service to build.gradle file, my CheckBox lost customized style and icon on ActionBar has been changed (now I have arrow). <CheckBox android:id=”@+id/login_cb_remember” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:layout_marginTop=”10dp” android:text=”Remember me” android:checked=”false” /> Manifest: <application android:allowBackup=”true” android:label=”@string/app_name” android:theme=”@style/AppTheme” android:icon=”@mipmap/ic_launcher”> style.xml: <resources xmlns:tools=”http://schemas.android.com/tools” xmlns:android=”http://schemas.android.com/apk/res/android”> <style name=”AppTheme” parent=”Theme.AppCompat.Light.DarkActionBar”> <item name=”android:textColor”>#232323</item> <item name=”android:checkboxStyle”>@style/CheckBoxAppTheme</item> </style> </resources> style_apptheme.xml <resources xmlns:android=”http://schemas.android.com/apk/res/android”> <style name=”CheckBoxAppTheme” parent=”android:Widget.CompoundButton.CheckBox”> <item…
Read more

Transparent Service with a WindowManager

I am developing an app that will have an overlay layout on the phone’s screen (like Facebook messenger app notification). So I have a service running that creates a window manager and add views to it and it is working. However, when the user swipes down his notification bar, the view is no longer visible. I know that this is…
Read more

what the cause of this : The method openInputStream(Uri) in the type ContentResolver is not applicable for the arguments (InputStream)

how to solve this error The method openInputStream(Uri) in the type ContentResolver is not applicable for the arguments (InputStream) this is code Intent intent = getIntent(); String image_path= intent.getStringExtra(“imagePath”); InputStream in = getContentResolver().openInputStream(Uri.parse(image_path)); Bitmap bm = BitmapFactory.decodeStream(getContentResolver().openInputStream(in)); image.setImageBitmap(bm); Source: android

Cannot get my location using the emulataor

I am trying to develop a Google Map application. The demo application works fine on a real device but fails on the emulator. the logcat output is as follows: java.lang.RuntimeException: Unable to start activity ComponentInfo{il.co.talkie.mapdemo/il.co.talkie.mapdemo.MapDemoActivity}: java.lang.SecurityException: “passive” location provider requires ACCESS_FINE_LOCATION permission. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at…
Read more

android Custom Keyboard Third party application

I am making a third party keyboard in java.I have done with all key but i also want to add a edit text search strip with keyboard for searching a data.Whenever we open our keyboard by using any application than search strip will always come up with keyboard.How can i achieve this? Source: android

Error:duplicate files during packaging of APK in android studio

when i try to run my app i faced unknown of error like this:-Error:duplicate files during packaging of APK D:andriod AppJsonArrayappbuildoutputsapkapp-debug-unaligned.apk. and one of another problem come in like this:-Error:Execution failed for task ‘:app:packageDebug’. Duplicate files copied in APK META-INF/LICENSE.txt File 1: D:andriod AppJsonArrayapplibscommons-logging-1.2.jar File 2: D:andriod AppJsonArrayapplibscommons-codec-1.9.jar apply plugin: ‘com.android.application’android { compileSdkVersion 23 buildToolsVersion “22.0.1” defaultConfig { applicationId “android.catalyst.com.jsonarray”…
Read more

read NFC cards with acr 1252u on Android

We have a ACR 1252u nfc card reader. We want to read / write ncf cards on Android with this device. The problem is that this device is not seen as a NCF device but as an USB device instead. Therefore native Android NFC can not be used. Currently we are able to detect the device and to trigger an…
Read more

Adjust Pan not working in 5.1 and with appcompat

I have provided in the manifest android:windowSoftInputMode=”adjustResize|stateVisible|stateAlwaysHidden” /> but it’s not working. In my app theme I have Theme.AppCompat.Light.NoActionBar Whose parent is <style name=”Theme.AppCompat.Light.NoActionBar”> <item name=”windowActionBar”>false</item> <item name=”windowNoTitle”>true</item> </style> I dont know why adjustpan is not working but what I got is due to window fullscreen. I have already tried android:fitsSystemWindows=”true” in the root of my xml but no effect,…
Read more

Searching for apps published in app stores (android, ios, …) and build with openUI5

Searching for openUI5 ios app or similar lead to some tutorials but I actually wanted to see some apps in action. If you know the technology (cordova…) how the openUI5 apps are build. This information would also be very helpful. Even better if the same app would have been published on multiple platform – so that one can compare the…
Read more