how to fix eror app\build\intermediates\res\merged\debug\values-v24\values-v24.xml

I get an error when I build a project. Error: Error:Execution failed for task ‘:app:processDebugResources’. > com.android.ide.common.process.ProcessException: Failed to execute aapt C:\Users\MR Maleki\Desktop\WhoIsBetter2\app\build\intermediates\res\merged\debug\values-v24\values-v24.xml Error:(4) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Colored’. Error:(3) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Borderless.Colored’. Error:(3) Error […]

Get Width and Height of one row in RecycleView – Android

I’m creating RecycleView with some items. So I need to get the width and height of the one row of RecycleView Here I’m creating RecycleView: RecyclerView rvSmetki = (RecyclerView) findViewById(R.id.rvArtikli); rvSmetki.setLayoutManager(new GridLayoutManager(this, 3);); rvSmetki.setAdapter(new ArtikliAdapter(this)); // Here I want to get width and height…. And this is my ArtikliAdapter: public class ArtikliAdapter extends RecyclerView.Adapter<ArtikliAdapter.ViewHolder> { […]

Update selected state of navigation drawer after back press

Whats the proper way to handle the selected state of the navigation drawer after back press? I have a navigation drawer with n entries (in a listview) like the SDK sample in Android Studio. When i click on the navigation drawer entries i want them to be added to the back stack, so i can […]

How to make text fit to screen (text-wrap) in WebView with KitKat

I’m having an issue in my WebView with Android 4.4. Before KitKat, text was fitting automatically with all devices resolutions in webviews. But today it’s not fitting automatically anymore with 4.4. I think it’s because of the WebView’s update based on Chromium with KitKat. Here are 2 screenshots of the same page : One from […]

SecurityException with grantUriPermission when sharing a file with FileProvider

I have two applications. I’m trying to share a file from application A to application B using a FileProvider. Application A calls the insert method on a ContentProvider in Application B to insert a record. The data inserted includes the Uri to the file I want to share from App A. The ContentProvider in App […]

Android httpclient file upload data corruption and timeout issues

i’m having issues with uploading images in android. i’m using apache httpmime 4.1 lib the code is like this: MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE); reqEntity.addPart(“image”, new FileBody(new File(AndorraApplication.getPhotosPath() + “/” + entity.getFileName()), “image/jpeg”)); resp = NetworkUtils.sendHttpRequestMultipart(EXPORT_PHOTOS_URI, reqEntity); NetworkUtils class: public class NetworkUtils { public static final int REGISTRATION_TIMEOUT = 3 * 1000; public static final […]

Getting NoClassDefFoundError: android.os.AsyncTask

This problem has been bothering me for a bit and I cannot find a satisfactory solution. Many times (not always) in the creation of a specific object on the Android emulator I get NoClassDefFoundError: android.os.AsynchTask. I have tried many approaches removing and re-adding external libraries multiple times, wiping the emulator, restarting IntelliJ (worked once but […]

Android: Manage multiple push notification in device of an app

I am developing an application in which i implemented Push notification functionality. My code of onMessage – GCMIntentService.java is: @Override protected void onMessage(Context context, Intent data) { String message = data.getExtras().getString(“message”); displayMessage(context, message); generateNotification(context, message); } And code of generateNotification – private static void generateNotification(Context context, String message) { int icon = R.drawable.ic_launcher; long when […]

How can I change the background color of a spinner popup?

I’m trying to set the background color of a spinner popup but everything I’ve tried didn’t work properly. This is the spinner control: <Spinner android:id=”@+id/myspinner” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:background=”@null” android:drawSelectorOnTop=”true” /> When I click on it, it shows a popup with a white background, and I want to change that. The xml line wich I use […]

In App Billing getPrice() Android

I have successfully implemented in app billing into my app which all works fine. I am now trying to retrieve the price of items (set in developer console) so that I can reflect these prices within my app without hard-coding values. This code quite obviously only gathers prices of the items already purchased through the […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.