Android RSA decryption (fails) / server-side encryption (openssl_public_encrypt)

Android
I am trying to decrypt a string in my android application using RSA keys generated on my device. The encryption is done by a php service, using the pu...
3 years ago

Get the ID of a MenuItem in a toolbar

Android
I have a "menu" resource "menu_test" with the following code: <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.and...
3 years ago

How to avoid multiple button click at same time in android?

Android
I'm using two button in view. While clicking two button simultaneously it will goes to different activity at a time. How to avoid this? I have tried ...
3 years ago

ScrollView adds large space at the bottom

Android
My main Activity has a number of buttons, that fit below each other on a large Tablet screen, but not on a smaller Phone screen. I added a ScrollView,...
3 years ago

How do I return an int from EditText? (Android)

Android
Basically, I want an EditText in Android where I can have an integer value entered into. Perhaps there is a more appropriate object than EditText for ...
3 years ago

Android abstract classes bad magic nullpointer

Android
I wrote adapter for RecycledView which uses 2 types of items. So there are three classes for ViewHolder: Base class and 2 it's implementations. publi...
3 years ago

Make ImageView with Round Corner Using picasso

Android
I know there are lots of link available to make ImageView Round Corner. But I'm Using Picasso Library for Image Loading.. I refer the link to get resu...
3 years ago

Understanding scope in a Java inner class

Android
In an Android project, I am using the code below. I get the error: variable tts might not have been initialized. If I change the place where the varia...
3 years ago

How can I use a Firebase Query to return a boolean?

Android
I am trying to make a method called sendRegisterUserMessage() that sends a User object to the Firebase db if the User does not already exist within th...
3 years ago

How to implement a callback using reflection?

Android
I have this constructor in a jar: public ClientListFragment(String[] values, OnActionListener onActionListener) { this.values = values; this....
3 years ago

Check if a file is an image or a video

Android
Is there a way to check if the file I'm loading as a URI is a image or a video in android? I'm trying to dynamically loaded both images and videos int...
3 years ago

OnClickListener for CardView?

Android
How do I attach an OnClickListener to a CardView? I want every single card to have a different action when clicked. I have a RecyclerView that has a ...
3 years ago

Can I use Glide to have CircleImage with overlapping icon like in Facebook messenger?

Android
I'm searching for a library that could help me make my cricular image view's like in Facebook Messenger (with z blue Messenger icon or grey Facebook i...
3 years ago

Show list of opening tab in Android Studio

Android
My Android Studio is missing list of opening tab like this image: Do anyone know how to show it again? Now my AS just show like this: ...
3 years ago

Creating custom notification with xamarin.android

Android
I have been trying to make a fully custom notification with Xamarin.android. My project targets min API of 14, so expended notification are supported....
3 years ago

How can I add to array my custom class and pass Intent

Android
I simply want to add array to my custom class like "Dog" class to array and put it to Intent after that I want to get that extras using getIntent().ge...
3 years ago

Animated Views move outside of my layout

Android
I have a ScrollView which contains several RelativeLayouts and LinearLayouts like this: <ScrollView xmlns:android="http://schemas.android.com...
3 years ago

Android: center and right alignment inside LinearLayout

Android
I have two Linear Layouts one inside the other. In the second one I have a Switch button, a TextView and a FloatingActionButton. I want to put these 3...
3 years ago

How can I reload an activity from a listview to update information of a database?

Android
I'm trying to implement something like this: I have a main class with a layout from where I get some data from the database and plot it as shown in...
3 years ago

Number of days between two dates not based on time

Android
I save a date and then compare that against the current date using DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss"); i...
3 years ago