Android application not asking for permission from the camera

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: <!-

SQLite android2 database

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[]

[Android] How to load the SWF file on Android (API 23)

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

NullPointer exception when using edittext

I wanna store this van values in local host database but it is unfortunately stopped working please help import; import; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpEntity; imp

Drag / Drop feature in Android studio does not work

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

Result null in & ldquo; getStringExtra & rdquo;

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(; startActivityForResult(new Intent(thi

Creating ImageView on uploading photos

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

Simple join request for two queries:

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 *

Android: XML conversion android: Java program code background

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

List sorting errorDisplay items using Collection.sort

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

AsyncTask optimization concerning the internal list

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){}

Save float number sqlite rounded error

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

targetSdkVersion in the manifest

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

Worklight App Splash Screen on Android

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

Android - split when a line break in String? (Paragraphs)

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

android: controls the superposition order of the popups

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

Saving SQL queries in Android

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