Category "android"

How to draw rounded rectangle in Android UI?

I need to draw a rounded rectangle in the Android UI. Having the same rounded rectangle for TextView and EditText would also be helpful.

Firebase Project Results in "Auth/network-request-failed" error on login

I'm running into a strange problem with my Cordova Project that uses Firebase. It works perfectly in browser, but when I run my app on an emulator or phone (And

Register device id directly with Amazon SNS

I am using the Amazon Web Service to send push notifications directly to a device. After I install the app I get the device id, that I need to manually add to t

Update an image to a view using Layoutinflater

ImageView image= (ImageView)getLayoutInflater().inflate(R.layout.tab1,null).findViewById(R.id.imageView1); Bitmap thumbnail = (Bitmap)data.getExtras().get("da

How to set corner radius to imageview

I want to set corner radius to imageview and control the radius on seekbar. As the seekbar progresses the corner radius should increase and vice-versa. Currentl

using a graphical editor/ide to develop a project on Android running Termux

I'm developing on Android making use of Termux to simulate a linux box with webserver/database server etc. I can use Vi or Nano to edit a laravel/vuejs project

Java equivalent of #ifdef that allows non-compilable code

Is it possible in Java to do a sort of #ifdef thing, like in C/C++? Example: class Test { public static final boolean ANDROID = false; public Test()

How to remove ImageButton's standard background image?

In ImageButton I want to remove the standard button background image. In http://developer.android.com it is said, that one must define his\her own background im

How to remove ImageButton's standard background image?

In ImageButton I want to remove the standard button background image. In http://developer.android.com it is said, that one must define his\her own background im

Kotlin: return a value on button click

I'm just starting out on learning Kotlin, and I'm currently making a simple Quiz application for Android. The user can choose an answer with four buttons which

Android: how to hide ActionBar on certain activities

I've developed a simple demo application with a splash screen a map and some regular screens. I have an action bar at the top that contains a logo. It all look

How to mock location without enabling setting

I am looking for a way to be able to mock location without needing to use ACCESS_MOCK_LOCATION. I know that I need to have root, move app to the system. But whe

Check if AlarmManager exists always returning false

I want to show a daily notification with helping of AlarmManager. It was working properly until I tried to make it persistent after reboot I create the Alarm

How to handle back button in activity

How to handle a back button in an activity? I have some buttons. If I click one of the button it's redirecting to the buttons which I required. It's working fin

Flutter - How to download files in WebView?

I am using flutter_webview_plugin: ^0.3.8 but I have the same problem with webview_flutter: ^0.3.13. In webview, I want to make use of a website which triggers

How can I add only the new items of the JSON API without duplicating the existed items?

I want to make an auto refreshing system for my android application. I use a JSON API in order to get the posts. Here is what I did: handler.postDelayed( runnab

Samsung: Provider for ContactDirectory not supported

I did some tested related to the providers. My goal is to display a contact name stored in my app when you receive a call from this number that is not present o

Android Cover Flow without Gallery

I saw many examples of cover flow implements in Android, but all extends Gallery, but Gallery is deprecated over 2.2. does anyone have new implements without Ga

Don't navigate to other pages in WebView,disable links and references

I have a webView in Android, and I open a html webpage in it. But it's full of links and images, and when I click one of them, it loads in my webview. I want to

Retrieve location from Firebase and map it on Google Map using Android studio

I am working on my tracker system which I will get the live location from GPS Module (hardware) and the data will map it on the google map in android studio. I