id
int64
28.5M
73.8M
title
stringlengths
15
150
question_body
stringlengths
69
39.4k
body_text
stringlengths
6
29.2k
tags
stringlengths
7
120
score
int64
-19
384
creation_date
stringlengths
20
24
year
int64
-1
2.02k
month
int64
-1
12
hour
int64
-1
23
dayofweek
int64
-1
6
view_count
int64
3
367k
answer_count
int64
0
34
body_len
int64
6
29.2k
title_len
int64
15
150
tag_count
int64
1
6
code_block_cnt
int64
0
17
has_code
bool
2 classes
is_unanswered
bool
2 classes
is_popular
bool
2 classes
is_viral
bool
2 classes
is_highly_voted
bool
2 classes
is_negative
bool
2 classes
score_bucket
stringclasses
5 values
36,651,204
Design layout display is not the same
<p>How to edit xml file layout. All display screen is the same.</p> <p>screen size 4.7", 5.0" display accuracy. But screen other than this. Display Distortion. Except screen tablet.</p> <p>Help me fix it.</p> <p>screen_main.xml</p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android...
How to edit xml file layout. All display screen is the same. screen size 4.7", 5.0" display accuracy. But screen other than this. Display Distortion. Except screen tablet. Help me fix it. screen_main.xml [CODE]
android|android-layout
1
2016-04-15T15:27:58.050Z
2,016
4
15
4
71
4
210
37
2
1
true
false
false
false
false
false
low
36,651,225
Unable to create debug build android studio after latest update
<p>Unable to create debug build since I have updated android studio and gradle</p> <p>It is showing following error</p> <pre><code>`Error:Execution failed for task ':app:transformClassesWithDexForDebug'. &gt; com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.uti...
Unable to create debug build since I have updated android studio and gradle It is showing following error [CODE] ` I already have mutidex enabled and follwing are dexoptions [CODE] Also in gradle.properties file I have added follwoing [CODE] But still I am not able to create debug build and its taking to much time to c...
android|android-studio|intellij-idea|android-gradle-plugin|build.gradle
0
2016-04-15T15:29:05.353Z
2,016
4
15
4
241
0
575
63
5
3
true
true
false
false
false
false
zero
36,651,240
How to use Fragment in an activity - giving lots of errors
<p>This is the <code>ImageActivity.java</code> </p> <pre><code>package com.example.app6; import android.app.FragmentTransaction; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.widget.FrameLayout; public abstract class ImageActivity extends FragmentActivity { private Exa...
This is the ImageActivity.java [CODE] and this is ExampleFragment.java [CODE] Now both the files are giving me errors. In ExampleFragment, cannot resolve methos 'getActivity()' and in ImageActivity, cannot resolve method 'add(int, com.example.app6.ExampleFragment)' I am new to Android, thats why I don't have much knowl...
java|android|android-activity|android-fragmentactivity
-2
2016-04-15T15:29:37.820Z
2,016
4
15
4
50
1
375
58
4
2
true
false
false
false
false
true
negative
36,651,416
Android Bluetooth Low Energy disconnect request not sent?
<p>We're attempting to disconnect from a peripheral, but using a Bluetooth sniffer, we are not seeing an <code>LL_TERMINATE_IND</code> packet. Instead the phone appears to keep sending <code>Empty PDU</code>s to the peripheral for about another 20 seconds.</p> <p>We are using the following Cordova BLE plugin: <a href=...
We're attempting to disconnect from a peripheral, but using a Bluetooth sniffer, we are not seeing an LL_TERMINATE_IND packet. Instead the phone appears to keep sending Empty PDU s to the peripheral for about another 20 seconds. We are using the following Cordova BLE plugin: https://github.com/don/cordova-plugin-ble-ce...
android|cordova|bluetooth
5
2016-04-15T15:38:51.917Z
2,016
4
15
4
1,479
0
1,065
57
3
2
true
true
false
false
false
false
low
36,651,439
custom GridView adapter in fragment
<p>I want to implement simple Gridview custom adapter in my fragment . but i got below error : </p> <pre><code>04-15 11:35:21.064 1190-1190/amir.com.unnamed E/AndroidRuntime: FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity Component...
I want to implement simple Gridview custom adapter in my fragment . but i got below error : [CODE] and my fragment code : [CODE] and custom adapter code : [CODE] } I don't have any idea where I make a mistake . thank's for any help .
java|android|android-fragments|gridview|android-adapter
0
2016-04-15T15:39:46.613Z
2,016
4
15
4
1,452
1
233
35
5
3
true
false
false
false
false
false
zero
36,651,441
Android app https deeplink and Chrome browser
<p>I have implemented https deeplinking in my Android app following the <a href="https://developers.google.com/app-indexing/android/app" rel="nofollow">Google guidelines</a>.</p> <p>It is working almost fine, when user opens Chrome browser, searches something related to <em>mycompany</em> and clicks on a link, the OS ...
I have implemented https deeplinking in my Android app following the Google guidelines . It is working almost fine, when user opens Chrome browser, searches something related to mycompany and clicks on a link, the OS will prompt to select between my app or the browser. Also, if someone sends the link by mail or a messe...
android|google-chrome|deep-linking
1
2016-04-15T15:39:53.040Z
2,016
4
15
4
1,569
2
2,054
45
3
1
true
false
false
false
false
false
low
36,651,455
MPAndroidChart: how implement zoom Asix X and zoom does not work when scrolling is running
<p>I’m using MpChartAndroid library 2.2.4, I have a "CombinedChart" with 100 x values (chartXVals) and VisibleXRangeMaximum is 30. When I draw entries force to scroll to the last X: </p> <pre><code>int indexXVal = chartXVals.size() - 1 this.mChart.setVisibleXRangeMaximum(30); this.mChart.moveViewToX(indexXVal); this.m...
I’m using MpChartAndroid library 2.2.4, I have a "CombinedChart" with 100 x values (chartXVals) and VisibleXRangeMaximum is 30. When I draw entries force to scroll to the last X: [CODE] First question - I have two buttons to zoom in / zoom out the Asix X of chart. Unfortunately the methods zoomIn / zoomOut make zoom fr...
android|charts|mpandroidchart
2
2016-04-15T15:41:02.440Z
2,016
4
15
4
584
0
852
90
3
2
true
true
false
false
false
false
low
36,651,460
Android: How to change the custom color on circular progress bar
<p>I cannot figure out how to change the default color of my circular progress bar. I've tried changing the startColor and endcolor attributes under my gradient tag in the below xml file title circular_progress_view.xml, which is a florescent green color, but the default color of magenta is still showing up. Please s...
I cannot figure out how to change the default color of my circular progress bar. I've tried changing the startColor and endcolor attributes under my gradient tag in the below xml file title circular_progress_view.xml, which is a florescent green color, but the default color of magenta is still showing up. Please see bo...
java|android|xml
1
2016-04-15T15:41:27.763Z
2,016
4
15
4
3,859
1
444
64
3
2
true
false
true
false
false
false
low
36,651,527
setting text of TextView , using custom listView Adaptor
<p>I am trying to use custom list View adapter, to customize UI of the listView. But I am not able to setTextview of the custom List View. <code>titleView.setText(tem);</code> in custom Adapter is not working. It is not giving any error. It displays empty string in Text View (Which I set from Adapter class dynamically)...
I am trying to use custom list View adapter, to customize UI of the listView. But I am not able to setTextview of the custom List View. titleView.setText(tem); in custom Adapter is not working. It is not giving any error. It displays empty string in Text View (Which I set from Adapter class dynamically), and display te...
android|listview|custom-adapter|listview-adapter
0
2016-04-15T15:45:12.187Z
2,016
4
15
4
720
1
620
56
4
4
true
false
false
false
false
false
zero
36,651,604
convert array by split to integer
<p>I get error : </p> <p>FATAL EXCEPTION: main at java.lang.Integer.invalidInt</p> <p>for this block :</p> <pre><code>int f = Integer.parseInt(c[1]); limitter.setProgress(f); limit.setText(f + " A"); </code></pre> <p>MAIN CODE:</p> <pre><code>byte[] encodedBytes = new byte[readBufferPosition]; System.arraycopy(r...
I get error : FATAL EXCEPTION: main at java.lang.Integer.invalidInt for this block : [CODE] MAIN CODE: [CODE] What is wrong? Here is the stack trace: [CODE]
java|android
0
2016-04-15T15:49:13.107Z
2,016
4
15
4
50
0
156
33
2
3
true
true
false
false
false
false
zero
36,651,655
Returning A Value From AlertDialog
<p>I want to build a function that creates an AlertDialog and returns the string that the user entered, this the function I have for creating the dialog, how do I return the value?</p> <pre><code>String m_Text = ""; private String openDialog(String title) { AlertDialog.Builder builder = new AlertDialog.Builder(vie...
I want to build a function that creates an AlertDialog and returns the string that the user entered, this the function I have for creating the dialog, how do I return the value? [CODE]
java|android|android-alertdialog
5
2016-04-15T15:51:50.807Z
2,016
4
15
4
3,869
3
184
34
3
1
true
false
true
false
false
false
low
36,651,665
Android SDK Add-On hidden class
<p>I need to export a hidden class through a SDK Add-On in Android Lollipop. I'm able to export non-hidden classes. After unsuccessfully trying the "usual way" I thought the problem was due to the @hide tag. So I decided to try the "dirty" way of getting rid of the @hide keyword responsible to hide the class (even if t...
I need to export a hidden class through a SDK Add-On in Android Lollipop. I'm able to export non-hidden classes. After unsuccessfully trying the "usual way" I thought the problem was due to the @hide tag. So I decided to try the "dirty" way of getting rid of the @hide keyword responsible to hide the class (even if that...
android|sdk|android-5.0-lollipop|add-on|android-5.1.1-lollipop
2
2016-04-15T15:52:14.153Z
2,016
4
15
4
422
1
922
31
5
0
false
false
false
false
false
false
low
36,651,821
Schedulers.immediate() not working with command line gradle tests
<p>I'm trying to test a presenter that use RxJava to retrieve data from an interactor. In the setup method I'm doing something like:</p> <pre><code>@Before public void setup() { RxAndroidPlugins.getInstance().registerSchedulersHook(new RxAndroidSchedulersHook() { @Override public Scheduler getMain...
I'm trying to test a presenter that use RxJava to retrieve data from an interactor. In the setup method I'm doing something like: [CODE] So in my test method I can test the presenter call: [CODE] If I run the test with Android Studio everything work as expected, the issue is that If I try on command line [CODE] Then th...
android|unit-testing|rx-java
6
2016-04-15T15:59:07.783Z
2,016
4
15
4
481
1
675
65
3
4
true
false
false
false
false
false
medium
36,652,123
Android GraphView gets Laggy and Sometimes too fast
<p>So what i am doing is:</p> <p>1)Receive characters(integers in the for of chars) from a BLE model(dont know it? its not important anyways)</p> <p>2)convert those chars into double</p> <p>3)plot it on y axis, with x axis being time,</p> <p>The ble sends a value once every 100 milli seconds. And the phone catches ...
So what i am doing is: 1)Receive characters(integers in the for of chars) from a BLE model(dont know it? its not important anyways) 2)convert those chars into double 3)plot it on y axis, with x axis being time, The ble sends a value once every 100 milli seconds. And the phone catches and changes that value, so no probl...
android|android-studio|plot|graph|bluetooth
1
2016-04-15T16:14:30.853Z
2,016
4
16
4
135
0
758
51
5
3
true
true
false
false
false
false
low
36,652,134
Android Glide load picture file apply overlay and set to imageview
<p>I have image files(png/jpg). When loading to listview, some of them I need to overlay with another transparent image. I do this using something like the following:</p> <pre><code>public Bitmap applyOverlay(Context context, Bitmap sourceImage, int overlayDrawableResourceId){ Bitmap bitmap = null; try...
I have image files(png/jpg). When loading to listview, some of them I need to overlay with another transparent image. I do this using something like the following: [CODE] where BitmapUtils is a custom class that implements bitmap-wise methods. [CODE] Using Universal Image Loader library for Android(UIL), this effect is...
android|listview|imageview|android-glide
4
2016-04-15T16:14:58.873Z
2,016
4
16
4
9,373
1
467
66
4
2
true
false
true
false
false
false
low
36,652,427
i'm trying to do an android application that captures an image and matches it with some images stored in sqlite database then it warns the user
<p>After I had searched I found that it is better to store all the data of the sqlite database in an XML file and then extract the data from it. I have tried but each time there is some errors that i could not understand.</p> <p>Is there any better way to achieve my goal?</p> <p>This is the code for creating th...
After I had searched I found that it is better to store all the data of the sqlite database in an XML file and then extract the data from it. I have tried but each time there is some errors that i could not understand. Is there any better way to achieve my goal? This is the code for creating the database: [CODE] here i...
android|sqlite
0
2016-04-15T16:31:34.567Z
2,016
4
16
4
33
0
420
143
2
2
true
true
false
false
false
false
zero
36,652,535
android on ubuntu 14.04
<p>I followed this <a href="http://www.unixmen.com/install-android-sdk-ubuntu-14-04/" rel="nofollow noreferrer">link</a> to get android running on my Ubuntu 14.04</p> <p>but when I ran android and I got this on my terminal</p> <blockquote> <p>Exception in thread "main" java.lang.NoClassDefFoundError: com/android...
I followed this link to get android running on my Ubuntu 14.04 but when I ran android and I got this on my terminal Exception in thread "main" java.lang.NoClassDefFoundError: com/android/utils/ILogger at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2625) at ...
java|android|ubuntu|noclassdeffounderror
1
2016-04-15T16:37:37.193Z
2,016
4
16
4
125
0
1,053
23
4
0
false
true
false
false
false
false
low
36,652,619
Need Advice JSON on Android Online Database
<p>i am now working on an android online database project. I create an app that can connect to the online database and bring the information to the user. Since i am not too familiar with java and JSON code, i browse on the internet and stackoverflow also and i find this code below. But i don't too understand with the...
i am now working on an android online database project. I create an app that can connect to the online database and bring the information to the user. Since i am not too familiar with java and JSON code, i browse on the internet and stackoverflow also and i find this code below. But i don't too understand with the code...
android|json|database
0
2016-04-15T16:43:25.163Z
2,016
4
16
4
55
1
557
43
3
1
true
false
false
false
false
false
zero
36,652,633
Collection NoSuchMethodError when caling ,stream() method
<pre><code> public int getColsBy(final Collection&lt;Room&gt; rooms) { return rooms.stream() .max((lhs, rhs) -&gt; lhs.right - rhs.right).get().right; } </code></pre> <p>I try to execute this code in my libgdx project, but all i have is exception!</p> <pre><code>04-15 22:34:21.136 32610-32636/com.mygdx...
[CODE] I try to execute this code in my libgdx project, but all i have is exception! [CODE] There is my build.gradle file [CODE] What things should I do to use streams in my projects?
java|android|libgdx
5
2016-04-15T16:43:57.240Z
2,016
4
16
4
6,363
3
183
57
3
3
true
false
true
false
false
false
low
36,652,675
java.security.UnrecoverableKeyException: Failed to obtain information about private key
<p>I have the following lines to get the private key from key store on Android</p> <pre><code>KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); keyStore.load(null); // generating key pair code omitted KeyStore.PrivateKeyEntry privateKeyEntry = (KeyStore.PrivateKeyEntry) this.keyStore.getEntry("alias", nul...
I have the following lines to get the private key from key store on Android [CODE] Everything works fine except that when the OS upgrades from Android 5.1.1 to Android 6.0.1, the 3rd line will throw java.security.UnrecoverableKeyException: Failed to obtain information about private key for very first execution. But it ...
java|android|keystore|private-key|java-security
31
2016-04-15T16:46:02.297Z
2,016
4
16
4
15,544
3
524
87
5
2
true
false
true
true
true
false
high
36,652,689
Adding RelativeLayout in to the Collapsing toolbar layout
<p>I want to use <code>RelativeLayout</code> in my <code>collapsingToolbar</code> . but RelativeLayout doesn't show correctly . I want add RelativeLayout under the Toolbar like this picture :</p> <p><a href="https://i.stack.imgur.com/PWB6F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PWB6F.png" a...
I want to use RelativeLayout in my collapsingToolbar . but RelativeLayout doesn't show correctly . I want add RelativeLayout under the Toolbar like this picture : This is my xml of DetailActivity : [CODE] And This code doing like this : And I want add RelativeLayout under the toolbar.
android|android-layout|android-collapsingtoolbarlayout
2
2016-04-15T16:46:48.517Z
2,016
4
16
4
2,577
3
285
57
3
1
true
false
false
false
false
false
low
36,652,716
java.lang.OutOfMemoryError: Failed to allocate a 36000012 byte allocation with 16777216 free bytes and 21MB until OOM
<p>I have made an application with a <code>listView</code>, the <code>listView</code> contains text and pictures using an array. I alos have an <code>editText</code> where the user can search through the list using a search functioanlity. The <code>listView</code> loads in fine however when I click on the <code>editVie...
I have made an application with a listView , the listView contains text and pictures using an array. I alos have an editText where the user can search through the list using a search functioanlity. The listView loads in fine however when I click on the editView to search through my listView I get an outOfMemoryError . ...
java|android|android-studio|out-of-memory
2
2016-04-15T16:48:36.180Z
2,016
4
16
4
10,178
1
655
117
4
4
true
false
true
false
false
false
low
36,652,719
Can't dismiss ProgressDialog
<p>Please help, I can't dismiss ProgressDialog when the synchronization.The method sincronizaahora calls the method pre for show the progressdialog and The method actualizarDatosLocalesProductos calls the method pre for dismiss the progressdailog but it doesn't working.</p> <p><div class="snippet" data-lang="js" data...
Please help, I can't dismiss ProgressDialog when the synchronization.The method sincronizaahora calls the method pre for show the progressdialog and The method actualizarDatosLocalesProductos calls the method pre for dismiss the progressdailog but it doesn't working. [CODE] [CODE] [CODE]
android
0
2016-04-15T16:48:52.873Z
2,016
4
16
4
359
3
288
28
1
3
true
false
false
false
false
false
zero
36,652,766
Suspending all threads took: ms warning using Threads - Android
<p>I have 2 <code>Thread</code>s that make some network computation. When I run my app and after starting my second <code>Thread</code> I get a:</p> <p><code>Suspending all threads took: ms</code> warning followed by:</p> <p><code>Background sticky concurrent mark sweep GC freed 246745(21MB) AllocSpace objects, 169(...
I have 2 Thread s that make some network computation. When I run my app and after starting my second Thread I get a: Suspending all threads took: ms warning followed by: Background sticky concurrent mark sweep GC freed 246745(21MB) AllocSpace objects, 169(6MB) LOS objects, 33% free, 31MB/47MB, paused 1.972ms total 127....
java|android|multithreading|garbage-collection|jsoup
9
2016-04-15T16:51:43.327Z
2,016
4
16
4
23,898
1
1,277
63
5
3
true
false
true
true
false
false
medium
36,652,779
How to send ID from an Element on listItems to another View where i wana publish all information of this Element?
<p>This ListView class where i bring different element from my server with help of php and JSON calls to my listview. The problem is i would like to send the ID of element to another view when i click of specific element on listview. and in another View i would like to publish the detail information about the element t...
This ListView class where i bring different element from my server with help of php and JSON calls to my listview. The problem is i would like to send the ID of element to another view when i click of specific element on listview. and in another View i would like to publish the detail information about the element that...
android
0
2016-04-15T16:52:50.043Z
2,016
4
16
4
27
1
404
113
1
2
true
false
false
false
false
false
zero
36,652,823
Json LatLong values to mapActivity
<p>i received lat and long values through Json and saved in ArrayList And then i passed this Array list to MapAcitivity </p> <pre><code> matchFixture = jsonObj.getJSONArray(TAG_FIXTURE); Log.d("json aray", "user point array"); int len = matchFixture.length(); Log.d("l...
i received lat and long values through Json and saved in ArrayList And then i passed this Array list to MapAcitivity [CODE] this is how i passed the values [CODE] and this is how i recieved in map acitivity [CODE] but now i dont have any idea how to get these values in such order that fits specific latlog to show place...
android|google-maps|arraylist|hashmap
0
2016-04-15T16:54:55.440Z
2,016
4
16
4
37
1
371
34
4
3
true
false
false
false
false
false
zero
36,652,886
Material Design Icons code
<pre><code>public class DrawerAdapter extends BaseAdapter { private List&lt;DrawerItemModel&gt; mDrawerItems; private LayoutInflater mInflater; public DrawerAdapter(Context context) { mInflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); mDrawerItems = getTravelD...
[CODE] } String.xml [CODE] What is the meaning of these String &#xea08; &#xe937; &#xeac6; ... And How String &#xea08 Becomes icon ? I have a Font File (MaterialDesignIcons.ttf) in the assets/font ?? I know not what is the principle of this method ? I know not what is the principle of this method ?
android|mobile|svg|icons|material-design
2
2016-04-15T16:58:19.553Z
2,016
4
16
4
1,359
1
298
26
5
2
true
false
false
false
false
false
low
36,652,988
how to pass a thread class object from activity to activity using parcelable
<p>ok i am making an app for some bluetooth works so there is thread class which i used to connected with other device and now i wanted to pass that thread class instance to another activity so i doesnt have to reconnect it therefore i implement that thread class as <b>Parcelable</b> but it doesnt work and throws <b>Nu...
ok i am making an app for some bluetooth works so there is thread class which i used to connected with other device and now i wanted to pass that thread class instance to another activity so i doesnt have to reconnect it therefore i implement that thread class as Parcelable but it doesnt work and throws NullPointer Exc...
java|android|multithreading|bluetooth|parcelable
0
2016-04-15T17:04:07.410Z
2,016
4
17
4
387
1
467
76
5
1
true
false
false
false
false
false
zero
36,653,031
Adding a custom listener inside a broadcast receiver gives NPE in Android
<p>I have been stuck with a problem here.I am trying to listen to connectivity changes by implementing a broadcast receiver.Also I have initialised a custom listener within the broadcast receiver so as to communicate to the activity about the connectivity changes to show a Crouton Toast.The code for the various classes...
I have been stuck with a problem here.I am trying to listen to connectivity changes by implementing a broadcast receiver.Also I have initialised a custom listener within the broadcast receiver so as to communicate to the activity about the connectivity changes to show a Crouton Toast.The code for the various classes as...
android|broadcastreceiver|listener|android-broadcastreceiver|custom-event
2
2016-04-15T17:06:41.787Z
2,016
4
17
4
1,609
1
854
73
5
4
true
false
false
false
false
false
low
36,653,126
Send request over WiFi (without connection) even if Mobile data is ON (with connection) on Android M
<p>I have to send UDP packets to a WiFi module (provided with own AP) with no internet connection but when I connect the mobile with the AP, Android redirects my packets on the mobile data interface because it has got internet connection.</p> <p>I've used the code below to do my job but it seems not working on Android...
I have to send UDP packets to a WiFi module (provided with own AP) with no internet connection but when I connect the mobile with the AP, Android redirects my packets on the mobile data interface because it has got internet connection. I've used the code below to do my job but it seems not working on Android M. [CODE] ...
android|networking|android-wifi|android-6.0-marshmallow|iot
20
2016-04-15T17:12:40.300Z
2,016
4
17
4
8,595
2
476
100
5
2
true
false
true
false
true
false
medium
36,653,172
Trigger Android Notifications when an action occurs in the database
<p>I am attempting to trigger notifications to my users in my Android application when a certain change is made in the (Firebase) database. I am creating a ride sharing application, so when a match is found, or someone joins someones 'ride', or a 'ride' is modified, the users associated should get a notification lettin...
I am attempting to trigger notifications to my users in my Android application when a certain change is made in the (Firebase) database. I am creating a ride sharing application, so when a match is found, or someone joins someones 'ride', or a 'ride' is modified, the users associated should get a notification letting t...
android|notifications|broadcastreceiver|alarmmanager
0
2016-04-15T17:15:33.753Z
2,016
4
17
4
304
0
785
67
4
2
true
true
false
false
false
false
zero
36,653,277
Error uploading a file using Retrofit 2
<p>I'm trying to upload a file (picture) to the server using <code>Retrofit 2</code>. I'm following that <a href="https://futurestud.io/blog/retrofit-2-how-to-upload-files-to-server" rel="noreferrer">tutorial</a> which seems pretty easy at first, but didn't work in my case... </p> <p>When I call the API function, i'm ...
I'm trying to upload a file (picture) to the server using Retrofit 2 . I'm following that tutorial which seems pretty easy at first, but didn't work in my case... When I call the API function, i'm always getting this error: [CODE] Here is my API call: [CODE] Here is the method I use to upload a file: [CODE]
android|retrofit|retrofit2
16
2016-04-15T17:22:32.520Z
2,016
4
17
4
21,936
2
308
39
3
3
true
false
true
true
true
false
medium
36,653,281
Prevent MediaProjection object from being lost on killing the Application
<p>I am using MediaProjection to take screenshot.This is what I am doing.I created an overlay icon using service.On clicking the overlay icon a screenshot is taken.The problem is that whenever the Application is killed either by pressing back button or manually by swiping it the MediaProjection object is lost.Is there ...
I am using MediaProjection to take screenshot.This is what I am doing.I created an overlay icon using service.On clicking the overlay icon a screenshot is taken.The problem is that whenever the Application is killed either by pressing back button or manually by swiping it the MediaProjection object is lost.Is there a w...
android|singleton|android-mediaprojection
1
2016-04-15T17:22:40.720Z
2,016
4
17
4
2,174
1
804
73
3
3
true
false
false
false
false
false
low
36,653,406
After clicking dialog doesn't show but only darkens the screen
<p>After clicking dialog doesn't show but only darkens the screen. It is weird, but I don't know what happens.</p> <p>This is my method which should show dialog in my fragment class. :</p> <pre><code>public void helloType(String id, String name) { AddHelloDialog dialog = AddHelloDialog.newInstance(id, name); ...
After clicking dialog doesn't show but only darkens the screen. It is weird, but I don't know what happens. This is my method which should show dialog in my fragment class. : [CODE] And this is my AddHelloDialog class: [CODE] Why is that? Have you got any idea?
android|dialog
0
2016-04-15T17:29:25.730Z
2,016
4
17
4
201
1
261
62
2
2
true
false
false
false
false
false
zero
36,653,494
ANDROID: Request Code for Permissions not appearing
<p>I'm sure this has a very simple explanation, but it has me stumped. With the new updates to API 23, you must declare permissions both in the manifest and in the actual code. Yet the request code for what I am trying to do does not appear.</p> <p>Here is my manifest :</p> <pre><code>&lt;?xml version="1.0" encoding=...
I'm sure this has a very simple explanation, but it has me stumped. With the new updates to API 23, you must declare permissions both in the manifest and in the actual code. Yet the request code for what I am trying to do does not appear. Here is my manifest : [CODE] And in my first activity I call this method: [CODE] ...
java|android|permissions|android-6.0-marshmallow
1
2016-04-15T17:34:07.327Z
2,016
4
17
4
3,860
2
539
51
4
2
true
false
true
false
false
false
low
36,653,532
Android Programmatically created content not displayed correctly
<p>I'm trying to create some view programmatically. Here's what it should look alike :</p> <p><img src="https://puu.sh/ojgN9/9d4e2d2571.jpg" alt="1">! </p> <p>This is what i have :</p> <p><img src="https://puu.sh/ojgRV/fc0cfad765.jpg" alt="2">!</p> <p>This is my layout :</p> <pre><code> &lt;TableLayout ...
I'm trying to create some view programmatically. Here's what it should look alike : ! This is what i have : ! This is my layout : [CODE] This is my loop : [CODE] I don't what's the problem in here, i've been looking for topics and stuff for hours and i just can't get it right..
android
0
2016-04-15T17:36:28.063Z
2,016
4
17
4
30
1
278
64
1
2
true
false
false
false
false
false
zero
36,653,665
Cannot resolve symbol HttpPost
<p>I tried everything possible but I am still getting the following errors - 1.Cannot resolve symbol ClientProtocolException 2.Cannot resolve symbol HttpPost 3.Cannot resolve symbol DefaultHttpClient</p> <p>JSONParser.java</p> <pre><code>public class JSONParser { static InputStream is = null; static JSONObject jObj ...
I tried everything possible but I am still getting the following errors - 1.Cannot resolve symbol ClientProtocolException 2.Cannot resolve symbol HttpPost 3.Cannot resolve symbol DefaultHttpClient JSONParser.java [CODE] MainActivity.java [CODE] build.gradle [CODE] } manifest [CODE]
java|android|json|http-post
1
2016-04-15T17:43:57.280Z
2,016
4
17
4
4,256
4
282
30
4
4
true
false
true
false
false
false
low
36,653,765
android keep the reference to old google api project
<p>I am working with YouTube google api and I have this error:</p> <pre><code>com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden 04-15 13:25:42.951 22653-24865/com.player.jointv W/System.err: { 04-15 13:25:42.951 22653-24865/com.player.jointv W/System.err: "code" : 403, 04-15 13:25:42.9...
I am working with YouTube google api and I have this error: [CODE] I thought that my problem was with an disable api or maybe using a wrong username but then I click on the project reference in the error and I saw that the project ID (XXXXXXXXXXXX) is wrong because it was an old project. The problems are: I don't know ...
android|android-studio|google-api|accountmanager|unauthorized
3
2016-04-15T17:50:09.873Z
2,016
4
17
4
185
0
1,039
52
5
6
true
true
false
false
false
false
low
36,653,789
Android annotation MappingJackson2HttpMessageConverter.class not found
<p>I try to use annotation in my app. I created interface as it's said in docs but MappingJackson2HttpMessageConverter.class is not found. Could you tell me why ? EvenList is also not found :/</p> <pre><code>@Rest(converters = { MappingJackson2HttpMessageConverter.class }) public interface MyRestClient { @Get("htt...
I try to use annotation in my app. I created interface as it's said in docs but MappingJackson2HttpMessageConverter.class is not found. Could you tell me why ? EvenList is also not found :/ [CODE] Annotation works fine. My build.gradle : [CODE]
android|annotations
1
2016-04-15T17:51:32.203Z
2,016
4
17
4
688
1
244
70
2
2
true
false
false
false
false
false
low
36,654,134
Same data is displaying in all fragments using page Viewers to create pages
<p>I have online database where I have stored "Title" for every page. I am using Async Task to download the data from the server and in log statement I am able to see all the title string are retrieving properly. Using FragmentStatePagerAdapter to create pages in MainActivity. I am able to create pages successfully but...
I have online database where I have stored "Title" for every page. I am using Async Task to download the data from the server and in log statement I am able to see all the title string are retrieving properly. Using FragmentStatePagerAdapter to create pages in MainActivity. I am able to create pages successfully but al...
java|android|android-fragments|android-viewpager
0
2016-04-15T18:12:09.323Z
2,016
4
18
4
47
1
425
75
4
2
true
false
false
false
false
false
zero
36,654,153
Broadcast receiver continue after application leave
<p>I have a problem I can not solve, the broadcast receiver of my application continues to run when I leave my application. I have to forcibly stop the application manually, whereas I are closed; Thank you for your help. Here is my manifest, and my receiver:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;...
I have a problem I can not solve, the broadcast receiver of my application continues to run when I leave my application. I have to forcibly stop the application manually, whereas I are closed; Thank you for your help. Here is my manifest, and my receiver: [CODE] and myreceiver : [CODE]
java|android|broadcastreceiver|android-manifest|ondestroy
1
2016-04-15T18:13:01.510Z
2,016
4
18
4
335
2
286
51
5
2
true
false
false
false
false
false
low
36,654,216
Video Lag and FPS drop on Android Lollipop on touching screen
<p>I am using MediaCodec to play 1080p@60fps video. This is on freescale SabreSD platform with Android Lollipop 5.1.</p> <p>Initially because of BufferQueue Synchronous Mode, the FPS was way below 60.I could now manage to play at 70FPS by changing the BufferQueue to Asynchronous as in JB.</p> <p>Now the next challeng...
I am using MediaCodec to play 1080p@60fps video. This is on freescale SabreSD platform with Android Lollipop 5.1. Initially because of BufferQueue Synchronous Mode, the FPS was way below 60.I could now manage to play at 70FPS by changing the BufferQueue to Asynchronous as in JB. Now the next challenge I am facing is th...
android|video|android-mediacodec|android-5.1.1-lollipop|grafika
0
2016-04-15T18:15:53.647Z
2,016
4
18
4
1,934
1
1,056
61
5
0
false
false
false
false
false
false
zero
36,654,233
Keyboard doesn't show for TextInput in react-native android
<p>I have a react-native android app and the keyboard does not show on any of the text inputs, including the ones rendered by FBLogin. I have tried it in Genymotion, and on Samsung and Nexus devices. The keyboard does show on iOS.</p> <p>I get this log message on startup.</p> <p>"Unable to dispatch keyboard events in...
I have a react-native android app and the keyboard does not show on any of the text inputs, including the ones rendered by FBLogin. I have tried it in Genymotion, and on Samsung and Nexus devices. The keyboard does show on iOS. I get this log message on startup. "Unable to dispatch keyboard events in JS as the react in...
android|react-native
2
2016-04-15T18:16:57.843Z
2,016
4
18
4
1,118
0
356
59
2
1
true
true
false
false
false
false
low
36,654,316
Cannot get any data from Google Fit History API
<p>I am trying to use the google fit history api to get the steps I took within the last week separated by day. My app does not record any data, I just want to use the history api to get the data on the fit store. According to my account on <a href="https://fit.google.com/" rel="nofollow">https://fit.google.com/</a> I ...
I am trying to use the google fit history api to get the steps I took within the last week separated by day. My app does not record any data, I just want to use the history api to get the data on the fit store. According to my account on https://fit.google.com/ I took 151 steps 3 days ago, but when I try to get the num...
android|google-fit|google-fit-sdk
1
2016-04-15T18:22:20.480Z
2,016
4
18
4
904
1
566
47
3
1
true
false
false
false
false
false
low
36,654,355
How to separate activities
<p>I have several <code>onActivityResult</code> activities in my Android app and I am having an issue with two activities running at one time. When I open up my ZXing barcode scanner it will close the connection to my Bluetooth printer. Here is my code:</p> <pre><code>public void onActivityResult(int requestCode, int ...
I have several onActivityResult activities in my Android app and I am having an issue with two activities running at one time. When I open up my ZXing barcode scanner it will close the connection to my Bluetooth printer. Here is my code: [CODE] What would be the best way to split up these activities so that they do not...
java|android|android-studio|bluetooth|zxing
0
2016-04-15T18:24:41.070Z
2,016
4
18
4
78
1
543
26
5
2
true
false
false
false
false
false
zero
36,654,466
Android Widget: RemoteViewsFactory does not display items correctly if getViewAt() method takes too long to execute
<p>I have an android widget that displays user thumbnails in a <code>GridView</code>. The code follows the android sample code for implementing a widget that shows a collection. Here is the code for my <code>getViewAt()</code> method:</p> <pre><code>@Override public RemoteViews getViewAt(int position) { if (mWidge...
I have an android widget that displays user thumbnails in a GridView . The code follows the android sample code for implementing a widget that shows a collection. Here is the code for my getViewAt() method: [CODE] Everything works fine and all grid items get displayed correctly, providing the synchronous image load exe...
android|android-widget|android-appwidget
4
2016-04-15T18:31:14.093Z
2,016
4
18
4
545
0
1,312
115
3
1
true
true
false
false
false
false
low
36,654,691
Sometime networkonmainthreadexception in AsyncTask
<p>I am getting NetworkonMainThreadException sometime.I dont know what is the problem. First time it opens with no error, But after few times closing and opening cause the NetworkOnMainThreadException.</p> <blockquote> <p>Below is my MainActivity</p> </blockquote> <pre><code>public class MainActivity extends Activi...
I am getting NetworkonMainThreadException sometime.I dont know what is the problem. First time it opens with no error, But after few times closing and opening cause the NetworkOnMainThreadException. Below is my MainActivity [CODE] } This is XMLPullParser handler [CODE]
android
0
2016-04-15T18:44:43.043Z
2,016
4
18
4
84
2
269
50
1
2
true
false
false
false
false
false
zero
36,654,731
ClassDefNotFound Error in Android when AWS connection is made
<p>I have been working on a android project to connect to the tables stored at my EC2 instances. I have made the connection code separately and tested it. It is showing the output as desired but the issue is that when i try to integrate the code to an Android Project it throws the error "ClassDefNotFound" Error of some...
I have been working on a android project to connect to the tables stored at my EC2 instances. I have made the connection code separately and tested it. It is showing the output as desired but the issue is that when i try to integrate the code to an Android Project it throws the error "ClassDefNotFound" Error of some Hi...
java|android|amazon-web-services|amazon-ec2
0
2016-04-15T18:46:55.770Z
2,016
4
18
4
55
1
621
61
4
2
true
false
false
false
false
false
zero
36,654,798
MissingComponentException unity2D
<p>I can't set my camera options. When I play the game and load another scene the camera options changes. But when I hit play for the same scene it works correctly!!! and the console said : </p> <blockquote> <p>MissingComponentException: There is no 'Camera' attached to the "Canvas" game object, but a script is tr...
I can't set my camera options. When I play the game and load another scene the camera options changes. But when I hit play for the same scene it works correctly!!! and the console said : MissingComponentException: There is no 'Camera' attached to the "Canvas" game object, but a script is trying to access it. You probab...
c#|android|unity3d
0
2016-04-15T18:50:48.797Z
2,016
4
18
4
411
3
483
33
3
1
true
false
false
false
false
false
zero
36,654,966
Floating Action Button is unclickable?
<p>The FAB had worked previously when i used a <code>FrameLayout</code>, however when i added the FAB xml code under a new <code>LinearLayout</code> and changed the parent layout to <code>RelativeLayout</code>, it doesn't seem to respond to my Clicks anymore.</p> <p>Here's the xml...</p> <pre><code>&lt;RelativeLayout x...
The FAB had worked previously when i used a FrameLayout , however when i added the FAB xml code under a new LinearLayout and changed the parent layout to RelativeLayout , it doesn't seem to respond to my Clicks anymore. Here's the xml... [CODE] And here's the onClick method for the FAB... [CODE] Any solutions? Thanks! ...
android|android-layout|android-fragments
0
2016-04-15T19:00:48.470Z
2,016
4
19
4
812
1
444
38
3
2
true
false
false
false
false
false
zero
36,655,040
How to setup Facebook Redex in order to optimize Android Bytecodes?
<p>There is a very good instruction in Redex page at <a href="http://fbredex.com/" rel="nofollow noreferrer">http://fbredex.com/</a>.</p> <p>I follow the instruction but I have problem in two steps.</p> <p>1.I have no problem with run of first command (my OS is Ubuntu)</p> <pre><code>sudo apt-get install \ g++ \...
There is a very good instruction in Redex page at http://fbredex.com/ . I follow the instruction but I have problem in two steps. 1.I have no problem with run of first command (my OS is Ubuntu) [CODE] I clone folly repo somewhere on my laptop I go to the directory by $ cd android/projects/folly/folly/ I run git submodu...
android|facebook|redex|facebook-redex
0
2016-04-15T19:05:53.953Z
2,016
4
19
4
1,079
2
1,348
67
4
2
true
false
false
false
false
false
zero
36,655,068
android app, Java - Overflow Menu Error and it's not displaying in the action bar
<p>I did not expect an error to come up but the 3-dot ActionBar menu is not displaying and I am getting an unexpected error. I am not sure where I went wrong in my code.</p> <p>Please help, thanks in advance!</p> <p>MainActivity.java</p> <pre><code>package com.example.it5.foothillers; import android.app.Activity; i...
I did not expect an error to come up but the 3-dot ActionBar menu is not displaying and I am getting an unexpected error. I am not sure where I went wrong in my code. Please help, thanks in advance! MainActivity.java [CODE]
java|android
0
2016-04-15T19:07:12.360Z
2,016
4
19
4
35
1
223
81
2
1
true
false
false
false
false
false
zero
36,655,370
Trouble using variables from my custom adapter
<p>I am using a list view and creating a custom adapter. I am trying to like a post every time the button is clicked. The button being declared is connected with each item in the list view. There are three problems that I am encountering:</p> <p>1) When I click on the like button, a "random" button down the list is al...
I am using a list view and creating a custom adapter. I am trying to like a post every time the button is clicked. The button being declared is connected with each item in the list view. There are three problems that I am encountering: 1) When I click on the like button, a "random" button down the list is also clicked....
java|php|android|android-volley|custom-adapter
1
2016-04-15T19:26:45.503Z
2,016
4
19
4
155
3
782
46
5
2
true
false
false
false
false
false
low
36,655,395
JOGL Android App can't write to external storage
<p>I have an Android app that uses JOGL for OpenGL graphics. The app is the GearsTestDemo that is used in other places for testing. The app runs and displays on two different tablet devices, one running 4.4.2 an the other running 4.1.2. I am trying to add file access. I have write and read permissions specified in ...
I have an Android app that uses JOGL for OpenGL graphics. The app is the GearsTestDemo that is used in other places for testing. The app runs and displays on two different tablet devices, one running 4.4.2 an the other running 4.1.2. I am trying to add file access. I have write and read permissions specified in the man...
java|android|jogl
1
2016-04-15T19:28:08.597Z
2,016
4
19
4
109
0
1,299
48
3
3
true
true
false
false
false
false
low
36,655,620
Cannot detect service using Network Service Discovery (NSD) on Android
<p>I'm a newbie trying to use NSD in an application I'm building to find peers running the same service on the same wifi network and connect to the it. </p> <p>[Refer to code] I have one device running <strong>HostActivity.java</strong> and one running <strong>GuestActivity.java</strong>. Clicking the floating button ...
I'm a newbie trying to use NSD in an application I'm building to find peers running the same service on the same wifi network and connect to the it. [Refer to code] I have one device running HostActivity.java and one running GuestActivity.java . Clicking the floating button in Host registers a service on port 9000 ( pr...
android|nsd
2
2016-04-15T19:43:21.830Z
2,016
4
19
4
3,208
1
909
70
2
3
true
false
true
false
false
false
low
36,655,687
URL.openStream networkOnMainThread using rxAndroid
<p>I am using XmlPullParser which parse file from server, of course I am doing it in another thread. I am using rxAndroid to work with threads, but it throws <code>NetworkOnMainThread</code> exception. Please help me.</p> <pre><code>public static List&lt;ArticleModel&gt; parseArticles(String get) { try { ...
I am using XmlPullParser which parse file from server, of course I am doing it in another thread. I am using rxAndroid to work with threads, but it throws NetworkOnMainThread exception. Please help me. [CODE] And this is my RX method: [CODE]
java|android
0
2016-04-15T19:48:27.877Z
2,016
4
19
4
146
2
241
50
2
2
true
false
false
false
false
false
zero
36,655,691
NullPointerException in Application
<p>I am making a music player application.</p> <p>its giving NullPointerException in a class.This is the code of player.java</p> <pre><code>package com.example.mudit.take6; import android.content.Intent; import android.os.Bundle; import android.os.Environment; import android.support.v7.app.AppCompatActivity; imp...
I am making a music player application. its giving NullPointerException in a class.This is the code of player.java [CODE] errors:- [CODE] How can i run it successfully. please tell if i am doing it wrong way . if you can tell in right way . Any help will be appreciated.
android|nullpointerexception
0
2016-04-15T19:48:41.240Z
2,016
4
19
4
105
3
270
35
2
2
true
false
false
false
false
false
zero
36,655,771
Making a button OnClickListener not working?
<p>I get an error by "btnCalculate.setOnClickListener(new View.OnClickListener()" saying </p> <blockquote> <p>"Method invocation 'btnCalculate.setOnClickListener(new View.OnClickListener() { @Override ...' may produce 'java.lang.NullPointerException"</p> </blockquote> <p>What does this mean and how can I fix it...
I get an error by "btnCalculate.setOnClickListener(new View.OnClickListener()" saying "Method invocation 'btnCalculate.setOnClickListener(new View.OnClickListener() { @Override ...' may produce 'java.lang.NullPointerException" What does this mean and how can I fix it? [CODE]
java|android
0
2016-04-15T19:53:10.137Z
2,016
4
19
4
83
3
275
44
2
1
true
false
false
false
false
false
zero
36,655,870
Android browser rendering half width of html text
<p>I have already disabled the CSS, deleted half of the HTML code, it looks like it is a bug with the Android browser. I'm using Android 4.2.2, built-in browser.</p> <p>How it should render:</p> <pre><code>Text 1234567891011 </code></pre> <p>How it is actually rendering:</p> <pre><code>Text 1234 567891011 </code></...
I have already disabled the CSS, deleted half of the HTML code, it looks like it is a bug with the Android browser. I'm using Android 4.2.2, built-in browser. How it should render: [CODE] How it is actually rendering: [CODE] I have double checked the page code and the CSS, disabled Javascript and CSS, and still get the...
javascript|android|jquery|html|css
2
2016-04-15T20:00:39.340Z
2,016
4
20
4
110
1
758
49
5
2
true
false
false
false
false
false
low
36,655,880
Cannot access variables from Async Task
<p>I am new to android.I have spent too much time solving this issue with no success.</p> <p>So i have service <code>Serv.java</code>.</p> <pre><code>public class Serv extends Service { private String a = "aa"; private String b = "bb"; private String c = "100"; //called by some class. public void setcc(String s) { c...
I am new to android.I have spent too much time solving this issue with no success. So i have service Serv.java . [CODE] But when i run the same service again it shows correct value for c(cc).There is problem when i am accessing for the first time. EDIT- The flow works fine if i make private String c to private static S...
android|android-asynctask|global-variables
0
2016-04-15T20:01:11.667Z
2,016
4
20
4
866
1
606
39
3
1
true
false
false
false
false
false
zero
36,656,077
MultiSelectListPreferenceDialogFragment cannot be shown with SupportFragmentManager
<p>When using MultiSelectListPreference with PreferenceFragmentCompat, like all preference with dialogs, we need to use a DialogFragment to show the preference interface and capture the input. The support library provides just such a dialog fragment: MultiSelectListPreferenceDialogFragment</p> <p>However, this inheri...
When using MultiSelectListPreference with PreferenceFragmentCompat, like all preference with dialogs, we need to use a DialogFragment to show the preference interface and capture the input. The support library provides just such a dialog fragment: MultiSelectListPreferenceDialogFragment However, this inherits from andr...
android|android-fragments|android-support-library
3
2016-04-15T20:14:16.067Z
2,016
4
20
4
407
0
1,483
83
3
2
true
true
false
false
false
false
low
36,656,115
Firebase Invalid Email Error in Android
<p>I am always getting an error while trying to register a user to firebase in my android app. </p> <blockquote> <p>"The email specified is invalid"</p> </blockquote> <p>I noticed this happens on JellyBean devices and I don't know what the problem is, whether it is from the API or something else. </p> <p>My code s...
I am always getting an error while trying to register a user to firebase in my android app. "The email specified is invalid" I noticed this happens on JellyBean devices and I don't know what the problem is, whether it is from the API or something else. My code snippet is given below: [CODE]
java|android|firebase|firebase-authentication
1
2016-04-15T20:17:16.783Z
2,016
4
20
4
172
0
291
39
4
1
true
true
false
false
false
false
low
36,656,117
App chrashes while changing view
<p>I want to create a very simple app. The app should consists of 2 views. In both views are one button. By clicking the button the view should change. </p> <p>Here is my folder structure</p> <p><a href="https://i.stack.imgur.com/FkdRR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FkdRR.png" alt=...
I want to create a very simple app. The app should consists of 2 views. In both views are one button. By clicking the button the view should change. Here is my folder structure I have two activitys and two activity_layouts. As you can see OverviewActivity isn't inside the activity folder. When I place it into the folde...
android|xml
0
2016-04-15T20:17:20.697Z
2,016
4
20
4
98
3
804
32
2
5
true
false
false
false
false
false
zero
36,656,172
Android SharedPreferences is not saving after re-opening the application
<p>I am trying to add a function named <code>removeCard</code>, this function receives an array of strings. This array length is 48 and the strings inside this array contains a name of a card, i.e <em>prince</em> or <em>knight</em>. If a <code>String</code> inside this array is <code>null</code> it means there is no mo...
I am trying to add a function named removeCard , this function receives an array of strings. This array length is 48 and the strings inside this array contains a name of a card, i.e prince or knight . If a String inside this array is null it means there is no more card to delete (the game contains 48 cards but maybe I ...
android
0
2016-04-15T20:22:07.413Z
2,016
4
20
4
39
0
1,198
72
1
4
true
true
false
false
false
false
zero
36,656,173
How to get the current location on MapsActivity AndroidStudio
<p>I searched everywhere on the Internet for a good tutorial that explains how to get the user's location on the MapsActivity (Android Studio). But I didn't find, even some explanations in a forum. </p> <p>So here's what I want: When the user goes on the Map layout of my app, they should see their current location. </...
I searched everywhere on the Internet for a good tutorial that explains how to get the user's location on the MapsActivity (Android Studio). But I didn't find, even some explanations in a forum. So here's what I want: When the user goes on the Map layout of my app, they should see their current location. I created the ...
android|android-studio|location
1
2016-04-15T20:22:11.460Z
2,016
4
20
4
2,489
1
573
61
3
1
true
false
false
false
false
false
low
36,656,384
phonegap-plugin-push do not register
<p>I'm learning on how to make app using phonegap and i'm trying to use phonegap push plugin from <a href="https://github.com/phonegap/phonegap-plugin-push/" rel="nofollow">here</a> the issue is that after i initialize it the register event do not fire, i made this steps</p> <ul> <li>create the project with phonegap</...
I'm learning on how to make app using phonegap and i'm trying to use phonegap push plugin from here the issue is that after i initialize it the register event do not fire, i made this steps create the project with phonegap installed the plugin following the instructions using phonegap plugin add phonegap-plugin-push --...
javascript|android|cordova|push-notification
0
2016-04-15T20:35:58.657Z
2,016
4
20
4
502
1
722
36
4
2
true
false
false
false
false
false
zero
36,656,466
Android Manifest is not working properly
<p>after some hardcore investigation I decided to ask you for help. I created app which sends some text messages from SQL database. I want to use smsManager so message will be sent right away. I added manifest permition but when I install app there is not confirmation that user agree with messages and messages are not...
after some hardcore investigation I decided to ask you for help. I created app which sends some text messages from SQL database. I want to use smsManager so message will be sent right away. I added manifest permition but when I install app there is not confirmation that user agree with messages and messages are not sen...
android|sms|manifest
0
2016-04-15T20:40:57.127Z
2,016
4
20
4
27
0
540
40
3
3
true
true
false
false
false
false
zero
36,656,518
XMLPullParser throws Error Expected: Start Tag
<p>i am building an RSS Reader for Android, but i have no idea what i am doing wrong. I used this tutorial: <a href="http://developer.android.com/training/basics/network-ops/xml.html" rel="nofollow">http://developer.android.com/training/basics/network-ops/xml.html</a></p> <p>I always get an error:</p> <blockquote> ...
i am building an RSS Reader for Android, but i have no idea what i am doing wrong. I used this tutorial: http://developer.android.com/training/basics/network-ops/xml.html I always get an error: /RSSXMLHELPER:: Error: org.xmlpull.v1.XmlPullParserException: expected: START_TAG {null}rss (position:START_DOCUMENT null@1:1 ...
java|android|rss
0
2016-04-15T20:44:56.110Z
2,016
4
20
4
1,162
1
524
46
3
1
true
false
false
false
false
false
zero
36,656,582
How to dynamically change TextSize of TextView in ListView after initial load
<p>I have a <code>ListView</code> that uses a <code>SimpleCursorAdapater</code> to pull data from an <code>SQLlite</code> database to populate a <code>TextView</code> in the <code>ListView</code>.</p> <p>I am enabling the user to increase or decrease the <code>TextSize</code> of the <code>TextView</code> in the <code>...
I have a ListView that uses a SimpleCursorAdapater to pull data from an SQLlite database to populate a TextView in the ListView . I am enabling the user to increase or decrease the TextSize of the TextView in the ListView dynamically at runtime - not everyone can read the standard font size without glasses and sometime...
android|listview|textview|simplecursoradapter
1
2016-04-15T20:49:52.770Z
2,016
4
20
4
48
0
959
77
4
3
true
true
false
false
false
false
low
36,656,638
Having trouble freeing up memory in android app after Activities are done running
<p>I recently made a game. As I was close to being finished with it, I started running into the OutOfMemory issue when starting new activities. After checking the memory monitor in Android Studio I noticed that my activities stay in memory after I am done with them. How can I free up more memory?</p> <p><strong>EDIT:<...
I recently made a game. As I was close to being finished with it, I started running into the OutOfMemory issue when starting new activities. After checking the memory monitor in Android Studio I noticed that my activities stay in memory after I am done with them. How can I free up more memory? EDIT: I found another thr...
java|android|android-activity|memory
1
2016-04-15T20:53:24.597Z
2,016
4
20
4
2,891
2
2,233
81
4
3
true
false
true
false
false
false
low
36,656,719
AdMob not loading in android
<p>I am trying to implement an AdMob in my app and I am fairly new to this Android Development. My requirement is that when the user clicks on a button, a popup dialog should show up which is supposed to have an AdMob and a progress bar below it while my file downloads.</p> <p>But the issue is that AdMob is not loadi...
I am trying to implement an AdMob in my app and I am fairly new to this Android Development. My requirement is that when the user clicks on a button, a popup dialog should show up which is supposed to have an AdMob and a progress bar below it while my file downloads. But the issue is that AdMob is not loading at all. [...
android|android-fragments|admob|adsense
0
2016-04-15T20:59:20.463Z
2,016
4
20
4
406
1
549
28
4
3
true
false
false
false
false
false
zero
36,656,768
onPostExecute method not running
<p>The problem is onPostExecute method is not running actually,the code stops after executing onPreExecute.After entering credentials ,and clicking login button it is showing "Login status" only,but not the result i.e "Login success" or "login not success" from the php file,or you can say onPostExecute method is return...
The problem is onPostExecute method is not running actually,the code stops after executing onPreExecute.After entering credentials ,and clicking login button it is showing "Login status" only,but not the result i.e "Login success" or "login not success" from the php file,or you can say onPostExecute method is returning...
php|android
-2
2016-04-15T21:02:59.823Z
2,016
4
21
4
61
1
380
32
2
1
true
false
false
false
false
true
negative
36,656,781
Firebase auth with email and password NPE
<p>In 10% of the cases there is a null pointer exception when trying to log in with the email and password authentication with Firebase. This only happens in the release apk. It doesn't occur in the debug app. It says it can't pass null for email. But the email is filled in. And otherwise Firebase sents an error code, ...
In 10% of the cases there is a null pointer exception when trying to log in with the email and password authentication with Firebase. This only happens in the release apk. It doesn't occur in the debug app. It says it can't pass null for email. But the email is filled in. And otherwise Firebase sents an error code, but...
android|firebase|firebase-authentication
0
2016-04-15T21:03:58.993Z
2,016
4
21
4
334
0
548
41
3
4
true
true
false
false
false
false
zero
36,656,937
Set visibility of TextView from different Layout not working Android
<p>Im using spinner to hide textview from different layout/xml but my code is not working and Im stuck on this :(</p> <pre><code> LayoutInflater layoutInflater = (LayoutInflater) getBaseContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); final View addView = layoutInflater.i...
Im using spinner to hide textview from different layout/xml but my code is not working and Im stuck on this :( [CODE] feed_item.xml [CODE] There's no error in logcat but I think this is the problem and I don't get it. W/ViewRootImpl﹕ Dropping event due to no window focus: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_...
android|listview
0
2016-04-15T21:14:35.900Z
2,016
4
21
4
193
1
788
68
2
3
true
false
false
false
false
false
zero
36,657,000
Why is this implementation of parcelables to save and restore Custom Arraylist not Working
<p>I am fetching data from json with Volley and populating RecyclerView with the parsed data but I ran into a bit of problem: The call to get the items is in <code>onCreate</code> method, so the call is repeated each time the activity is recreated both from configuration changes and otherwise; hence the data is reloade...
I am fetching data from json with Volley and populating RecyclerView with the parsed data but I ran into a bit of problem: The call to get the items is in onCreate method, so the call is repeated each time the activity is recreated both from configuration changes and otherwise; hence the data is reloaded. So I found th...
android|android-recyclerview|parcelable
0
2016-04-15T21:18:57.613Z
2,016
4
21
4
306
2
1,124
90
3
2
true
false
false
false
false
false
zero
36,657,264
Load URL Image on GridView
<p>I have an app show images from internet in GridView but when run that is showed an empty activity and didn't showed the images </p> <p>why activity not get images ????????????</p> <p>this may code I copied it form a website but it run successfully on the site</p> <p>MainActivity.java</p> <pre><code> package c...
I have an app show images from internet in GridView but when run that is showed an empty activity and didn't showed the images why activity not get images ???????????? this may code I copied it form a website but it run successfully on the site MainActivity.java [CODE] ImageAdapter.java [CODE] main.xml [CODE]
android|eclipse|url|android-studio|gridview
0
2016-04-15T21:40:20.587Z
2,016
4
21
4
223
1
310
26
5
3
true
false
false
false
false
false
zero
36,657,343
How to getY() for ListView items
<p>In a horizontal LinearLayout (matching the screen width), I have two ListView instances (with dynamic list items) and a TextView in between. Using the TextView as a canvas, I would like to draw (Bezier) lines connecting either the selected list item in the left ListView with all of the list items in the right ListVi...
In a horizontal LinearLayout (matching the screen width), I have two ListView instances (with dynamic list items) and a TextView in between. Using the TextView as a canvas, I would like to draw (Bezier) lines connecting either the selected list item in the left ListView with all of the list items in the right ListView ...
android|listview|onscrolllistener
0
2016-04-15T21:45:18.093Z
2,016
4
21
4
108
1
1,699
32
3
1
true
false
false
false
false
false
zero
36,657,348
How can I send data across activities to display a message?
<p>I'm creating something kinda simple I guess and I ran into a few issues.</p> <p>The app scheme basically goes like that: Main screen display's info/news -> drawer (user selects option) -> -> open's a list -> upon clicking, 2 FAB's appear one for reading comments and one for sending one -> send FAB open's a form.</p...
I'm creating something kinda simple I guess and I ran into a few issues. The app scheme basically goes like that: Main screen display's info/news -> drawer (user selects option) -> -> open's a list -> upon clicking, 2 FAB's appear one for reading comments and one for sending one -> send FAB open's a form. Now what I'm ...
android|xml|android-layout|android-activity
0
2016-04-15T21:45:36.117Z
2,016
4
21
4
47
2
966
59
4
0
false
false
false
false
false
false
zero
36,657,355
Get images of movies in gridview to my android app using picasso
<p>I am trying to get images of movies in gridview to my android app using picasso, but the app is crashing on run time.</p> <p>This is my code.</p> <p><strong>MainActivity.java</strong></p> <pre><code>package com.example.manik.organisingmovies; { import android.os.Bundle; import android.support.design.widget.Floati...
I am trying to get images of movies in gridview to my android app using picasso, but the app is crashing on run time. This is my code. MainActivity.java [CODE] ArrangeMovies.java [CODE] list_image_group.xml [CODE] fragment_main.xml [CODE] This is error as in logcat [CODE]
android|gridview|picasso
0
2016-04-15T21:46:04.370Z
2,016
4
21
4
168
0
272
64
3
5
true
true
false
false
false
false
zero
36,657,414
Run android app on API 16 Handy from from Android Studio 2.0
<p>I'm not that experienced in android development unfortunately. I downloaded Android Studio for my Mac, installed java and did everything that was described in official documentation from developers.android.com (<a href="http://developer.android.com/training/basics/firstapp/index.html" rel="nofollow">http://developer...
I'm not that experienced in android development unfortunately. I downloaded Android Studio for my Mac, installed java and did everything that was described in official documentation from developers.android.com ( http://developer.android.com/training/basics/firstapp/index.html , http://developer.android.com/training/bas...
android|android-studio
1
2016-04-15T21:51:11.240Z
2,016
4
21
4
533
0
1,695
60
2
3
true
true
false
false
false
false
low
36,657,456
NullPointerException in Music Player Application
<p>I am developing a Music Player Application in Android Studio . </p> <p>This is my SongsManager.java</p> <pre><code>package com.example.mudit.take6; /** * Created by Mudit on 16/04/16. */ import java.io.File; import java.io.FilenameFilter; import java.util.ArrayList; import java.util.HashMap; public class SongsMa...
I am developing a Music Player Application in Android Studio . This is my SongsManager.java [CODE] } This is my AndroidBuildingMusicPlayerActivity.java [CODE] and this is the Error: [CODE] Can you Help me with this and tell me if i implementing right code. Any Help will be Appreciated .
android|nullpointerexception|audio-player|android-music-player
0
2016-04-15T21:53:39.353Z
2,016
4
21
4
460
1
287
48
4
3
true
false
false
false
false
false
zero
36,657,570
Directory not creating using mkdir() or mkdirs()
<p>Below is my code for MainActivity.java.<b>The error according to toasts is in creating directory.</b></p> <p>MainActivity.java</p> <pre><code>@Override protected void onActivityResult(int requestcode,int resultcode,Intent data){ super.onActivityResult(requestcode,resultcode,data); if (requestcode == TAKE_...
Below is my code for MainActivity.java. The error according to toasts is in creating directory. MainActivity.java [CODE] AndroidManifest.xml <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> permission is added [CODE] Toasts Output : Mounted or ReadMode WriteMode ON Directory Does Not Exist, C...
java|android
1
2016-04-15T22:02:12.287Z
2,016
4
22
4
1,510
3
418
48
2
2
true
false
false
false
false
false
low
36,657,593
Set tag abbreviations for custom views on XML
<p>In my app <strong>I extend</strong> <code>LinearLayout</code> and <code>RelativeLayout</code>, so every time I need to declare a layout in XML (which you may know it's quite often) I need to <strong>write a long tag</strong>, in order to point to the view's package.</p> <p>So the XML files look like this:</p> <pre...
In my app I extend LinearLayout and RelativeLayout , so every time I need to declare a layout in XML (which you may know it's quite often) I need to write a long tag , in order to point to the view's package. So the XML files look like this: [CODE] This is chaotic! Is there any way to abbreviate this? Like AppLinearLay...
java|android|xml
1
2016-04-15T22:04:01.973Z
2,016
4
22
4
213
3
396
45
3
1
true
false
false
false
false
false
low
36,657,755
Application name in AndroidManifest when building with multidex=true
<p>I have been trying to incorporate support for Parse Push in my app, following the instructions from <a href="https://github.com/sidiabale/parse4cn1/wiki/Setting-Up-Push-For-Android" rel="nofollow">this wiki</a> at GitHub. When building for Android, the last stumbling block was this error message in the build log:</p...
I have been trying to incorporate support for Parse Push in my app, following the instructions from this wiki at GitHub. When building for Android, the last stumbling block was this error message in the build log: Attribute "name" bound to namespace " http://schemas.android.com/apk/res/android " was already specified f...
android|codenameone|android-multidex|parse4cn1
1
2016-04-15T22:20:45.217Z
2,016
4
22
4
126
2
616
68
4
2
true
false
false
false
false
false
low
36,657,800
Android Custom Map Fragment Attributes
<p>I am trying to add a marker to a google map fragment on one of my activities. The map is displayed but there is no marker. It might have something to do with the activity type. Source code below.</p> <p><strong>content_checkin_info.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Relati...
I am trying to add a marker to a google map fragment on one of my activities. The map is displayed but there is no marker. It might have something to do with the activity type. Source code below. content_checkin_info.xml [CODE] CheckinInfo.java [CODE]
java|android|xml|google-maps|android-fragments
0
2016-04-15T22:25:03.923Z
2,016
4
22
4
731
1
251
38
5
2
true
false
false
false
false
false
zero
36,657,882
INTEGER PRIMARY KEY AUTOINCREMENT in Android not working
<p>I have the following code: </p> <pre><code>package com.example.mayur.myapplication; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.database.Cursor; import android.content.Context; import android.content.ContentValues; import android.util.Log; impo...
I have the following code: [CODE] logd always shows id=0 inside the load method for all the iterations. I have also tried removing autoincrement but it doesn't work because every time I try to print data from SQLite database it always prints the last entry. Please help.
android|sqlite|android-sqlite|auto-increment
1
2016-04-15T22:33:12.807Z
2,016
4
22
4
1,626
3
270
56
4
1
true
false
false
false
false
false
low
36,658,001
Android Bluetooth LE - Read Characteristics not working on Samsung
<p>I am trying to read the characteristics from a BLE device continously .</p> <p>I have created a Runnable in my service class:</p> <pre><code>private class BackgroundRunnableForRead implements Runnable { private volatile boolean isRunning = true ; @Override public void run() { ...
I am trying to read the characteristics from a BLE device continously . I have created a Runnable in my service class: [CODE] And on successful discovery of services i am calling: [CODE] And this is my on characterics read callback - [CODE] The application works fine on Nexus 5 , Nexus 4 and Motorola G . When i am runn...
android|bluetooth-lowenergy
7
2016-04-15T22:44:11.153Z
2,016
4
22
4
1,556
1
533
66
2
3
true
false
false
false
false
false
medium
36,658,021
Incorrect parameter in TextEdit in the array
<p>sorry for my bad English. I use the google translate. I just program a game for android. with my problem I give ingame checks made in an array. it is in this case the value of the checks displayed. then the amount of the checks is in a textedit displayed and pay a button for. when the button is pressed, to be disbur...
sorry for my bad English. I use the google translate. I just program a game for android. with my problem I give ingame checks made in an array. it is in this case the value of the checks displayed. then the amount of the checks is in a textedit displayed and pay a button for. when the button is pressed, to be disbursed...
java|android|arrays|xml|android-edittext
1
2016-04-15T22:46:19.603Z
2,016
4
22
4
32
1
613
44
5
1
true
false
false
false
false
false
low
36,658,249
Getting the package name, common name, and icon from LAST INSTALLED app using BroadcastReceiver
<p>I am trying to write a section of code that will allow me to get the common name, package name, and icon from the last installed app on my phone. Currently what I have is how to get the package name and common name from this source (<a href="https://stackoverflow.com/questions/5841161/get-application-name-from-packa...
I am trying to write a section of code that will allow me to get the common name, package name, and icon from the last installed app on my phone. Currently what I have is how to get the package name and common name from this source ( get application name from package name ), but this is not working for me. The first er...
java|android|broadcastreceiver|package-name
1
2016-04-15T23:11:28.997Z
2,016
4
23
4
842
1
1,240
95
4
4
true
false
false
false
false
false
low
36,658,280
Play local Video in webview
<p>I want to play local videos in crosswalk webview. I'm getting the video path from an intent opening my activity, so it could be stored internally or on sd card. </p> <p>Using this url <code>file:///storage/emulated/0/Download/movies/movie.mp4</code> i get <code>Failed to load resource: net::ERR_ACCESS_DENIED</code>...
I want to play local videos in crosswalk webview. I'm getting the video path from an intent opening my activity, so it could be stored internally or on sd card. Using this url file:///storage/emulated/0/Download/movies/movie.mp4 i get Failed to load resource: net::ERR_ACCESS_DENIED . Using input file dialog with URL.cr...
android|video|webview
13
2016-04-15T23:15:32.253Z
2,016
4
23
4
2,824
2
866
27
3
1
true
false
true
false
true
false
medium
36,658,331
Android EditText to int conversation error
<p>This probably the most asked question, but it very difficult to find some answers. First I am newbie. I want to make simple quadratic equation formula app. That would allow to to find solution fast. I bump with the problem that Android Studio say Code is okey, but device crashes after opening app.</p> <pre><code>pr...
This probably the most asked question, but it very difficult to find some answers. First I am newbie. I want to make simple quadratic equation formula app. That would allow to to find solution fast. I bump with the problem that Android Studio say Code is okey, but device crashes after opening app. [CODE] And logcat tha...
java|android
0
2016-04-15T23:21:31.887Z
2,016
4
23
4
168
3
354
42
2
2
true
false
false
false
false
false
zero
36,658,399
How to show menu item in action bar?
<p>I want the menu items to show on action bar. There is a lot of space on the ActionBar, but still they don't show up. Every item shown as three dots, why?</p> <p>.java file</p> <pre><code>public class GalleryActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) {...
I want the menu items to show on action bar. There is a lot of space on the ActionBar, but still they don't show up. Every item shown as three dots, why? .java file [CODE] .xml file [CODE]
android|android-actionbar|android-menu
0
2016-04-15T23:30:26.930Z
2,016
4
23
4
232
1
188
36
3
2
true
false
false
false
false
false
zero
36,658,528
java android programing.. obtain ip address from user
<p>i wrote android code to obtain an IP address from user in EditText, then communicate the mobile with a computer ip which obtained by user in EditText.</p> <p>this is my code, when I click on button nothing work:</p> <pre><code>public class MainActivity extends Activity { Button b; EditText et; TextView tv; priva...
i wrote android code to obtain an IP address from user in EditText, then communicate the mobile with a computer ip which obtained by user in EditText. this is my code, when I click on button nothing work: [CODE] The problem in HOST variable it shoul contain IP address from user. At first i wrote HOST = "192.168.2.1"; B...
java|android
1
2016-04-15T23:48:40.253Z
2,016
4
23
4
54
1
506
53
2
1
true
false
false
false
false
false
low
36,658,532
onInfoWindowClick final id only pass the last value of the volley array
<p>Im trying to pass the ID, coming from a volley array, to the onInfoWindowClick and put it on a bundle to open new detail activity (Dettaglio). In order to do this, it says I have to make final the ID. If I do this, the map opens, shows all the markers but if I open a infowondow and click each window only open the la...
Im trying to pass the ID, coming from a volley array, to the onInfoWindowClick and put it on a bundle to open new detail activity (Dettaglio). In order to do this, it says I have to make final the ID. If I do this, the map opens, shows all the markers but if I open a infowondow and click each window only open the last ...
android|arrays|infowindow
0
2016-04-15T23:49:17.930Z
2,016
4
23
4
43
0
581
71
3
1
true
true
false
false
false
false
zero
36,658,833
Firebase ServerValue.TIMESTAMP in Java data models objects
<p>I'm new to Firebase, and I've been really enjoying it so far. I'm running into a problem; I'm using the FirebaseListAdapter similar to the tutorial outline here: <a href="https://github.com/firebase/AndroidChat" rel="noreferrer">https://github.com/firebase/AndroidChat</a></p> <p>To use the FirebaseListAdapter, I n...
I'm new to Firebase, and I've been really enjoying it so far. I'm running into a problem; I'm using the FirebaseListAdapter similar to the tutorial outline here: https://github.com/firebase/AndroidChat To use the FirebaseListAdapter, I need to use data model objects (to get the automatic binding to work nicely). The pr...
android|firebase
9
2016-04-16T00:27:55.420Z
2,016
4
0
5
27,663
6
1,107
58
2
2
true
false
true
true
false
false
medium
36,658,862
Odd behavior of button in linear layout that has one line of text instead of two
<p>I have a <code>linear layout</code> wrapped in a <code>HorizontalScrollView</code>. Everything seems to be working fine except that one of the buttons in the layout is higher then the rest. </p> <p>The reason this button seems to be higher then the rest of the buttons is because it only has one line of text instead...
I have a linear layout wrapped in a HorizontalScrollView . Everything seems to be working fine except that one of the buttons in the layout is higher then the rest. The reason this button seems to be higher then the rest of the buttons is because it only has one line of text instead of two. Here is a screenshot of the ...
android|android-layout|android-button
2
2016-04-16T00:32:43.663Z
2,016
4
0
5
62
3
704
80
3
1
true
false
false
false
false
false
low
36,658,929
Android SSL Handshake Error
<ol> <li>I have an Apache HTTP Server which is configured using CA signed SSL Certificate.</li> <li>I am using ProxyPass to transfer the traffic from httpserver port 443 to IBM Worklight server <a href="http://localhost:9009" rel="nofollow">http://localhost:9009</a></li> </ol> <p>The problem is the approach is working...
I have an Apache HTTP Server which is configured using CA signed SSL Certificate. I am using ProxyPass to transfer the traffic from httpserver port 443 to IBM Worklight server http://localhost:9009 The problem is the approach is working perfectly on iOS devices but when it comes to Android devices I am getting ssl hand...
android|sslhandshakeexception
2
2016-04-16T00:43:38.393Z
2,016
4
0
5
1,523
1
341
27
2
1
true
false
false
false
false
false
low
36,658,943
how to verify login input with database php MySQL
<p>please help i'm doing a loging activity for my android application, i checked the email and password with my database using this code</p> <pre><code>&lt;?php try { // On se connecte à MySQL $bdd = new PDO('mysql:host=localhost;dbname=application;charset=utf8', 'root', ''); } catch(Exception $e) { // E...
please help i'm doing a loging activity for my android application, i checked the email and password with my database using this code [CODE] and i'm working with android studio this is the loginactivity.java that i used in it AsyncTask to get the result [CODE] i keep geting this error in php code "indefined index editu...
java|php|android
1
2016-04-16T00:45:13.580Z
2,016
4
0
5
709
1
509
49
3
3
true
false
false
false
false
false
low
36,659,012
button onclick crash when no value insert
<p>everything works perfect just when the user click on the button but no value in the editText the app cruse.</p> <p>I take the editText value and put it in a String , then I take the String and put it in Double.</p> <p>here is the code:</p> <pre><code> public class MainActivity extends AppCompatActivity { Ed...
everything works perfect just when the user click on the button but no value in the editText the app cruse. I take the editText value and put it in a String , then I take the String and put it in Double. here is the code: [CODE] here is the activity_main.xml: [CODE]
java|android|xml|android-layout|android-studio
1
2016-04-16T00:55:43.017Z
2,016
4
0
5
70
4
266
41
5
2
true
false
false
false
false
false
low
36,659,038
Get current location in onMapReady in android using google locations API
<p>I'm trying to display the current location of the user on the google map inside my app but I don't want to keep updating the location as the user moves. His initial location should be recorded and showed until he closes the app. I have written the following code for this:</p> <pre><code>private GoogleMap mMap; prot...
I'm trying to display the current location of the user on the google map inside my app but I don't want to keep updating the location as the user moves. His initial location should be recorded and showed until he closes the app. I have written the following code for this: [CODE] The problem with this code is that I'm g...
android|google-maps-android-api-2
8
2016-04-16T00:58:29.503Z
2,016
4
0
5
25,560
1
613
72
2
1
true
false
true
true
false
false
medium