I am newbie to android development. I am using android studio for developing an application. Things i have done Created a DB with two tables in it in MySQL. Created two separate api's for both GET and POST methods. Successfully accessed both api's Wh
I have created a separate class for the background process. In that, I have two classes and an interface. I am getting string data from the first class and then based on that data I am getting a list of data in another class. The whole process is wor
2 images of same icon with different color We have to achieve the loading effect like the image attached below. Result ImageThis library might be what you need.
I have created ListView in which each button id comprises of database_idx10+button_number For example, I have set the id as 101 i.e. 10=database_id & 1=button_number Now I've to setVisibility of id 101 to View.GONE which is a unique id generated by m
I have a JSON file and it looks something like this. I was wondering if it is possible to create 1 single view for my admin users in the android app to view the full list of sms logs(fromSMS and toSMS) in just 1 page and arrange it accordingly in the
Here is some code: public class Article { (...) private static int[] sImages = { R.drawable.ic_picture}; private ImageView mImage; public Article(int a) { mImage = sImages[a]; } In: mImage = sImages[a]; There is this error: Incompatible types Require
How can i achieve this scenario: My android button tag in xml file: <Button style="?android:attr/buttonStyleSmall" android:layout_width="100dp" android:layout_height="10dp" android:text="Select Plan" android:id=&
In my project I am using volley library to get data(text and image) from server and show the data in RecyclerView. The problem is all the request(POST) I am sending are give no response and error : null(error.getMessage() is null). I have searched ab
My ListView displays in first Item something else as the rest of the ListView The Problem is, that it replaces the first item instead of taking a own position. Example how it has to be: A (diferent to the others) B B B How it is: A (B Overlaid by A)
My webview module isn't working. Whenever I try to navigate back from any webpage, the app crashes giving following error "Unfortunately the app has stopped". Can anyone please explain what is the reason? public class MainActivity extends Action
In my app i have an ImageView. Before adding that ImageView the app was performing smooth. now it throws ANR. The image is saved in the database as base 64 encode string and it is decoded to bitmap and loaded to the imageview using : imageView.setIma
I have developed an app which make connection to MySQL database and display some information from there. Is there a way to test performance of app like simulation of different amount of users request. 500 HTTP requests 1000, 1500 request.Try with JMe
This question already has an answer here: When is SQLiteOpenHelper onCreate() / onUpgrade() run? 12 answers I'm making the app that stores a list of the user's purchases in a SQLite database in android. A problem I'm having is I can't delete any of t
my name Adam, I followed this tutorial https://www.youtube.com/watch?v=rs4LW3GxOgE to create an navigation drawer, everything is working fine, as in, I am able to slide the drawer in and out. The problem I am having is, I want to link each item in th
I have an activity containing a ListFragment. It's populated from a restful webservice. When I click on an item in the list I send back the id of that item to my activity. And using an intent pass that on to a second detail activity and request the o
I have created a game in unity3d and made an android build. But when I wanted to upload it on google play store, I got the liscence key and this message, Does anybody know where I can put that licence key? When you look into Developer console there i
I search a lot, lots of about this. But little helps. The matter is the upgrade and downgrade of database. If just upgrade or downgrade, it's simple. when upgrade,modify or add tables(keep data,it is important), when downgrade, delete the known table
I'm trying to highlight the selected nav drawer item but it doesn't work. it only highlights on pressing the items but does not remain highlighted after the item is selected. I have the following code: The ListView: <ListView android:id="@+id/draw
How can we upload big files in chunks to a PHP server so that if the connection dies, the upload can be resumed at any time. Specifically, what libraries are needed in Android to do this? The users are uploading big files from countries with slow/uns
I want to make an app which can capture device screen without root as: https://play.google.com/store/apps/details?id=com.icecoldapps.screenshotultimate But I can't find the solution. Anyone help me? Thank you very much.Programatically you can do so b
I want to block a particular friend from my chat list with XMPP. code works fine. There is no Exception, but I am not able to block a user. I'm using open fire server. what changes should i made on server? Can u guys have any idea? My code: public vo
I have an application that runs on Android and IOS. The application has some WebView components that displays HTML From what I found there are "em" and "viewport" units as well as "@media" in css. I'm new to HTML5 and CSS3, c
I'm new to android, I'm trying to do an application using Broadcast Receiver which send the message to notification bar when wallpaper is changed on device. It's successfully installed on device but not working as expected. Here is the code WallPager
I want make 2 button take half of the screen width, but what ever i tru only one button came in screen and take full screenwidth. I wanted it for all resolution so dont want to make fix width. one button will take left half and other will take right
I am looking for any tip or guidance to develop an application like cam viewer. So i will see the live videos on my android application by using IP address and port. I searched this question but i could not find proper answer anywhere so please help
I'd like to detect if a logo image in user's camera view - for example if the logo of StackOverflow was printed on a paper and viewed through camera. Or for less complicated approach let's say that I'd like to detect it in a bitmap. I'd like to recog
As seen here my app gets shrinked on Samsung Galaxy Tab with Android 3.0 It is also shrinked in emulator, but at graphical layout it looks ok. main.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientat
I want to run a specific method doThis() (which is not a CPU intensive action, it's just a POST to a web server) every 10 minutes and when that method is finished executing, to notify the user (via Toast or Notification or something of the sort). But
I have to retrieve a user's location in a WebView. I do this with the following Javascript: function getLocation() { navigator.geolocation.getCurrentPosition(displayLocation, handleError); } But the permission request popup never opens. I've set thes
I know this is a done to death topic, and I probably shouldn't be repeating it, but it is extremely annoying, because I've tried all the methods outlined before to resolve it and it still gives me an error. I tried to clean the project, doesn't work