I have an app which is basically get the notification from my own server using Firebase Cloud Messaging service whenever the API is called, strangely when i install it through Android studio RUN menu, which is install the app directly to my device th
This question already has an answer here: Run/install/debug Android applications over Wi-Fi? 19 answers I am debugging USB devices connected to my Android phone, this means I cannot use ADB over a USB connection. How can I connect to adb over WiFi? N
I'm working on a from in android. It has a two EditTexts, one for name and the other for email. I want that when both the fields are blank, the warning should appear on both fields. Not only the "!" mark encircled in red but also the message I t
How can I add ProgressBar to every single item of GridView in Android application? I need to have progress bar in top-right corner of GridView element.You need to create a custom adapter, that inflates a view that contains the ProgressBar. Then durin
My first app crashed on me when trying to create a fragment (single child of activity). It was a NullPointerException on a custom 'ListViewAdapter', stored as a member variable. Through testing I believe that I handle starting and stopping of my frag
I just received an email from Google play stating: Hello, One or more of your apps is running an outdated version of OpenSSL, which has multiple security vulnerabilities. You should update OpenSSL as soon as possible. For more information about the m
I almost lost my mind, I have spent 3 days trying to fix this. I have Windows 7 64 Bits, I have installed the jdk for 32 bits, I have installed the following Android SDK's: 2.3.3, 3.0, 4.1.2 and 4.3. Also I have set the variable ANDROID_SKD to the ri
I'm trying to parse a json file that I have in my raw folder, but seems that I have a issue that I cannot detect what's causing it. Here is the JSON I try to parse: { "data":{ "mainScreen":[ {"id":"1","name&quo
I am developing a new Android app, i have listed out the records. Now need to show the particular record while clicking on the corresponding button. Can somebody help me to share how to create buttons dynamically and assign record id into it? Button
I am just starting with android development through Java (i have only previously used phonegap). I created my first hello world project with a simple form text field and send button, and it won't run. My error log is below: 12-06 20:31:11.482: E/Andr
I am having following code to convert milliseconds to Android Date object. Date dateObj = new Date(milli); But problem is that my milliseconds value is having GMT value added in it before i pass it to Date class, add when i print this date object i c
i made a table layout with 4 columns and rows were added dynamically. i want to sort columns in the table layout according to there respective data. first two column contains images and independent to each other and other two columns contain string d
When I'm running my app through Google Nexus by connecting through USB and trying to connect webservice running on my laptop then I'm getting below error but I'm able to connect to webservie. Please advice. java.net.ConnectException: failed to connec
For some reason, my camera app saves all photos rotated 90 degrees (pictures only look right when taken with camera on landscape mode) I believe onPictureTaken should rotate photos automatically but I read there is a problem with Samsung devices (I h
I have a java web service which i want to use with an android client for that am using ksoap. My web service gives an answer which look like this : java.util.List : "[
[email protected],
[email protected], mob
I am rather new to Android/Java programming and looking for some help with a very, very basic app that I am working with. I am purely building this just to get used to Java coding and building applications for Droids, so bear with me. I have 10 radio
I have this code for reading XML files: try { File fXmlFile = new File(fullFilePath); DocumentBuilderFactory dbFactory = DocumentBuilderFactory .newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(f
I have created an activity with two buttons at the top. One button to show "SMS Logs" and second to show "Call Logs". On clicking "SMS Logs" button, i am dynamically creating textviews and linear layout to show sms logs. On C
I have a custom list EditText. When I clicked the EditText, the custom keyboard shows up. I would like to add next button in custom keyboard. Upon clicking that next button, the next EditText field should have focus. How can I implement next button i
I am using android listview with lazyadapter to show images and textview in list. and when user scrolls to the bottom i am using AsyncTask to add more contents but when i execute AsyncTask it kills the process. here is my code. mainactivity import ja
I believe I'm asking a slightly different take on the perennial question of avoiding code repetition. The setup is fairly standard--a bunch of if statements taking similar actions. Below you'll find a short example. I'm trying to figure out the best
I have a program which uses view flipper I am getting a NullPointerException as follows when the activity is called. I wish to cycle through a set of images as long as the activity is being run. 06-13 18:52:05.358: E/AndroidRuntime(368): Caused by: j
I'm trying to pass two prameters ( fileURL AND fileNAme) from one class to another one,, but I'm getting errors I got, 04-11 17:19:45.510: E/AndroidRuntime(2958): FATAL EXCEPTION: AsyncTask #1 04-11 17:19:45.510: E/AndroidRuntime(2958): java.lang.Run
I am to write a game for android, i have to choose between canvas or opengl for drawing. I have read that canvas doesn´t have a good framerate, but what is good? Imagine you were going to write an angry birds game, would canvas framerate be enough?I
I'd like to watch out for the amount of the symbols in EditText. To do this, I use public void onTextChanged(CharSequence s, int start, int before, int count) { int symbolRemains = 140 - edTextSMS.getText().length(); if (symbolRemains>=0) { tvSymbols
I am performing a simple delete of a ormlite object. The code is below. But no matter what, the object never get deleted. Dao<Subscription, Object> dao = helper.getSubscriptionDataDao(); dao = helper.getSubscriptionDataDao(); QueryBuilder<Subscri
I can find several examples of how to build a service, but I'm having a difficult time finding a working example of how to send messages between an Activity and a Service. From what I can find, I think my options are to use Intents, AIDL, or to use t
I want to build a mobile/tablet application whose core feature will be taking pictures with the camera , viewing pictures and receiving notifications. Also I want to target iphone, ipad and android platforms. Titanium appcelerator piqued my interest
The Android virtual device (a simulated Android environment) doesn't run very smoothly on my machine. Scrolling is quite sluggish. Is that normal? EDIT: Just noticed that a AVD running Android 1.6 has a significantly better performance compared to th
I'm trying to scan for wireless networks and found this helpful source on the net. Unfortunately it's not working and I have no idea why. My problem is that I can't wait 10 minutes for the result - I need them within a few seconds and thought about s