Skip to content Skip to sidebar Skip to footer
Showing posts from October, 2024

Nullpointerexception In Recyclerview Espresso Test On Hdpi Device

I have the following test written for RecyclerView @Test fun testHomeActivity_recyclerViewInd… Read more Nullpointerexception In Recyclerview Espresso Test On Hdpi Device

Reproduce Android Monkey Script

I ran the Monkey tool (the tool to perform stress testing on Android application) and I got some sc… Read more Reproduce Android Monkey Script

How To Send Data From Activity To Fragment?(android)

I want to make use of some TextViews(cityField, updatedField) I have in my activity inside my fragm… Read more How To Send Data From Activity To Fragment?(android)

Can't Access Datepicker.validationcallback In My Code

I have a simple DatePickerFragment that extends DialogFragment. I'm wanting to set a validatio… Read more Can't Access Datepicker.validationcallback In My Code

Why Getdrawable() Doesn't Work On Some Android Devices?

I am getting 'nosuchmethod error' on some user's phones (eg. Motorola Razr i) but it wo… Read more Why Getdrawable() Doesn't Work On Some Android Devices?

How To Store And Access Radio Buttons From Shared Preferences?

There are a lot of questions on SO about saving radio buttons state in Shared Preferences but none … Read more How To Store And Access Radio Buttons From Shared Preferences?

Google Nearby Api Background Scan Doesn´t Work After Application Kill

I have kontakt.io beacon and I try to write application for background scanning with nearby API. I … Read more Google Nearby Api Background Scan Doesn´t Work After Application Kill

Convert Human Date (local Time Gmt) To Date

I am working on server and server is sending me date on GMT Local Date like Fri Jun 22 09:29:29 NPT… Read more Convert Human Date (local Time Gmt) To Date

Can Android Animation Change View's Size

is it possible that change the image size by animation? what I want to achieve is I have an imageVi… Read more Can Android Animation Change View's Size

Onitemclick Two Listviews Problem

