I am developing an SDK(.aar) which third parties can consume. In my sample application when I use the aar, I can see that the application doesnt prompt for the camera permission. When I open the aar and see its manifest.xm, it contains the below: <!-
I am using materialdatetime picker to create a form. If I am using TextView, It is working good, but I want to use EditText for it, I am uploading the image you can see if I am using EditText how it looks and if I am using TextView how it looks.But w
This question already has an answer here: When is SQLiteOpenHelper onCreate() / onUpgrade() run? 12 answers public static final String TABLENAME = "EMPLOYEES"; public static final String TABLE = "CUSTOMER"; public static final String[]
I want to load swf file in Android , but it seems that Android don't support swf. I google it,and most of developers suggest to use webview: WebSettings settings = webview.getSettings(); settings.setPluginsEnabled(true); webView.getSettings().setPlug
I wanna store this van values in local host database but it is unfortunately stopped working please help import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpEntity; imp
I'm new to android programming The drag/ and drop feature in android studio is not working. I can't drag anything to my phone. Right now my fragment is google map view and i want to add a search bar to the view. It just doesn't drag. When I try to ad
I want to write really cool program with fantastic code, so I decided to understand code created by Android studio (think it must be awesome, because wrote by professionals). How can I change a fragments using navigation drawer? I added some code to
I'm using the v7 appcompat 21 library to use the new Material styles on pre-Lollipop devices. My styles.xml looks like this: <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="android:textCol
I am trying to upload some files to my server (via HTTP POST) from an Android app and I have checked many Questions here but can't get it to work. I hope someone can help me out: I also included some variables in the URL to verify that at least those
Is there any advantages of converting the existing Listview in my app to RecyclerView?? Also when should I be using RecyclerView??That's a tough question to answer. First of all: Think of the RecyclerView as the successor of the AdapterViews which co
I am working on this code, and get an error, the variable "textoviejo" is returned as null, I would like to know what is wrong here. Thank you Activity 1 EditText input = (EditText) findViewById(R.id.input); startActivityForResult(new Intent(thi
im creating an app where you can upload a photo from gallery to imageView. and i want that app to upload every new photo on new imageView. For example i picked an image from gallery press button "ok" and that photo should be uploaded on new imag
I have two Queries which are related to two identical tables (Column names and everything is same) Query1: "SELECT * FROM Notifications ORDER BY SUBSTR(DATE('NOW'), 0)>SUBSTR(DateToNotify, 0), SUBSTR(DateToNotify, 0)"; Query2: "SELECT *
This question already has an answer here: Programmatically create textview background from drawable in android 2 answers I have created a RelativeLayout in an XML that contains a TextView like this: <TextView android:id="@+id/textView5" andro
Hi I want to sort my listView items alphabetically. I know there are other questions on SOF regarding this subject, but none of the answers worked for me. public class myList extends Activity{ // Tab Host TabHost th; LinearLayout tab1, tab2; //List L
Hi below is the screen shot of an activity containing a list of details for user to fill in. As u can see the choose gender radio buttons do not match with rest of the text in the activity. They are kind of bold text. I would like to make it similar
People , I have an async task which downloads some news items using a webservice . Here is the psuedo for that . I have an operation that i perform in an asynctask . It downloads some news from a webservice . AsyncTask { AsyncTask(Context context){}
I am developing an android application to calculate position based on Sensor's Data Accelerometer --> Calculate Linear Acceleration Magnetometer + Accelerometer --> Direction of movement The initial position will be taken from GPS (Latitude + Longit
I'm saving float data in sqlite trough in my aplicaton. The problem is that when I saving the value 99999.99 the sqlite is rounding it to 100000.00. And the same is happening when i try to save 999999.99, its rounding it to 1000000.00. What is happen
I have the targetSdkVersion set as 17 in my manifest. Kindly let me know if there will be any problem when I run this in the phone which has the API of 18. Manifest xml : <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17&q
I am trying to generate trace reports with Systrace tool in the Android SDK, but I cant view the report in the browser. It is blank and does not contain any information. I read in some forums that I need to open the report in Chrome browser, I opened
I am using Worklight for an Android application, When I try to add a splash screen public class MyApp extends WLDroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty("splas
I want to create Buttons dynamically and place them on the layout, But it is giving me some error. I am doing this first time, so have very less idea about the things. My Xml file <?xml version="1.0" encoding="utf-8"?> <Relati
I am new to phonegap. I have prepared one sample application. My application has 2 pages, the first page has one button, when clicked the second page will open. It is working fine using the following function callAnothePage() { window.location = "tes
thanks in advance for help i am trying to display the longitude an latitude in on location update method , but getting null pointer exception. my code for the main activity is public class LocationStat extends Activity implements LocationListener{ do
I load data from internet to build the listview, and put a star icon for each row. If user checked the star, I would save the entire row data into sqllite databse. My question is that how can I know if one item has been added to favorites before to m
I am currently retrieving some information from a text file (.txt) that contains some paragraphs. When I retrieve the String from the text file I want to split it so that I each paragraph is in a String object. Here is the text I get from the text fi
I have a scenario in which I want to set a Drawable depending upon the theme defined. To explain this further, Here is what I have in code: \res\values\attrs.xml <resources> <declare-styleable name="AppTheme"> <attr name="hom
I have multiple popups in my android app. I would like to control the "z-index" of the popups. I can't seem to find any way to control the relative positioning. Is this possible?you basically cannot have z-index for your activities. but whenever
I am using the query functions in order to build the SQL queries for my tables. Is there a way to see the actual query that is run? For instance log it somewhere? So far the best I could do was to have a look at the cursor's member mQuery using a bre