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

Force Android Screen Orientation Depending On Screen Size

I am writing an application that allows users to select various things on the screen. On large 10 i… Read more Force Android Screen Orientation Depending On Screen Size

How To Access `this` Inside A Renderrow Of A Listview?

I'm having trouble to run a function for the onPress event inside a row of a ListView. I'm … Read more How To Access `this` Inside A Renderrow Of A Listview?

Onnavigationitemselected Not Working In Navigationview

Please can someone help me with fragments from the navigation drawer, for some reason I can't g… Read more Onnavigationitemselected Not Working In Navigationview

National Letter Selector Doesn't Appear

What I had to do was to implement a text input able to color letters green or red. My piece of code… Read more National Letter Selector Doesn't Appear

Why "cocos Compile -p Android" Gives "the Android Command Is No Longer Available." Error

I am working on a cocos2d-x project. i always compile android project using cocos command cocos com… Read more Why "cocos Compile -p Android" Gives "the Android Command Is No Longer Available." Error

Espresso Test Blocked With Background Thread. Application Not Idle Exception: "appnotidleexception."

My android espresso unit test blocked due to some background thread not idle. How can i figure out … Read more Espresso Test Blocked With Background Thread. Application Not Idle Exception: "appnotidleexception."

What Does This Logcat Error Message Mean?

Hello stackoverflow Community, I'm new to android and i wonder what this error message means: 1… Read more What Does This Logcat Error Message Mean?

How To Use Onactivityresult Method From Other Than Activity Class

I am creating an app where i need to find current location of user . So here I would like to do a … Read more How To Use Onactivityresult Method From Other Than Activity Class

Get Country Code Based On User's Current Location Android