I have two listviews in the same activity. They both trigger this: public void onItemClick(AdapterV… Read more Onitemclick Two Listviews Problem

How To Use Onwindowfocuschanged() Method?

I am confused in how to trigger an event when the activity is changed. One thing that I know is usi… Read more How To Use Onwindowfocuschanged() Method?

Delete Element In Firebase With Android

I have a firebase data structure which looks like this: |---employees |----KJSXd4ScEmJ… Read more Delete Element In Firebase With Android

Android Urlconnection Does Only Work In Wifi, Not With 3g

I have written an app which uses an URLConnection to get a .html file. Everything works fine over … Read more Android Urlconnection Does Only Work In Wifi, Not With 3g

Android How To Terminate Functionand Return To Asyntask After Getting Spesific Value

how to terminate function at spesific point i use break but its not work help me please i want when… Read more Android How To Terminate Functionand Return To Asyntask After Getting Spesific Value

Slow Aes Decryption In Android

I tried to decrypt a 4.2 MB .dcf file using AES 128 bit key, but it took 33 seconds to decrypt (on … Read more Slow Aes Decryption In Android

Android.widget.listview Is Not A View That Can Be Bounds By This Simplecursoradapter

Im trying to get some data from bbdd with this method /********************************************… Read more Android.widget.listview Is Not A View That Can Be Bounds By This Simplecursoradapter

Change Layouts, But Not Restart Activity On My Android App

I want my app to go from portrait to landscape and change from layout1 to layout2 but not restart t… Read more Change Layouts, But Not Restart Activity On My Android App

Convert Datasnapshot To Class Object

I'm newbie to Firebase Database and I'm following Google's Docs to retrive data from my… Read more Convert Datasnapshot To Class Object

Android:how To Write To Sql Database

I have been trying to follow the newBoston tutorial and find myself with a runtime error when I cli… Read more Android:how To Write To Sql Database

Edittext In Listview Repeats The Value

I have three textviews and one edit text in the list. when I entered any value in the edittext, the… Read more Edittext In Listview Repeats The Value

Difference Between Firebase App Indexing And App Links

I am working on one project in that, I need to implement something so that when user search for our… Read more Difference Between Firebase App Indexing And App Links

How To Check Volley Request Queue Is Empty?and Request Is Finished?

How to check Volley Request Queue is empty?And Request is finished? After finishing of all request… Read more How To Check Volley Request Queue Is Empty?and Request Is Finished?

Drawing Curved Lines In Andengine

I am new to AndEngine and very happy that it's very easy and exciting thing to do. Unfortunatel… Read more Drawing Curved Lines In Andengine

How To Deal With Nested Json Objects In Android

How to read below json in android? Please provide solution using JSONObject jsonObject; I want to … Read more How To Deal With Nested Json Objects In Android

How To Get Android Tcp Trace

I am looking for an answer to the last questions in the quote This is in response to this thread: … Read more How To Get Android Tcp Trace

Gradle Failed To Build With Error Multiple Dex Files Define

Gradle failed to build after I added google play services gradle Dependencies I've tried both w… Read more Gradle Failed To Build With Error Multiple Dex Files Define

Can't Get Parent Position From Convert View

I have a listView that currently displays the names of images along with a thumb of the image besid… Read more Can't Get Parent Position From Convert View

How To Programmatically Create An Android Theme Style?

There are lots of docs and tutorials on creating or customising an Android theme style via XML, but… Read more How To Programmatically Create An Android Theme Style?

Google Analytics V4 - Data Not Showing On Dashboard

I've been working on integrating Google Analytics v4 into my application. I've followed th… Read more Google Analytics V4 - Data Not Showing On Dashboard

Android Gradient Drawable Color Change

I have a shape drawable in the drawable folder. Here is XML structure: Read more Android Gradient Drawable Color Change

Textwatcher Events Are Being Fired Multiple Times

I have an annoying problem with TextWatcher. i've been searching the web but couldnt find anyth… Read more Textwatcher Events Are Being Fired Multiple Times

Textview Casting Error:- Android.widget.linearlayout Cannot Be Cast To Android.widget.textview

please help to solve this problem , in this i am trying to get the list of countries in the spinner… Read more Textview Casting Error:- Android.widget.linearlayout Cannot Be Cast To Android.widget.textview

Sending Large Image In Chunks

I am sending images from my android client to java jersey restful service and I succeded in doing t… Read more Sending Large Image In Chunks

Android Button Background Selector

I want to use the following selector for button: Solution 1: I find it best to separate the state … Read more Android Button Background Selector

Android - Interacting With Ussd Dialog Programmatically

Is there a way for an Android app to interact with the USSD dialog programmatically? The app runs o… Read more Android - Interacting With Ussd Dialog Programmatically

Copying File From A Samba Drive To An Android Sdcard Directory

I am new to Android and Samba. I am trying to use the JCIFS copy. To method to copy a file from a S… Read more Copying File From A Samba Drive To An Android Sdcard Directory

Android.database.cursorwindowallocationexception: Cursor Window Allocation Of 2048 Kb Failed Even After Closing Cursor

There are many questions on SO about CursorWindowAllocatoinException: SQLite Android Database Curs… Read more Android.database.cursorwindowallocationexception: Cursor Window Allocation Of 2048 Kb Failed Even After Closing Cursor

Add User Input To Acra Crash Report

Basically, this is what I'm trying to accomplish and nothing I've tried seems to work. Whe… Read more Add User Input To Acra Crash Report

How To Save The Layout View As Image Or Pdf To Sd Card In Android?

In my application, I have a view with customer details, I want to save that view as image or PDF to… Read more How To Save The Layout View As Image Or Pdf To Sd Card In Android?

Android Management Api: List Of Enterprises/policies?

This is driving me nuts. I've successfully followed the Android Management API Quickstart to cr… Read more Android Management Api: List Of Enterprises/policies?

Quickblox-android Jar Couldn't Find

In this link http://quickblox.com/developers/Android_XMPP_Chat_Sample they have mentioned /jars/qui… Read more Quickblox-android Jar Couldn't Find

How To Connect Android With Oracle Database?

I am new to android development. I want to develop a android application that update data from a or… Read more How To Connect Android With Oracle Database?

Use A Viewpager / Pageradapter To Change A String

I have a JSON request which gets a response from YouTube: @Override protected Void doInBackgroun… Read more Use A Viewpager / Pageradapter To Change A String

Instr() Function Sqlite For Android?

I wanna do the following on my existing sqlite database on android which is kind a built like that … Read more Instr() Function Sqlite For Android?

Is There A Way To Use Proguard With Monodroid?

Our development team just (mostly) finished an Android app using MonoDroid in Visual Studio. Becau… Read more Is There A Way To Use Proguard With Monodroid?

Grouping Switches Inside Recyclerview

I am currently facing difficulty trying to group the switches inside recylerView. I have attached … Read more Grouping Switches Inside Recyclerview

Getting Method Not Found Settime(long) In Alarmmanager When Tried To Set Time And Date In Android System Time

I'm trying to set the system time and date on an Android device. I thought the following code w… Read more Getting Method Not Found Settime(long) In Alarmmanager When Tried To Set Time And Date In Android System Time

Phonegap Filewriter Append Issue

Trying to use phonegap 0.9.6 file storage. The code works fine while I am writing a file but does n… Read more Phonegap Filewriter Append Issue

Drawable Folder Different Screen Resolution Issues

I am having the following specification images, xlarge screens are at least 960dp x 720dp large scr… Read more Drawable Folder Different Screen Resolution Issues

How Can I Start Layoutanimation When(before) Leaving An Activity

I have a LinearLayout View in my activity. When I press back button I want LinearLayout's child… Read more How Can I Start Layoutanimation When(before) Leaving An Activity

Android Location Client's Provdier

I am able to get location update or current location using LocationClient and LocationRequest. But … Read more Android Location Client's Provdier

Android Spinner Crashing When Clicked On

I have a spinner on my page, which is populated using an arrayAdapter. When i launch my app everyth… Read more Android Spinner Crashing When Clicked On

Is It Possible To Use A String To Call A File In Raw In Java?

Is it possible to create a string like public String pos1='bloodstone'; And then use it in… Read more Is It Possible To Use A String To Call A File In Raw In Java?

How To Capture Finger Movement Direction In Android Phone?

I want to capture the finger movement direction on Android touch phone. If a user slides his finger… Read more How To Capture Finger Movement Direction In Android Phone?

Android, Vertical Alignment Of Button In Linear Layout

I'm trying to create a layout like the picture below, adaptive to screen size. Here is the my … Read more Android, Vertical Alignment Of Button In Linear Layout

Using Socket() In Android Ndk

I have a question about using the following line in a native c program: #include #include void t… Read more Using Socket() In Android Ndk

Build Fails When Targeting Android Q But Works At Api 28 With "failed To Transform File 'android.jar' To Match Attributes"

I've got a legacy app I'm maintaining that builds fine when targeting API 28 but fails at Q… Read more Build Fails When Targeting Android Q But Works At Api 28 With "failed To Transform File 'android.jar' To Match Attributes"

Error 403 With Google Translate V2 Api Access

I am trying to access Google's Translate services from within an Android app. However, each tim… Read more Error 403 With Google Translate V2 Api Access

Is There Any Way To Get Gpu Information?

I know how to get CPU info inside /proc/, but is there any way to get GPU info? Something like the … Read more Is There Any Way To Get Gpu Information?

Open Google Maps App From A Browser With Default Start Location On Android And Iphone

I have a mobile site and I have a link that can open the google maps native app on iphone and andro… Read more Open Google Maps App From A Browser With Default Start Location On Android And Iphone

Reduce File Size Of An Image

I have taken a picture with the android camera. The result is an byte array. I save it by writing i… Read more Reduce File Size Of An Image

How To Sort Notification Channels In System Settings On Android O

I have preset order of notification channels, that can be change. How to change order of notificati… Read more How To Sort Notification Channels In System Settings On Android O

Android - Getting The Current Rotation Of A Matrix

I need to be able to set the rotation of a matrix rather than add to it. I believe the only way to … Read more Android - Getting The Current Rotation Of A Matrix

Change Custom Actionbar Title

I'm using a custom layout to center the title of the actiobar. ActionBar actionBar = getActi… Read more Change Custom Actionbar Title

Multiple Apk Support

I am working on application with multiple types choices and every type has different UI, content an… Read more Multiple Apk Support

In Espresso, How Can I Test That Textview Shows Only Two Lines

I have a TextView which has the following text: 'line1.\nline2.\n line3'. I set the TextVie… Read more In Espresso, How Can I Test That Textview Shows Only Two Lines