I have already tried out the following code to get country code name TelephonyManager tm = (Telepho… Read more Get Country Code Based On User's Current Location Android

Relationship In Android Parse.com

Please I really need your help, I'm implementing an app with tagging feature just like twitter.… Read more Relationship In Android Parse.com

Is It Possible To Resize The Canvas In Android?

[android] I have a LinearLayout which contains 2 views, 1st is imageView and th 2nd one have canvas… Read more Is It Possible To Resize The Canvas In Android?

Firebase Realtime Database : Recycler View Not Populating

My recycler view opens, shows a black screen for some secs and then returns back to my login activi… Read more Firebase Realtime Database : Recycler View Not Populating

Not Opening The New Activity After Clicking On The Notification Android

Here i want to open a new activity class called View. Once after click on the generated notificatio… Read more Not Opening The New Activity After Clicking On The Notification Android

How To Parse Web Page In Android

i have a web url http://m.cricbuzz.com/cricket-match/live-scores which page source is ENG vs PAK, S… Read more How To Parse Web Page In Android

Intent Filter For Multiple Mime-types

My question is how to properly specify an Activity handling different MIME-types in Manifest file. … Read more Intent Filter For Multiple Mime-types

Avoiding The "no Eglconfig Found!" Error

one of my users are reporting this error for my game. i am using andengine as my engine. Here is th… Read more Avoiding The "no Eglconfig Found!" Error

Modifying Androidmanifest.template.xml For Targetsdkversion 26 Prevents Write Access To Picture Gallery

This is a companion question related to this issue: Delphi - New apps on Google Play must target An… Read more Modifying Androidmanifest.template.xml For Targetsdkversion 26 Prevents Write Access To Picture Gallery

How Can I Dismiss Progressdialog In Asynctask

I am using a ProgressDialog to be shown while my background process goes on, but after background p… Read more How Can I Dismiss Progressdialog In Asynctask

Sorting Dates In Sqlite Database?

I have developed an App ..For that I have a database and it has many tables. One of the table has … Read more Sorting Dates In Sqlite Database?

Image Content Can Not Read During Zoom

When i zoom image by pinch , i can not read the content of image . This is my code:- if(!(it.isEmpt… Read more Image Content Can Not Read During Zoom

Show Progressdialog Between Dialogs

I'm trying to mock up a USSD interaction in Android by creating a series of dialog menus that y… Read more Show Progressdialog Between Dialogs

Do Android Gcm Registration Ids Always Start With "apa"?

In my app I have different devices registered and for the Android ones I am storing the GCM Registr… Read more Do Android Gcm Registration Ids Always Start With "apa"?

Cannot Generate Cloud Backend In Android Studio

I am trying to generate a cloud backend using the 'google cloud tool' in android studio, ho… Read more Cannot Generate Cloud Backend In Android Studio

Open Html File From Assets Folder

I am trying to open local html file in my Android application. The file is located under my assets … Read more Open Html File From Assets Folder

Alternate Chat Bubble Widths

I am developing a chat type application. I am using two different nine patches for chat bubble main… Read more Alternate Chat Bubble Widths

Disable The Search Button In Android

I have a dialog in an Android app that I don't want the user to be able to cancel. Using .setC… Read more Disable The Search Button In Android

Cannot Compile A Simple Google Api Android App With Eclipse

I am trying to build a simple OAuth Client for Android in Eclipse. I followed the instructions fro… Read more Cannot Compile A Simple Google Api Android App With Eclipse

How To Display Canvas In Current Activity Image View In Android

public class AndroidBarcodeView extends ImageView { public AndroidBarcodeView(Context context)… Read more How To Display Canvas In Current Activity Image View In Android

Ibm Mobilefirst V8 Trying To Obtain Token On Android Cordova App After Successful Login Challenge Handler

App: cordova application platform :android mfp server :8.0.0.00-20170124-152449 mfp-plugin :8… Read more Ibm Mobilefirst V8 Trying To Obtain Token On Android Cordova App After Successful Login Challenge Handler

Overrinding Draw() In Customized Mapview In Google Maps Android Api V2

Very simple question : since MapView inherits from View, is it possible to override draw() to draw … Read more Overrinding Draw() In Customized Mapview In Google Maps Android Api V2

How To Change Image Source While Clicking On The Listview In Xamarin.forms?

I have a ListView in which I have a image and a Text inside a viewcell, What My requirement is to c… Read more How To Change Image Source While Clicking On The Listview In Xamarin.forms?

Clear The Canvas Area

I have made a custom view which is refereed from xml layout. I added a button for clearing the view… Read more Clear The Canvas Area

Android Chronometer Start With Defined Value

I have an application in which I'm displaying a chronometer to the user for what he's doing… Read more Android Chronometer Start With Defined Value

Getresources() From Static Method, Without Context

I'm working on a SQLiteOpenHelper from which I'll read databases via static methods (since … Read more Getresources() From Static Method, Without Context

Android: Videoview History/bookmark

I have a videoplayer application. Suppose the user has played a video and after playing half of the… Read more Android: Videoview History/bookmark

How To Identify If Device Token Is For Android Or Ios?

I store Android and iOS device tokens in DB. Following are few examples of device tokens getting sa… Read more How To Identify If Device Token Is For Android Or Ios?

Changing Osmdroid's Mylocationoverlay Marker

I want to change the marker in the MyLocationOverlay. What I've tried so far is subclassing OSM… Read more Changing Osmdroid's Mylocationoverlay Marker

How To Popup Alarm Message Without Any Activity In Background?

In my android i app i can alarm functionality and as well logout functionality. After setting my al… Read more How To Popup Alarm Message Without Any Activity In Background?

Broadcastreceiver Doesn't Receive Anything After Being Force Killed Then Restarted

I have a BroadcastReceiver that I register dynamically in the onCreate method for my Service. It r… Read more Broadcastreceiver Doesn't Receive Anything After Being Force Killed Then Restarted

Android Multiple Instances

I am in a problem with the notifications in android, whenever I click the notification evrytime I h… Read more Android Multiple Instances

How To Load The Application In Web-view In A Specific Browser Like Chrome Or Firefox In Android

I am new to Android, i am doing an application where i need to load our existing application in Web… Read more How To Load The Application In Web-view In A Specific Browser Like Chrome Or Firefox In Android

Monodroid - Passing Data To Listview According To Gref Limit

C#, Mono for Android. I need to output a large portion of combined data into ListView. To achieve t… Read more Monodroid - Passing Data To Listview According To Gref Limit

Android C2dm : Duplicate Message To The Same Device And App

I'm wondering if anyone has faced this issue with Google C2DM? This is the scenario I am faced … Read more Android C2dm : Duplicate Message To The Same Device And App

How Can I Get My Android App With Use Branch.io Deeplinking And Support Minimize/resume The App?

I am using Branch.io deeplinking in my Android app, and for the most part, it works well under most… Read more How Can I Get My Android App With Use Branch.io Deeplinking And Support Minimize/resume The App?

Get Current Id Of Image Which Is Showing On View Pager

So I made view pager for my app, but I have a small problem. I can't figure out how to get ID f… Read more Get Current Id Of Image Which Is Showing On View Pager

Changing A Buttons Background Image Through Using A Random Array

OK so I'm trying to get this button on its second click to display an image. I have 8 images fo… Read more Changing A Buttons Background Image Through Using A Random Array

How To Implement A Search For Location In Android?

Basically, on button click, I want the user to input a keyword or an exact location name, and in a … Read more How To Implement A Search For Location In Android?

Logcat Error: App Crashes And Does Not Run. Error At Setcontentview As Per Logcat

I'm developing a basic equation balancing app and am new to android dev. The app does not run o… Read more Logcat Error: App Crashes And Does Not Run. Error At Setcontentview As Per Logcat

Dynamically Create An Activity

I want to create an activity dynamically. Something like: Activity a = new Activity(); Is it possi… Read more Dynamically Create An Activity

How To Get Device Email Address In Delphi 10

I'm trying to get my device email address, I used Java2OP to convert AccountManager class to ob… Read more How To Get Device Email Address In Delphi 10

How Can I Start / Disable Background Monitoring For Beacons At Runtime With Altbeacon Library For Android?

the AltBeacon documentation say I need to initialize the library in the Application onCreate() for … Read more How Can I Start / Disable Background Monitoring For Beacons At Runtime With Altbeacon Library For Android?

Android - Detect Touch Pressure On Capacitive Touch Screen?

I've heard of: MotionEvent e; float press = e.getPressure(...); But this only returns 0 for no… Read more Android - Detect Touch Pressure On Capacitive Touch Screen?

How To Implement Image With Text In Menu Options In Android

i am trying so hard to implement customized menu option with both image and text in menu item list … Read more How To Implement Image With Text In Menu Options In Android

Attaching Debugger - Android Problem

I am new to android application development. Whenever I run a new app, after it gets installed and … Read more Attaching Debugger - Android Problem

Eclipse In Adt-bundle For Android Development Freezes By Auto Complete

To develop android app I downloaded the adt-bundle from the following location: dl.google.com/andro… Read more Eclipse In Adt-bundle For Android Development Freezes By Auto Complete

Bottomnavigation Menu With Jetpack Navigation Does Not Navigate

I have a strange problem regarding a BottomNavigationBar which I could not solve altough having spe… Read more Bottomnavigation Menu With Jetpack Navigation Does Not Navigate

[java]android Videoview Works Only With Local Files

I tried to play a video from a url, but only local videos works in my code. If I try to open a vide… Read more [java]android Videoview Works Only With Local Files

What Is The Best Way To Check The Existence Of Every Child In One Node?

FirebaseDatabase.getInstance().getReference('Block').addListenerForSingleValueEvent(new Val… Read more What Is The Best Way To Check The Existence Of Every Child In One Node?

Aligning Left/center/right Linearlayout - Android

This should be pretty easy, but since I am new in android development I am asking. I basicaly want … Read more Aligning Left/center/right Linearlayout - Android

Android.content.context.getsystemservice(java.lang.string)' On A Null Object Reference

when click button on 'listview', I want to use Push Notification. But there is Error.. … Read more Android.content.context.getsystemservice(java.lang.string)' On A Null Object Reference

Communication Between Two Apps Using Emulator As Server And Client

I have a problem. I want to make an emulator on my computer as a server. Then I want to communicate… Read more Communication Between Two Apps Using Emulator As Server And Client

Android Studio Xml Error "corresponding Method Handler Not Found" On Onclick

Why do I get error 'Corresponding method handler not found' on the XML onClick line, after … Read more Android Studio Xml Error "corresponding Method Handler Not Found" On Onclick

Easy Way To Do Post On Httpurlconnection?

what is the easiest way to do POST on HTTPURLCONNECTION in AsyncTask on android? I just want to pos… Read more Easy Way To Do Post On Httpurlconnection?

Android: Uploading Image

I am currently trying to upload an image onto the PHP server through Android. Below are the codes: … Read more Android: Uploading Image

Android Application Only For 10" Tablets Not Latest Phones

How can I limit my app to be only for tablets? E.g. how to support Galaxy Tab but not Galaxy SIII ?… Read more Android Application Only For 10" Tablets Not Latest Phones

What Is The Default Account Type / Name For Contacts On Android Contact Application?

I would like to read contacts from ContactsContract API which belongs only to Phone / SIM and would… Read more What Is The Default Account Type / Name For Contacts On Android Contact Application?