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,762,834
Getting "EnclosingMethod" errors on building in Android Studio 2
<p>I am getting below build errors when I am running the app in Android Studio 2. These errors were not there when I was using earlier version of Android Studio.</p> <pre><code>Error:warning: Ignoring InnerClasses attribute for an anonymous inner class Error:(com.squareup.haha.guava.base.Joiner$1) that doesn't come wi...
I am getting below build errors when I am running the app in Android Studio 2. These errors were not there when I was using earlier version of Android Studio. [CODE] What are these errors and how to resolve them? Also, the apk is building fine and the app also runs perfectly.
android|android-studio-2.0
30
2016-04-21T07:36:03.230Z
2,016
4
7
3
9,181
4
276
64
2
1
true
false
true
false
true
false
high
36,762,900
Changing Screen brightness in 6.0 programmatically
<p>I am working on an android application which changes the screen brightness programmatically. I have a set brightness method which works on 5.1.1,But when i run the application on 6.0,it gives an error and closes the application. Please Help.</p> <p>Following is my approach:</p> <pre><code> public void setBrightnes...
I am working on an android application which changes the screen brightness programmatically. I have a set brightness method which works on 5.1.1,But when i run the application on 6.0,it gives an error and closes the application. Please Help. Following is my approach: [CODE]
android|android-6.0-marshmallow|screen-brightness
3
2016-04-21T07:38:54.637Z
2,016
4
7
3
10,268
3
274
50
3
1
true
false
true
false
false
false
low
36,762,946
Http Put Json Android
<p>i try to develop an server/client app. Server is glassfish, client android(Google http api).</p> <p>I use rest to transport data.</p> <p>If i do a Get all is nice.</p> <p>Now i want to do a Put, but i dont get my content on my server...</p> <p>Client :</p> <pre><code>JSONObject jO = new JSONObject(json); final ...
i try to develop an server/client app. Server is glassfish, client android(Google http api). I use rest to transport data. If i do a Get all is nice. Now i want to do a Put, but i dont get my content on my server... Client : [CODE] Server: [CODE] With a rest debugger (Postman), I can send some JSON to the server and ge...
android
0
2016-04-21T07:41:11.937Z
2,016
4
7
3
1,425
3
492
21
1
4
true
false
false
false
false
false
zero
36,762,969
get EditText value in doInBackground AsyncTask
<p>I want to pass Edittext's values inside doInBackground AsyncTask, I tride this code:</p> <pre><code> protected void onCreate(Bundle savedInstanceState) { ID = (EditText) findViewById(R.id.ID); lname = (EditText) findViewById(R.id.lname); fname = (EditText) findViewById(R.id.fname); phone = (EditT...
I want to pass Edittext's values inside doInBackground AsyncTask, I tride this code: [CODE] I passed the parameter as arguments, but it always empty I don't know why? can someone please tell me what I'm doing wrong?
android|android-studio|android-asynctask|android-edittext
0
2016-04-21T07:42:14.493Z
2,016
4
7
3
964
1
215
46
4
1
true
false
false
false
false
false
zero
36,762,976
onCreate not getting called when i checked with breakpoints
<p>onCreate not getting called, debugged the code with break points. </p> <pre><code>public class request_tmdb extends AppCompatActivity { public request_tmdb() { new request_token().execute(); } @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
onCreate not getting called, debugged the code with break points. [CODE] authentication class: [CODE] When I used breakpoints I found that request_tmdb constructor is called but onCreate() method is not called. Android Manifest [CODE] I am calling request_tmdb from DisplayMovie_Data class. [CODE]
android|oncreate
0
2016-04-21T07:42:34.483Z
2,016
4
7
3
1,244
2
297
59
2
4
true
false
false
false
false
false
zero
36,763,047
Android: Reading the string to specific character
<p>I am reading commands from <code>micro controller</code> in this format <code>@transfer:Off#</code> but some times the <code>micro controller</code> sends garbage commands like <code>@transfer:Off#@waste#</code> as the <code>controller's programming</code> is done by some other unknown <code>programmer</code>. I onl...
I am reading commands from micro controller in this format @transfer:Off# but some times the micro controller sends garbage commands like @transfer:Off#@waste# as the controller's programming is done by some other unknown programmer . I only need @transfer:Off# string which starts from @ and ends with first # The compi...
java|android|regex|split|substring
1
2016-04-21T07:45:36.270Z
2,016
4
7
3
67
1
517
49
5
1
true
false
false
false
false
false
low
36,763,058
Xml Pull Parser exception unexpected token position text
<p>I am trying to build a simple webservice in ASP.net with client on Android platform. I'm using Soap library for the connection client. Although I get the result what I want but still it shows as an error in logcat. I want to know what is the problem here.</p> <p>MainActivity:</p> <pre><code> @Override protecte...
I am trying to build a simple webservice in ASP.net with client on Android platform. I'm using Soap library for the connection client. Although I get the result what I want but still it shows as an error in logcat. I want to know what is the problem here. MainActivity: [CODE] Logcat: [CODE] As 4th line in Logcat says t...
android|web-services|soap
1
2016-04-21T07:45:56.950Z
2,016
4
7
3
808
0
513
56
3
2
true
true
false
false
false
false
low
36,763,216
user login with database and facebook
<p>This is my layout <a href="https://i.stack.imgur.com/ld73s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ld73s.png" alt="enter image description here"></a></p> <p>this is my activity_main</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools...
This is my layout this is my activity_main [CODE] this is my MainActivity [CODE] While running the app it gives this error.This is the error on my logcat [CODE] I want to login via facebook .This worked fine when I used just for facebook.But once I add login and signup button to main activity and implemented them.I got...
android|facebook-login
0
2016-04-21T07:52:37.123Z
2,016
4
7
3
62
1
472
37
2
5
true
false
false
false
false
false
zero
36,763,284
Android Studio 2.0 debug build problems
<p>Several days ago I updated my Android studio to 2.0 version and now I have several problems with it.</p> <ol> <li><p>After building my application which was in total about 5MB (before updating) it turned out that now the app takes 5MB just for app, 11MB data, and 35MB cache. Why?</p></li> <li><p>The app loads about...
Several days ago I updated my Android studio to 2.0 version and now I have several problems with it. After building my application which was in total about 5MB (before updating) it turned out that now the app takes 5MB just for app, 11MB data, and 35MB cache. Why? The app loads about 15 seconds on the first run and gen...
android|android-studio|android-studio-2.0
2
2016-04-21T07:56:02.103Z
2,016
4
7
3
1,276
3
781
39
3
1
true
false
false
false
false
false
low
36,763,303
Parsing Boolean JSON value is always giving me false
<p>I am getting the following JSON: </p> <pre><code> { "ID": "479", "id": "479", "name": "Nishant Kango", "last_logged": "1461225061", "current_status": "icon-online prople-online", "room_id": "d18f655c3fce66ca401d5f38b48c89af", "current_user": false, "lastmessage": [], "userInfo...
I am getting the following JSON: [CODE] I have to check the online/offine status of a user using online key inside the userInfo object.I am using the following code : [CODE] When i tried to use this statement : [CODE] It gives me the error that java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang...
android|json
1
2016-04-21T07:56:55.243Z
2,016
4
7
3
1,529
5
552
52
2
4
true
false
false
false
false
false
low
36,763,336
getString() error Application::onCreate started from BroadcastReceiver for action android.intent.action.PACKAGE_ADDED
<p>I have some very weird Android crash reports like below from small number of devices and it looks like <code>getString()</code> in the <code>Application::onCreate()</code> failed in some cases when the Application is created via BroadcastReceiver for the Action '<code>android.intent.action.PACKAGE_ADDED</code>'. Thi...
I have some very weird Android crash reports like below from small number of devices and it looks like getString() in the Application::onCreate() failed in some cases when the Application is created via BroadcastReceiver for the Action ' android.intent.action.PACKAGE_ADDED '. This is not replicable in our local devices...
android
1
2016-04-21T07:59:02.777Z
2,016
4
7
3
140
0
328
117
1
1
true
true
false
false
false
false
low
36,763,353
Pagination with retrofit doesn't load new items
<p>I have an API response that I need to show on my listView. At the beginning It starts off with 15 items, and I want to add more as the user scrolls down and reaches the end of the list. What would be the best strategy to page through the API automatically with Retrofit, so that all available data is downloaded by de...
I have an API response that I need to show on my listView. At the beginning It starts off with 15 items, and I want to add more as the user scrolls down and reaches the end of the list. What would be the best strategy to page through the API automatically with Retrofit, so that all available data is downloaded by defau...
android|retrofit|api-design
1
2016-04-21T07:59:42.783Z
2,016
4
7
3
387
0
622
47
3
3
true
true
false
false
false
false
low
36,763,382
app:transformClassesWithJarMergingForDebug FAILED
<p>when I try to run the app I am getting this error</p> <p>before</p> <blockquote> <pre><code>Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzsk.class </co...
when I try to run the app I am getting this error before [CODE] Now [CODE] I referred this , this and this . Tried the solutions mentioned there. Still I am far away from solving the Issue. Please have a look on the app build gradle [CODE] I am happy to provide more information if needed. UPDATE When I comment compile ...
android|android-studio|gradle
0
2016-04-21T08:01:03.607Z
2,016
4
8
3
5,980
2
392
49
3
3
true
false
true
false
false
false
zero
36,763,493
Animation on TextView not working after changing textview Location
<p>I am using a textview Who's position is changed on touch by following code</p> <pre><code> tvPostText.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { scaleGestureDetector.onTouchEvent(event); if (event.getPointerCo...
I am using a textview Who's position is changed on touch by following code [CODE] I am applying rotate animation on it. If i change the location of textview by finger touch then animation in not working properly. can some one suggerst me how can i apply animation on textview even after change of textview Position. Foll...
android|animation|textview
0
2016-04-21T08:06:36.657Z
2,016
4
8
3
7,970
2
353
66
3
2
true
false
true
false
false
false
zero
36,763,565
I want a popup in my android
<p><a href="http://i.stack.imgur.com/V782E.jpg" rel="nofollow">I want a pop like this when i click an item in the list. In the popupmenu i should not be able to increase my height above 7 ft and 0 inch and shouldnt decrease my height below 3 ft and 0 inch.</a></p> <p>This is my activity</p> <pre><code>package com.ex...
I want a pop like this when i click an item in the list. In the popupmenu i should not be able to increase my height above 7 ft and 0 inch and shouldnt decrease my height below 3 ft and 0 inch. This is my activity [CODE]
android|android-popupwindow
-2
2016-04-21T08:09:55.100Z
2,016
4
8
3
132
1
220
28
2
1
true
false
false
false
false
true
negative
36,763,599
WSO2-EMM Android Agent server unavailable
<p>I'm trying to setup the WSO2-EMM on a server. I've successfully started the server and logged in to the Enterprise Mobility Manager with the default admin/admin username and password. I'm using https to connect to the EMM (HTTP doesn't work for me). I have not changed any settings in the XML files on the server. Wha...
I'm trying to setup the WSO2-EMM on a server. I've successfully started the server and logged in to the Enterprise Mobility Manager with the default admin/admin username and password. I'm using https to connect to the EMM (HTTP doesn't work for me). I have not changed any settings in the XML files on the server. What i...
android|wso2|wso2-iot
0
2016-04-21T08:11:14.637Z
2,016
4
8
3
615
1
2,623
41
3
0
false
false
false
false
false
false
zero
36,763,696
How to create a 'transparent circle inside rectangle' shape in XML in Android?
<p>I'm trying to create the following design in my app. </p> <p>Design Mockup<br> <a href="https://i.stack.imgur.com/vQp4R.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/vQp4R.jpg" alt="(https://photos.google.com/share/AF1QipPhCGTgf9zi7MetWJYm0NQ14c3wqzjqnEwxsajCFHEjqzt5R29qYvIjZ2C71q7EnQ?key=WUZKSXA1WVVwSl...
I'm trying to create the following design in my app. Design Mockup Its an overlay on top of the main UI. Trying to create this using a layout on top of the main UI with its background as a translucent shape created in XML. However, even after reading multiple posts, I'm not able to figure it out. I tried the following ...
android|porter-duff
19
2016-04-21T08:15:51.380Z
2,016
4
8
3
14,640
3
620
78
2
2
true
false
true
true
true
false
medium
36,763,769
Xpath that does not contain a child appium
<p>I'm new with appium. I have a list of elements inside my screen that are in relatives layouts but the list contain different types of elements and I want to access just the one with a specific type of them.</p> <p>For example : A publicity will look like this </p> <ul> <li>[Relative layout] <ul> <li>[View] <u...
I'm new with appium. I have a list of elements inside my screen that are in relatives layouts but the list contain different types of elements and I want to access just the one with a specific type of them. For example : A publicity will look like this [Relative layout] [View] [Web view] A normal article will have this...
android|xpath|appium
3
2016-04-21T08:19:17.930Z
2,016
4
8
3
8,101
1
753
42
3
0
false
false
true
false
false
false
low
36,763,856
getCheckedRadioButtonId() on RadioGroup unchecked value not given correct using data binding android
<p>I am trying to use validation on radio group. But i can see the if no radio button is not checked the return value of getCheckedRadioButtonId() is not -1. I am using databinding.</p> <p>The xml file of radio group. </p> <pre><code>&lt;RadioGroup android:id="@+id/LabRadioGroup" android:layout_width="wrap_co...
I am trying to use validation on radio group. But i can see the if no radio button is not checked the return value of getCheckedRadioButtonId() is not -1. I am using databinding. The xml file of radio group. [CODE] Here is the debug value in the screen shot. Java code [CODE]
java|android|android-layout|android-studio
0
2016-04-21T08:24:28.540Z
2,016
4
8
3
1,433
1
275
100
4
2
true
false
false
false
false
false
zero
36,763,880
pass the URL to multiple non-activity java class android
<p>In both the activity I am passing this URL <a href="http://example.com/ss.svc/APIabc?A=10&amp;Key=XXXXX&amp;From=19&amp;To=221&amp;Date=19-Apr-2016" rel="nofollow noreferrer">http://example.com/ss.svc/APIabc?A=10&amp;Key=XXXXX&amp;From=19&amp;To=221&amp;Date=19-Apr-2016</a> ,but the thing is I am passing some dynam...
In both the activity I am passing this URL http://example.com/ss.svc/APIabc?A=10&Key=XXXXX&From=19&To=221&Date=19-Apr-2016 ,but the thing is I am passing some dynamic parameters to the link which I passed to CustomizedListView.java activity and that same dynamic link I want to pass to XMLParser.java ,which I am unable ...
java|android|android-intent|xml-parsing|uri
0
2016-04-21T08:25:45.633Z
2,016
4
8
3
138
1
844
56
5
4
true
false
false
false
false
false
zero
36,763,893
Execution failed for task Execution failed for task
<p>Here is mybuild.gradle file here I added jexcel.jar for my project after that is shows error</p> <p>apply plugin: 'com.android.application'</p> <pre><code>android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.example.web03.bulkmessenger" minSdkVersion 15 targ...
Here is mybuild.gradle file here I added jexcel.jar for my project after that is shows error apply plugin: 'com.android.application' [CODE] } my error list is given below [CODE]
android|runtime-error|android-gradle-plugin
0
2016-04-21T08:26:23.400Z
2,016
4
8
3
77
0
177
51
3
2
true
true
false
false
false
false
zero
36,764,024
how to avoid my app from starting automatically when i start facebook app
<p>i created an app where users can log in via facebook login button. the problem is - whenever i start the facebook app on the phone, it automatically starts the other app, too and logs the user in. any idea how to avoid this? here is my login action for facebook: </p> <pre><code>fbLoginButton.setReadPermissions("us...
i created an app where users can log in via facebook login button. the problem is - whenever i start the facebook app on the phone, it automatically starts the other app, too and logs the user in. any idea how to avoid this? here is my login action for facebook: [CODE] Do i have to log the user out in some special way ...
android|facebook|facebook-graph-api|authentication|logout
1
2016-04-21T08:33:04.170Z
2,016
4
8
3
29
0
522
73
5
1
true
true
false
false
false
false
low
36,764,075
Disabling GPS LocationListener calls onProviderDisabled on GPS and Network
<p>as the questions says, when i disable the GPS on the device, the function <code>onProviderDisabled(String Provider)</code> gets called twice (for gps and then for network). but i still get network positions <code>onLocationChanged(Location location)</code></p> <p>why is that?</p> <p>also when enabling back the GPS...
as the questions says, when i disable the GPS on the device, the function onProviderDisabled(String Provider) gets called twice (for gps and then for network). but i still get network positions onLocationChanged(Location location) why is that? also when enabling back the GPS, onProviderEnabled gets called twice.. for G...
android|gps|locationmanager|locationlistener
0
2016-04-21T08:35:01.320Z
2,016
4
8
3
809
0
345
74
4
1
true
true
false
false
false
false
zero
36,764,272
gradle experimental library link order
<p>I am trying to build an application using android gradle experimental plugin 0.7.0-alpha5.</p> <p>I have an application "mainProject" that depends on a native library "nativeLibrary", which itself depends on several other library (either precompiled or not)</p> <p>When I am building my nativeLibrary project, every...
I am trying to build an application using android gradle experimental plugin 0.7.0-alpha5. I have an application "mainProject" that depends on a native library "nativeLibrary", which itself depends on several other library (either precompiled or not) When I am building my nativeLibrary project, everything compiles and ...
android-studio|g++|linker-errors|ndk-build|gradle-experimental
0
2016-04-21T08:42:47.027Z
2,016
4
8
3
377
1
1,113
38
5
3
true
false
false
false
false
false
zero
36,764,278
Unnecessary view on top of CoordinatorLayout
<p>View Hierarchy</p> <pre><code>&lt;LinearLayout&gt; &lt;Toolbar&gt;.. &lt;/Toolbar&gt; &lt;FrameLayout&gt; &lt;CoordinatorLayout&gt;.. &lt;FrameLayout&gt; &lt;/FrameLayout&gt; &lt;/CoordinatorLayout&gt; &lt;/FrameLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p><a href="https://i.stack.imgur.com/b23mT.png" rel="no...
View Hierarchy [CODE] Want to get rid of that dark blue strip . Not sure why Co-ordinatorLayout is appending this view on the top. I tried replacing it with LinearLayout which led to desired results. Not able to figure out why and what view is being displayed as the blue dark strip. toolbar_layout.xml [CODE] activity_m...
android|android-layout|android-coordinatorlayout
-1
2016-04-21T08:43:08.840Z
2,016
4
8
3
265
1
425
44
3
4
true
false
false
false
false
true
negative
36,764,439
make status bar kitkat Translucent android
<p>I follow some tutorial on the internet to make status bar on api19 (kitkat) transparent, but i got something like this (<code>android:theme="@style/AppTheme.NoActionBar"</code> <strong>style</strong>) <a href="https://i.stack.imgur.com/GpPiM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GpPiM.jp...
I follow some tutorial on the internet to make status bar on api19 (kitkat) transparent, but i got something like this ( android:theme="@style/AppTheme.NoActionBar" style ) and v-19\styles.xml [CODE] styles.xml [CODE] how i turn the white translucent become transparent or colored primary so it will be blended with acti...
android|xml
0
2016-04-21T08:49:37.697Z
2,016
4
8
3
638
2
327
42
2
2
true
false
false
false
false
false
zero
36,764,491
Load Json accross several fragment on a ViewPager, needs of a better way
<p>Developer advisory: The following content might hurt the sensibility of some developers, please read it at your own risks.</p> <p>I'm beginning in Android developement / java, and my goal is to load a json from a remote rest service, and use it across 2 fragments on a ViewPager, currently i'm doing it this way (ple...
Developer advisory: The following content might hurt the sensibility of some developers, please read it at your own risks. I'm beginning in Android developement / java, and my goal is to load a json from a remote rest service, and use it across 2 fragments on a ViewPager, currently i'm doing it this way (please read de...
java|android|json|android-fragments|android-viewpager
0
2016-04-21T08:52:00.880Z
2,016
4
8
3
269
1
1,128
72
5
3
true
false
false
false
false
false
zero
36,764,578
What is the best way to schedule task in android?
<p>My project requirement is to schedule multiple tasks very frequently at exact time with delay between 0-5 seconds. What is the best way to schedule tasks for this purpose? Below are the options I considered: 1. Alarm Manager : Using Alarm Manager I have observed alarm does not schedule below 5 seconds. Even if I am ...
My project requirement is to schedule multiple tasks very frequently at exact time with delay between 0-5 seconds. What is the best way to schedule tasks for this purpose? Below are the options I considered: 1. Alarm Manager : Using Alarm Manager I have observed alarm does not schedule below 5 seconds. Even if I am pas...
android|android-alarms
-1
2016-04-21T08:55:43.147Z
2,016
4
8
3
1,613
1
603
49
2
1
true
false
false
false
false
true
negative
36,764,729
Opening a fragment(s) in home activity
<p>I've been searching through Stack Overflow but couldn't seem to find something useful about this issue I am having .. Below I have attached the code for the Home Activity that I have, and the XML file for it. I cant seem to get my head around what the problem is, I dunno what I am doing wrong. I want to show the con...
I've been searching through Stack Overflow but couldn't seem to find something useful about this issue I am having .. Below I have attached the code for the Home Activity that I have, and the XML file for it. I cant seem to get my head around what the problem is, I dunno what I am doing wrong. I want to show the conten...
android|android-layout|listview|android-fragments|android-framelayout
-3
2016-04-21T09:01:24.573Z
2,016
4
9
3
1,323
2
738
38
5
2
true
false
false
false
false
true
negative
36,764,841
Android : BKS keystore throwing error for connecting to https.
<p>I am working on an Android project in which I am trying to connect to an <code>HTTPS</code> endpoint with an <code>Http</code> client. I checked some links and found out that I have to convert the <code>.keystore</code> file to <code>.bks</code> or bouncy castle. I used <a href="http://portecle.sourceforge.net/" rel...
I am working on an Android project in which I am trying to connect to an HTTPS endpoint with an Http client. I checked some links and found out that I have to convert the .keystore file to .bks or bouncy castle. I used Portecle and was able to convert the keystore file to bks. I am getting the following error when I tr...
java|android|ssl|bouncycastle|keystore
0
2016-04-21T09:06:38.293Z
2,016
4
9
3
5,498
2
477
62
5
2
true
false
true
false
false
false
zero
36,764,989
Android unregister receiver but still receiving
<p>I have registered receiver on onCreate method of Service and unregister it onDestroy? It works perfectly, but on certain Samsung Galaxy s3 i still recives receiver even i stopped service. How to find a solution? is it possible? Please help me. Thanks in advance</p> <pre><code>package com.sms.sendsms.service; impor...
I have registered receiver on onCreate method of Service and unregister it onDestroy? It works perfectly, but on certain Samsung Galaxy s3 i still recives receiver even i stopped service. How to find a solution? is it possible? Please help me. Thanks in advance [CODE] }
android|broadcastreceiver
2
2016-04-21T09:12:12.263Z
2,016
4
9
3
1,044
3
270
47
2
1
true
false
false
false
false
false
low
36,765,079
compare a string with a database column's values
<p>I am developing an app in which i have a profiles list which is stored in a database containing too many profiles,the problem is that when i save a new profile, the app must have to check the profile is already exist or not....how to do that </p> <pre><code> mSaveProfile.setOnClickListener(new View.OnClickListener(...
I am developing an app in which i have a profiles list which is stored in a database containing too many profiles,the problem is that when i save a new profile, the app must have to check the profile is already exist or not....how to do that [CODE] and the following function is only checking the last entered profile no...
java|android|sqlite
0
2016-04-21T09:15:43.937Z
2,016
4
9
3
458
2
346
48
3
2
true
false
false
false
false
false
zero
36,765,163
screen capture of other running apps (android)
<p>My aim is to build a screen sharing (or remote viewing) application for android just like there is VNC for desktop. For this purpose i need to take screenshots and then relay them over the network to the target. I browsed through the solutions offered on a <a href="https://stackoverflow.com/questions/34994007/get-sc...
My aim is to build a screen sharing (or remote viewing) application for android just like there is VNC for desktop. For this purpose i need to take screenshots and then relay them over the network to the target. I browsed through the solutions offered on a post on stack overflow. Having a slight knowledge of android (i...
android|screenshot|screen-capture
1
2016-04-21T09:19:14.713Z
2,016
4
9
3
565
0
959
46
3
0
false
true
false
false
false
false
low
36,765,170
How to navigate forward between activities while discarding a login screen from the stack?
<p>I have an app that if I am on a certain screen, and the user tries to access a specific part of the app that needs auth, it goes to the log in screen before continuing.</p> <p>What the app currently does is, say I am on screen 3, but want to go to screen 4, but I need to login first to get to screen 4. The login sc...
I have an app that if I am on a certain screen, and the user tries to access a specific part of the app that needs auth, it goes to the log in screen before continuing. What the app currently does is, say I am on screen 3, but want to go to screen 4, but I need to login first to get to screen 4. The login screen is sho...
android|android-activity|activity-stack
2
2016-04-21T09:19:27.753Z
2,016
4
9
3
84
4
1,098
90
3
0
false
false
false
false
false
false
low
36,765,195
Spinner setSelection data is going to vanish when scrolling ListView
<p>Hi I am new for android and in my ListView,I have added Spinner.</p> <p>I am facing problem,when I have selected any item from spinner and,I scroll my ListView. Spinner setSelection data is being vanished. </p> <p>Please help me how can I resolve this problem ?</p> <h2>MainActivity:-</h2> <pre><code>public class...
Hi I am new for android and in my ListView,I have added Spinner. I am facing problem,when I have selected any item from spinner and,I scroll my ListView. Spinner setSelection data is being vanished. Please help me how can I resolve this problem ? MainActivity:- [CODE] ListViewAdapter:- [CODE] Friend:- [CODE]
android|listview|android-spinner
2
2016-04-21T09:20:30.707Z
2,016
4
9
3
813
2
309
68
3
3
true
false
false
false
false
false
low
36,765,246
How to solve Android error on lunching app in android studio?
<p><strong>I'm getting this error when i'm lunching my app:</strong></p> <pre><code>Installation failed with message INSTALL_FAILED_UID_CHANGED. It is possible that this issue is resolved by uninstalling an existin version of the apk if it is present, and then re-installing. WARNING: Uninstalling will remove the applic...
I'm getting this error when i'm lunching my app: [CODE] I clicked 'OK' but then i'm getting this log message: [CODE] i'v managed to overcome it by replacing the appId, but i need to keep the current app id and not replaced it. i also tried deleting the package with adb and did not got response at all from the shell: ad...
android|android-studio
2
2016-04-21T09:22:49.207Z
2,016
4
9
3
1,799
2
450
61
2
2
true
false
false
false
false
false
low
36,765,300
how to open map onsliding tab
<pre><code>package city.transporter.truckerconsumerapp; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentMana...
[CODE] when open app i got Exception: Attempt to invoke virtual method 'com.google.android.gms.maps.GoogleMap com.google.android.gms.maps.SupportMapFragment.getMap()' on a null object reference , how to open map onsliding tab>
android
0
2016-04-21T09:25:18.273Z
2,016
4
9
3
20
0
226
29
1
1
true
true
false
false
false
false
zero
36,765,439
About HTTP connection on android throw exception
<p>What I want to do is to create a currency converter. I need a live rate for my application. First I will download a csv file from yahoo finance. the csv format is: </p> <blockquote> <p>"HKDJPY=X",14.1349,"4/21/2016","8:54am" "HKDCNY=X",0.8348,"4/21/2016","8:54am" "HKDTWD=X",4.1611,"4/21/2016","8:53am"</p> </b...
What I want to do is to create a currency converter. I need a live rate for my application. First I will download a csv file from yahoo finance. the csv format is: "HKDJPY=X",14.1349,"4/21/2016","8:54am" "HKDCNY=X",0.8348,"4/21/2016","8:54am" "HKDTWD=X",4.1611,"4/21/2016","8:53am" After get this csv file, I would inser...
android|csv
0
2016-04-21T09:30:19.037Z
2,016
4
9
3
20
0
647
48
2
1
true
true
false
false
false
false
zero
36,765,454
Creating an Android NativeScript plugin
<p>I'm trying to create a plugin that allows a NativeScript application to connect to an MQTT server. When I try to run the application I get the following error in my application: </p> <blockquote> <p>java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.testMQTT/com.tns.NativeScript...
I'm trying to create a plugin that allows a NativeScript application to connect to an MQTT server. When I try to run the application I get the following error in my application: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.testMQTT/com.tns.NativeScriptActivity}: com.tns.NativeScri...
javascript|android|mqtt|nativescript|paho
0
2016-04-21T09:30:58.307Z
2,016
4
9
3
656
1
1,374
39
5
2
true
false
false
false
false
false
zero
36,765,465
ViewPager with page pop
<p>I have to show a collection of train tickets to a user so I used a ViewPager, where each page contains a single ticket. This ViewPager has padding, allowing to see a small portion of the next/previous ticket, while showing the focused ticket in the middle. </p> <p>But what I want to achieve is that when I pressed a...
I have to show a collection of train tickets to a user so I used a ViewPager, where each page contains a single ticket. This ViewPager has padding, allowing to see a small portion of the next/previous ticket, while showing the focused ticket in the middle. But what I want to achieve is that when I pressed a ticket page...
android|collections|android-viewpager
0
2016-04-21T09:31:34.077Z
2,016
4
9
3
140
2
911
23
3
0
false
false
false
false
false
false
zero
36,765,509
How to pass string from Subscriber onNext() to View?
<p>Current I'm facing a problem where I wanna get a string from database and return the string to my view. Framework I using is MVP and Rxjava. Explain in details in code below:</p> <p>fragment.java</p> <pre><code>@Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { //get a string...
Current I'm facing a problem where I wanna get a string from database and return the string to my view. Framework I using is MVP and Rxjava. Explain in details in code below: fragment.java [CODE] Presenter.java [CODE] So my problem here is, how do I pass the "languageLabel" to fragment so that in fragment I can use "te...
android|rx-java|mvp|observable
1
2016-04-21T09:33:48.433Z
2,016
4
9
3
223
2
728
52
4
2
true
false
false
false
false
false
low
36,765,523
How can I show the soft keyboard in a webview with a USB HID device attached when a button is clicked and an input is focused?
<p>I have a USB barcode scanner which is plugged into the device with USB OTG. Because this is picked up as a keyboard HID device, the soft keyboard is disabled when inputs are focused.</p> <p>I currently have a method which triggers the keyboard from JavaScript.</p> <pre><code>class JsObject { @JavascriptInterfa...
I have a USB barcode scanner which is plugged into the device with USB OTG. Because this is picked up as a keyboard HID device, the soft keyboard is disabled when inputs are focused. I currently have a method which triggers the keyboard from JavaScript. [CODE] I'm basically wanting it to open the keyboard on the follow...
android
26
2016-04-21T09:34:17.630Z
2,016
4
9
3
1,665
4
672
126
1
2
true
false
false
false
true
false
high
36,765,673
Unable to Parse JSON data properly
<p>I am getting below JSON data by querying URL </p> <pre><code>http://microblogging.wingnity.com/JSONParsingTutorial/jsonActors </code></pre> <p>But when I parse, I am only getting first set of data and not second one, not sure where am I making mistake. How to get all nodes from JSON array. Thanks for your help. </...
I am getting below JSON data by querying URL [CODE] But when I parse, I am only getting first set of data and not second one, not sure where am I making mistake. How to get all nodes from JSON array. Thanks for your help. Below is my code : [CODE]
android|json
0
2016-04-21T09:40:43.510Z
2,016
4
9
3
335
7
247
34
2
2
true
false
false
false
false
false
zero
36,765,786
Completely Disable Android Menu button Hardware Key in Lollipop without rooting the Device
<p>I am writing an app in which I need to disable Menu button.Now on this button press it minimises and sends my app to background. </p> <p>I want to get an Event triggered in my activity if someone has pressed the menu button.</p> <p>I have tried following links on Stack Overflow</p> <p><a href="https://stackoverfl...
I am writing an app in which I need to disable Menu button.Now on this button press it minimises and sends my app to background. I want to get an Event triggered in my activity if someone has pressed the menu button. I have tried following links on Stack Overflow Detecting physical Menu key press in Android Android: Ho...
android
2
2016-04-21T09:46:17.420Z
2,016
4
9
3
802
0
419
90
1
1
true
true
false
false
false
false
low
36,765,791
"Real" Resizing of Xamarin.Forms View
<p>I tried to make a ContentPage with a few ContentViews that are growing on tap (And layout its Children!). That was working well with the LayoutTo(...) Method from Xamarin.Forms.ViewExtensions. But I was getting some Issues with that, later I found <a href="http://xfcomplete.net/xamarin.forms/2016/01/14/layoutto-does...
I tried to make a ContentPage with a few ContentViews that are growing on tap (And layout its Children!). That was working well with the LayoutTo(...) Method from Xamarin.Forms.ViewExtensions. But I was getting some Issues with that, later I found that Article . LayoutTo does not really resize the View, the view will r...
xamarin|xamarin.ios|xamarin.android|xamarin.forms|xamarin-studio
0
2016-04-21T09:46:25.827Z
2,016
4
9
3
1,274
1
804
37
5
0
false
false
false
false
false
false
zero
36,765,872
Saving state in Android not working
<p>I have an activity that contains a fragment in it. The fragment has a progress bar and a text view, along with some other stuff. The progress bar and the text view both are visible sometimes, invisible at other times depending on some application logic.</p> <p>What I'm trying to do is save the current state of both...
I have an activity that contains a fragment in it. The fragment has a progress bar and a text view, along with some other stuff. The progress bar and the text view both are visible sometimes, invisible at other times depending on some application logic. What I'm trying to do is save the current state of both these view...
android|android-fragments|savestate
1
2016-04-21T09:49:11.097Z
2,016
4
9
3
147
1
1,374
35
3
2
true
false
false
false
false
false
low
36,765,986
Android: Save the activity state after a screen rotation
<p>we are working on project in order to create an application to help autits to communicate.</p> <p>In fact, after moving the ImageViews, all of them are getting back in place after my tablet's rotation. </p> <p>We tried a lot of things and we finally have made this code: </p> <pre><code>@Override protected void o...
we are working on project in order to create an application to help autits to communicate. In fact, after moving the ImageViews, all of them are getting back in place after my tablet's rotation. We tried a lot of things and we finally have made this code: [CODE] Here are my interrogations: When I set an id, it's just "...
android|layout|rotation|imageview|screen-rotation
0
2016-04-21T09:53:35.243Z
2,016
4
9
3
81
0
708
56
5
1
true
true
false
false
false
false
zero
36,766,016
How to get SD_Card path in android6.0 programmatically
<p>I am trying to check whether device having external storage or not by using external storage path like this given below</p> <pre><code> if (new File("/ext_card/").exists()) { specialPath = "/ext_card/"; } else if (new File("/mnt/sdcard/external_sd/").exists()) { specialPath = "/mnt/sdcard/extern...
I am trying to check whether device having external storage or not by using external storage path like this given below [CODE] But in marshmallow I con't find this path and while checking using ES FILEMANAGER, they give like storage/3263-3131 in Moto G 3rd generation. While check in other marshmallow devices that numbe...
android|android-6.0-marshmallow
9
2016-04-21T09:54:32.473Z
2,016
4
9
3
22,689
4
698
54
2
1
true
false
true
true
false
false
medium
36,766,049
Animation on items NavigationView - Android?
<p>I have bellow menu :</p> <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;group android:checkableBehavior="single"&gt; &lt;item android:id="@+id/nav_Search" android:icon="@drawable/search" android:title="@string/Search" /&gt; ...
I have bellow menu : [CODE] And I use from this menu in : [CODE] Can I have animation on icon's menu or ripple on each items?
android|android-animation|android-menu|android-navigationview
1
2016-04-21T09:55:59.450Z
2,016
4
9
3
1,184
1
125
44
4
2
true
false
false
false
false
false
low
36,766,061
Error when trying to update sqlite database in android
<p>I had my database working but all the records I have inserted were for checking purpose, now I wanted to delete all the tables and creating new ones, so I tried updating the database by changing the version. </p> <p>I didn't change anything on the create table queries but I'm getting a foreign key constraint failed...
I had my database working but all the records I have inserted were for checking purpose, now I wanted to delete all the tables and creating new ones, so I tried updating the database by changing the version. I didn't change anything on the create table queries but I'm getting a foreign key constraint failed (code 787)....
android|database|sqlite|constraints
0
2016-04-21T09:56:25.693Z
2,016
4
9
3
143
1
354
54
4
1
true
false
false
false
false
false
zero
36,766,064
SQLite storing Date issues
<p>I am trying to store a user inputted date on SQLite, however all I have managed to figure out is how to add the current date as set by the android device. I want the user to be able a date for expirydate and recieveddate, as opposed to them being taken from the device settings.</p> <p>Here is my code..</p> <pre><c...
I am trying to store a user inputted date on SQLite, however all I have managed to figure out is how to add the current date as set by the android device. I want the user to be able a date for expirydate and recieveddate, as opposed to them being taken from the device settings. Here is my code.. [CODE]
android|sqlite
-1
2016-04-21T09:56:31.380Z
2,016
4
9
3
89
2
303
26
2
1
true
false
false
false
false
true
negative
36,766,081
Android not enough storage memory
<p>I created an <code>Android</code> <code>app</code> sometime ago. What the <code>app</code> does is basically download a list of files (images and videos) and play them in a loop (like a <code>Playlist</code>).</p> <p>These files are saved in the default <code>Android External Storage Directory</code>. I get it usin...
I created an Android app sometime ago. What the app does is basically download a list of files (images and videos) and play them in a loop (like a Playlist ). These files are saved in the default Android External Storage Directory . I get it using this method: [CODE] Until now I never had storage problems but testing t...
android|android-external-storage|capacity|android-usb
3
2016-04-21T09:57:03.797Z
2,016
4
9
3
137
1
922
33
4
1
true
false
false
false
false
false
low
36,766,126
Add buttons in a drawer menu's footer
<p>I would like to add those buttons under a drawer menu</p> <p><a href="https://i.stack.imgur.com/d6UAN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/d6UAN.png" alt="drawerMenu"></a></p> <p>those are my xml files: </p> <p>(layout/activity_main)</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt...
I would like to add those buttons under a drawer menu those are my xml files: (layout/activity_main) [CODE] (menu/activity_main_drawer) [CODE] I tried to use a linearlayout with gravity bottom (or end) but it remained at the top
android|xml|navigation-drawer
8
2016-04-21T09:58:40.097Z
2,016
4
9
3
4,936
2
228
37
3
2
true
false
true
false
false
false
medium
36,766,170
Sending commands to Arduino with Bluetooth in Android app gives exception (message: invalid UUID)
<p>I'll to send commands to an Arduino by using Bluetooth. The application I've made is an Android app. The problem on code below, is that the last line gives this exception:</p> <blockquote> <p><strong><code>java.lang.IllegalArgumentException</code>:</strong> Invalid UUID: 86663102937730 </p> </blockquote> <p>Here...
I'll to send commands to an Arduino by using Bluetooth. The application I've made is an Android app. The problem on code below, is that the last line gives this exception: java.lang.IllegalArgumentException : Invalid UUID: 86663102937730 Here is the code: [CODE] I've also added this permissions: [CODE] Update: By an an...
android|bluetooth|arduino|uuid
0
2016-04-21T10:00:32.440Z
2,016
4
10
3
356
2
537
97
4
4
true
false
false
false
false
false
zero
36,766,237
Whoops, looks like an error occured. Phonegap Error
<p>I am trying to build an android app using HTML, CSS and Javascript (PHONEGAP). When I biult and install in my mobile, I found this error (Whoops, looks like an error occured). I tried many time but all the time I found this. It is ok in you Chrome Browser, but not working when I am installing it. </p> <p><a href="h...
I am trying to build an android app using HTML, CSS and Javascript (PHONEGAP). When I biult and install in my mobile, I found this error (Whoops, looks like an error occured). I tried many time but all the time I found this. It is ok in you Chrome Browser, but not working when I am installing it. enter image descriptio...
javascript|android|html|cordova|phonegap-build
0
2016-04-21T10:03:18.500Z
2,016
4
10
3
410
0
644
51
5
2
true
true
false
false
false
false
zero
36,766,286
Google play market " Optimization Tips " Tabs
<p>I published my app in Play Market,after verification, in the tab "Optimization Tips" I see, Optimize your app for tablets:APK-file should contain the retractable elements for all common formats Tablet PC screen resolution and gives me the <a href="http://developer.android.com/intl/ru/distribute/essentials/quality/ta...
I published my app in Play Market,after verification, in the tab "Optimization Tips" I see, Optimize your app for tablets:APK-file should contain the retractable elements for all common formats Tablet PC screen resolution and gives me the link . I slung the section: " Use Assets Designed for Tablet Screens " Ok after s...
android
3
2016-04-21T10:04:58.800Z
2,016
4
10
3
87
0
958
45
1
0
false
true
false
false
false
false
low
36,766,339
How to add separator at particular position inside recyclerview?
<p>I have a list of taskLists. To show the list I have used recyclerview. I have 1st 3 items as today , tomorrow and later in my list. I want to add one separator after 1st 3 items in recycler view. How can I do this?</p> <p>Adapter :</p> <pre><code> public class ListAdapter extends RecyclerView.Adapter&lt;ListAda...
I have a list of taskLists. To show the list I have used recyclerview. I have 1st 3 items as today , tomorrow and later in my list. I want to add one separator after 1st 3 items in recycler view. How can I do this? Adapter : [CODE] Can anyone help with this how can I put separator after 3 items in list? Thank you..
java|android|list|android-recyclerview|list-separator
2
2016-04-21T10:07:22.173Z
2,016
4
10
3
3,423
5
316
64
5
1
true
false
true
false
false
false
low
36,766,386
Xamarin UI Test - test life cycle app(return to app)
<p>I created Android app with Xamarin Forms. I use Xamarin UI Test for testing life cycle app. I need events for app - OnStart, OnSleep, OnResume. My algorithm: 1. Start test, check UI (OnStart). 2. App goes to the background(OnSleep). For this I use this code:</p> <p>in Activity</p> <pre><code> [Export("GoO...
I created Android app with Xamarin Forms. I use Xamarin UI Test for testing life cycle app. I need events for app - OnStart, OnSleep, OnResume. My algorithm: 1. Start test, check UI (OnStart). 2. App goes to the background(OnSleep). For this I use this code: in Activity [CODE] in Test [CODE] It work. Now I need to go b...
android|xamarin.android|xamarin.forms|lifecycle|ui-testing
0
2016-04-21T10:08:51.027Z
2,016
4
10
3
370
1
516
52
5
4
true
false
false
false
false
false
zero
36,766,395
`titleTextAppearance` is not working
<p>Why <code>titleTextAppearance</code> is not working with this action bar on a navigation drawer activity, I want to change the Title size and to be the same on landscape/portrait</p> <p>activity_main.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.v4.widget.DrawerLayout xmlns:an...
Why titleTextAppearance is not working with this action bar on a navigation drawer activity, I want to change the Title size and to be the same on landscape/portrait activity_main.xml [CODE] app_bar_start.xml [CODE] and this is content_start.xml [CODE] and the styles are: [CODE] Any Ideas?
android|xml|android-actionbar
2
2016-04-21T10:09:18.567Z
2,016
4
10
3
3,960
1
290
36
3
4
true
false
true
false
false
false
low
36,766,582
Android Fingerprint - Crypto primitive not backed by AndroidKeyStore provider
<p>I'm trying to implement android Fingerprint into a sample application. The used cipher is not recogniced as valid - but I dont know why, since based on the android docs, it should be supported.</p> <p>The cipher is built on:</p> <pre><code>return Cipher.getInstance(KeyProperties.KEY_ALGORITHM_RSA + "/" +KeyPropert...
I'm trying to implement android Fingerprint into a sample application. The used cipher is not recogniced as valid - but I dont know why, since based on the android docs, it should be supported. The cipher is built on: [CODE] This cipher listed in the official docs . The keyGenerator and keyFactory which is used later o...
android|android-keystore|android-security|android-fingerprint-api
7
2016-04-21T10:16:43.290Z
2,016
4
10
3
2,015
2
942
77
4
8
true
false
false
false
false
false
medium
36,766,596
Why material designed app is slower than legacy holo designed app
<p>My legacy holo app used to start up very fast.</p> <p>Recently, I spend 1 year part-time, to port the holo app, to material designed app. Here's some significant changes which I had done.</p> <ol> <li>From API 21 to API 23</li> <li>From <code>ActionBarSherlock</code> to <code>AppCompat</code> Toolbar support libra...
My legacy holo app used to start up very fast. Recently, I spend 1 year part-time, to port the holo app, to material designed app. Here's some significant changes which I had done. From API 21 to API 23 From ActionBarSherlock to AppCompat Toolbar support library From support library v4:22.1.1 to v4:23.2.1 Final compile...
android|performance
8
2016-04-21T10:17:15.217Z
2,016
4
10
3
443
2
1,523
65
2
0
false
false
false
false
false
false
medium
36,766,727
Ant build error = exec-shell returned:1
<p>I am doing one demo project in Kony Studio. While running application for Android, I always getting <code>Ant build error</code>. </p> <p>Please check the error log,</p> <pre><code>-post-package: [exec-shell] [exec-shell] /Users/mac/Library/Android/sdk/tools/ant/build.xml:1037: The following error occurred while ...
I am doing one demo project in Kony Studio. While running application for Android, I always getting Ant build error . Please check the error log, [CODE] Log says there is a permission issue with file, but I gave both read/write permission, even no luck and I am using MacBookPro . Help me to come out from this issue. Th...
android|temenos-quantum
1
2016-04-21T10:24:15.880Z
2,016
4
10
3
2,463
1
364
39
2
1
true
false
false
false
false
false
low
36,766,739
want to delete recycler list item on drop to delete imageview. Delete imageview is defined in activity
<p>I am working on drag and drop and now implementing delete functionality just like launcher application. I am making my delete image visible on selection of recycler item but not able to delete recycler item via dragging and dropping it on the delete image. I am using Itemtouchhelperadapter and collections for selec...
I am working on drag and drop and now implementing delete functionality just like launcher application. I am making my delete image visible on selection of recycler item but not able to delete recycler item via dragging and dropping it on the delete image. I am using Itemtouchhelperadapter and collections for selection...
android
-1
2016-04-21T10:25:01.617Z
2,016
4
10
3
422
1
359
102
1
1
true
false
false
false
false
true
negative
36,766,751
How to upload long blob (image) to mysql database using java and retrieve in php?
<p>I am working on a project where I need to upload images to the database and retrieve the same from database.</p> <p>I need the image to be uploaded from an android device using java. Here is what i have implemented</p> <pre><code>Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), uri); ...
I am working on a project where I need to upload images to the database and retrieve the same from database. I need the image to be uploaded from an android device using java. Here is what i have implemented [CODE] I am inserting the byte array to the database. And here is my php code to retrieve the same : [CODE] The ...
php|android|mysql|blob
1
2016-04-21T10:25:31.720Z
2,016
4
10
3
1,292
1
712
81
4
2
true
false
false
false
false
false
low
36,766,796
How do I use GSON to convert an object array to an array of their IDs
<p>I've been using <code>Gson.toJson</code> to convert my object for a request:</p> <pre><code>class Convertable { private String[] mApples; private String[] mOranges; ... } </code></pre> <p>Which gave me JSON that looks something like this:</p> <pre><code>{ "apples": [ "ahadhahajjajajaj", ...
I've been using Gson.toJson to convert my object for a request: [CODE] Which gave me JSON that looks something like this: [CODE] Now my object has changed to [CODE] But if it's possible I want to do something just as simple. How do I achieve this? Can it be done without writing a custom serializer and having to manuall...
android|json|gson
-2
2016-04-21T10:27:20.157Z
2,016
4
10
3
210
1
507
69
3
4
true
false
false
false
false
true
negative
36,766,866
Slow rate (Rx) retrieving an attachment from Gmail with javaMail on Android
<p>I'm using JavaMail libraries to access Gmail and I'm getting a slow rate (Rx) performance in downloading a compressed file attachment (1 MB):</p> <p><a href="https://i.stack.imgur.com/KEcbi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KEcbi.png" alt="enter image description here"></a></p> <p>...
I'm using JavaMail libraries to access Gmail and I'm getting a slow rate (Rx) performance in downloading a compressed file attachment (1 MB): As you can see, getting the attachment and write it into SD takes around 20 seconds. Here is my code: [CODE] Retrieving a message: [CODE] I've tried to use MimeMessage but the re...
android|gmail|jakarta-mail
1
2016-04-21T10:30:34.400Z
2,016
4
10
3
209
0
685
75
3
2
true
true
false
false
false
false
low
36,767,005
GameMaker Studio, GLSL ES Shader, different results on Android
<p>I try to implement a fullscreen GLSL ES shader in my GameMaker Studio project. However, I get different results on almost every device I test. I made a small test project to showcase the problem.</p> <p>Vertex Shader:</p> <pre><code>attribute vec3 in_Position; // (x,y,z) //attribute vec3 in_Normal...
I try to implement a fullscreen GLSL ES shader in my GameMaker Studio project. However, I get different results on almost every device I test. I made a small test project to showcase the problem. Vertex Shader: [CODE] Fragment shader: [CODE] And these are the results: https://dl.dropboxusercontent.com/u/14513191/shader...
android|opengl-es|game-maker|glsles
2
2016-04-21T10:36:12.540Z
2,016
4
10
3
1,328
1
479
62
4
2
true
false
false
false
false
false
low
36,767,065
Integrate Layer.com's chatting api in Android
<p>I have been trying to integrate <a href="https://developer.layer.com/docs/android" rel="nofollow noreferrer" title="Layer">Layer.com's</a> chatting api in my android application.</p> <p>The demo project given by <a href="https://developer.layer.com/docs/android" rel="nofollow noreferrer" title="Layer">Layer.com</a>...
I have been trying to integrate Layer.com's chatting api in my android application. The demo project given by Layer.com works fine, but when I implement it with my requirement the app crashes more than thee times and works fine there after. Here is how my app should look like Screen 1: (Select a user to make conversati...
java|android
0
2016-04-21T10:38:36.570Z
2,016
4
10
3
204
0
699
45
2
0
false
true
false
false
false
false
zero
36,767,115
Create Radarview with rotating arm in android Xamarin
<p><a href="http://i.stack.imgur.com/Z292r.jpg" rel="nofollow">Radar view Screen developed with android Xamarin </a></p> <p>I want white arc in this view to be rotated along the radius continuously .</p> <p>My code Is as below in OnDraw method </p> <pre><code> protected override void OnDraw(Canvas canvas) { ...
Radar view Screen developed with android Xamarin I want white arc in this view to be rotated along the radius continuously . My code Is as below in OnDraw method [CODE] So please guide me on this problem my target is Android Screen With Radar
android|xamarin
0
2016-04-21T10:40:12.293Z
2,016
4
10
3
92
0
242
53
2
1
true
true
false
false
false
false
zero
36,767,184
in viewPager's fragment, recyclerView adapter notifyDataSetChanged not works on first time
<p>I have fragment view pager in activity, that creates a number of pages of entered number before. In each fragment, i have recycler view that needs to update each time user moves to the relevant page. on resume() of each fragment I have getter of data from main activity. </p> <p>What I am experiencing is while I'm g...
I have fragment view pager in activity, that creates a number of pages of entered number before. In each fragment, i have recycler view that needs to update each time user moves to the relevant page. on resume() of each fragment I have getter of data from main activity. What I am experiencing is while I'm going to next...
android|android-fragments|android-viewpager|android-recyclerview|android-adapter
0
2016-04-21T10:43:18.597Z
2,016
4
10
3
1,550
3
835
90
5
3
true
false
false
false
false
false
zero
36,767,195
reduce left margin of navigation icon of toolbar in android
<p>as i'm new to android i set back button in my toolbar, i want to reduce its padding/margin from left how can i do that?? thanks in adwance.</p> <p>this is my design code</p> <pre><code>&lt;android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/a...
as i'm new to android i set back button in my toolbar, i want to reduce its padding/margin from left how can i do that?? thanks in adwance. this is my design code [CODE] this is how i manually set back button [CODE] this is my screen (back button havin left margin)
android|navigation|icons|toolbar|back
9
2016-04-21T10:43:50.227Z
2,016
4
10
3
12,920
4
265
59
5
2
true
false
true
true
false
false
medium
36,767,263
Display notification on the condition
<p>The situation is as follows: Depending on certain conditions from time to time sent with intent BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE. Because the user must confirm the action and the phone may be suspended / lying aside etc. I added an alert. The whole method is as follows:</p> <pre class="lang-html prettyp...
The situation is as follows: Depending on certain conditions from time to time sent with intent BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE. Because the user must confirm the action and the phone may be suspended / lying aside etc. I added an alert. The whole method is as follows: [CODE] Actually, now a few questions:...
android|bluetooth|android-service|android-notifications|android-bluetooth
2
2016-04-21T10:46:42.440Z
2,016
4
10
3
464
0
854
37
5
1
true
true
false
false
false
false
low
36,767,471
Android ?attr/colorPrimary not working on call to setTheme
<p>I have an android app with 2 themes. And the user is able to switch themes from a settings activity elsewhere in the app. The default theme is <code>AppThemeBlue</code> and when the app starts up all is well. However after user changes theme from settings activity to the <code>AppThemeGreen</code> no change is made....
I have an android app with 2 themes. And the user is able to switch themes from a settings activity elsewhere in the app. The default theme is AppThemeBlue and when the app starts up all is well. However after user changes theme from settings activity to the AppThemeGreen no change is made. Here are my 2 themes in the ...
android|xml|android-layout|android-theme
1
2016-04-21T10:55:48.053Z
2,016
4
10
3
729
1
617
58
4
3
true
false
false
false
false
false
low
36,767,554
Viewpager extremely slow when swiping
<p>I have a <code>ViewPager</code> that contains several <code>Fragments</code> of which I generate and provide a unique layout to. These <code>Fragments</code> are merely placeholders for a static layout that the user is not supposed to interact with. (Similar to a preview page).</p> <p>Here is the activity that cont...
I have a ViewPager that contains several Fragments of which I generate and provide a unique layout to. These Fragments are merely placeholders for a static layout that the user is not supposed to interact with. (Similar to a preview page). Here is the activity that contains the Fragments and the ViewPager : [CODE] Howe...
android|android-fragments|android-viewpager
1
2016-04-21T10:59:05.240Z
2,016
4
10
3
3,853
2
713
37
3
4
true
false
true
false
false
false
low
36,767,588
Can't remove ActionBr in android studio?
<p>So i've been trying to remove the Action bar in my layout but failed. I tried to insert <code>android:theme="@style/AppTheme.NoActionBar"</code> in the Manifest activity but it did not work and gave me the error <code>Cannot resolve symbol "@style/AppTheme.NoActionBar"</code>.</p> <p>my Manifest.XML layout:</p> <p...
So i've been trying to remove the Action bar in my layout but failed. I tried to insert android:theme="@style/AppTheme.NoActionBar" in the Manifest activity but it did not work and gave me the error Cannot resolve symbol "@style/AppTheme.NoActionBar" . my Manifest.XML layout: [CODE] MainActivity XML: [CODE]
android|xml|android-layout|android-studio
-2
2016-04-21T11:00:48.127Z
2,016
4
11
3
102
2
308
40
4
2
true
false
false
false
false
true
negative
36,767,632
App Indexing- app not showing with website link in google search
<p>I have integrated App Indexing and i tested my implementation by <a href="https://developers.google.com/app-indexing/android/test#link-testing-in-android-studio" rel="nofollow noreferrer">Link Testing in Android Studio</a> , <a href="https://developers.google.com/app-indexing/android/test#android-debug-bridge" rel="...
I have integrated App Indexing and i tested my implementation by Link Testing in Android Studio , Android Debug Bridge and Deep link testing tool . In all three tests I am able to open the app . But still when i do search in google I am NOT able to see my app with website link like below image.However if app is install...
android|android-app-indexing|google-app-indexing|google-search-platform
0
2016-04-21T11:02:36.277Z
2,016
4
11
3
326
1
563
64
4
0
false
false
false
false
false
false
zero
36,767,664
Amazon Shopping Android App deep-linking?
<p>It might me duplicate of this <a href="https://stackoverflow.com/questions/33577880/how-to-deeplink-to-product-page-for-amazon-shopping-app-in-android">question</a>, but I'm not able to find possible solution for same.</p> <p>I need to open below url of amazon product in amazon application and/or browser(if app is ...
It might me duplicate of this question , but I'm not able to find possible solution for same. I need to open below url of amazon product in amazon application and/or browser(if app is not installed) of android device. String amazonUrl = " http://www.amazon.com/gp/product/B00Z5QLB7K/ref=s9_nps_hd_bw_bF2jAgt_g309_i1?pf_r...
android|amazon-web-services|amazon|deep-linking
0
2016-04-21T11:04:20.567Z
2,016
4
11
3
2,119
2
827
41
4
1
true
false
false
false
false
false
zero
36,767,819
Sync SQLite database without causing multiple onChange
<p>We store a copy of the server state of some items locally in our app. When we get new data from the server, items may have been changed, removed or inserted. When data is synced, all current data is fetched from the server.</p> <p>Local list:<br> Item 1, progress 23<br> Item 2, progress 75<br> Item 3, progress 88 ...
We store a copy of the server state of some items locally in our app. When we get new data from the server, items may have been changed, removed or inserted. When data is synced, all current data is fetched from the server. Local list: Item 1, progress 23 Item 2, progress 75 Item 3, progress 88 Remote list: (item 2 was...
android|sqlite|android-contentprovider|android-contentresolver
2
2016-04-21T11:10:47.273Z
2,016
4
11
3
215
1
1,114
54
4
1
true
false
false
false
false
false
low
36,767,924
Error in "ArrayAdapter: You must supply a resource ID for a TextView", list_layout.xml
<p>I have this error, after reading several other questions on here regarding the same thing I haven't yet found an answer. The ArrayAdapter is asking for a resource ID for the TextView. I have set this but it doesnt work for some reason. Any help would be great thanks.</p> <p><code>ArrayAdapter: You must supply a res...
I have this error, after reading several other questions on here regarding the same thing I haven't yet found an answer. The ArrayAdapter is asking for a resource ID for the TextView. I have set this but it doesnt work for some reason. Any help would be great thanks. ArrayAdapter: You must supply a resource ID for a Te...
java|android|arrays|xml|sqlite
0
2016-04-21T11:15:28.280Z
2,016
4
11
3
192
1
462
86
5
4
true
false
false
false
false
false
zero
36,767,948
How to get JSON from googlemaps url
<p>As you can see <a href="http://www.caffenero.com.tr/index.php?arcBI=21" rel="nofollow">here</a>, I need those markers values such as lat lng address.</p> <p>From that link, i tried to go to <a href="https://www.google.com/maps/d/u/0/viewer?ll=41.042268%2C29.001695&amp;spn=0.06531%2C0.072004&amp;hl=en&amp;t=m&amp;vp...
As you can see here , I need those markers values such as lat lng address. From that link, i tried to go to those link. But still can not inspect anything. i tried this in Js but it did not return anything [CODE] http://jsfiddle.net/CursedChico/NNuDe/341/ How can i get? I am used to Js, angularjs, java and android.
javascript|php|android|json
-2
2016-04-21T11:16:27.533Z
2,016
4
11
3
605
1
316
35
4
1
true
false
false
false
false
true
negative
36,768,005
Xamarin - Customrenderer getting 2 errors
<p>So I've been getting these errors in my CustomSwitchRenderer class which is located in SalesKicker.Droid. Here are the errors:</p> <blockquote> <p>OnElementCHanged(ElementChangedEventArgs e): no suitable method found to override</p> </blockquote> <p>and</p> <blockquote> <p>Android.Widget.Switch cannot be used...
So I've been getting these errors in my CustomSwitchRenderer class which is located in SalesKicker.Droid. Here are the errors: OnElementCHanged(ElementChangedEventArgs e): no suitable method found to override and Android.Widget.Switch cannot be used as typ parameter 'TElement' in the genericc type or method ElementChan...
c#|android|xamarin|xamarin.forms
1
2016-04-21T11:19:14.160Z
2,016
4
11
3
84
1
637
41
4
3
true
false
false
false
false
false
low
36,768,034
AuthorizeNet sdk-android issues
<p>I am making an app in which i need to accept online payment through credit card. For this I am using AuthorizeNet sdk.</p> <p>I have implemented it from <a href="https://github.com/AuthorizeNet/sdk-android/tree/master/sampleapp" rel="nofollow">https://github.com/AuthorizeNet/sdk-android/tree/master/sampleapp</a> .<...
I am making an app in which i need to accept online payment through credit card. For this I am using AuthorizeNet sdk. I have implemented it from https://github.com/AuthorizeNet/sdk-android/tree/master/sampleapp . The sample is working fine. But whenever i enter credit card number , It does not accept less than 16 digi...
android|payment-gateway|authorize.net
0
2016-04-21T11:20:25.573Z
2,016
4
11
3
78
0
845
31
3
0
false
true
false
false
false
false
zero
36,768,080
Reading a decrypted file into a ZipInputStream truncates first file sometimes
<p>I'm working on an e-reader app (using <a href="https://skyepub.net/" rel="nofollow noreferrer">skyepub</a>) that basically downloads encrypted books into the file system (and it saves is decryption key in the database), and when the user tries to read it it loads the book into memory and decrypts it. </p> <p>The pr...
I'm working on an e-reader app (using skyepub ) that basically downloads encrypted books into the file system (and it saves is decryption key in the database), and when the user tries to read it it loads the book into memory and decrypts it. The problem is that some books have their first chapter truncated (epub books ...
java|android|encryption|epub|skyepub
0
2016-04-21T11:22:51.317Z
2,016
4
11
3
844
1
1,179
77
5
5
true
false
false
false
false
false
zero
36,768,098
Android: How to implement a SearchView with sections so as to search across multiple lists
<p>I am trying to implement a searchView in my app that enables the user to search a text across multiple lists. Something like below:</p> <p><a href="https://i.stack.imgur.com/u05eY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u05eY.png" alt="enter image description here"></a></p> <p>So far I h...
I am trying to implement a searchView in my app that enables the user to search a text across multiple lists. Something like below: So far I have been able to implement a searchView that searches for text across a single list and it works great, but I can't think of a way to make it work across multiple lists with the ...
android|searchview|simplecursoradapter|sectionedrecyclerviewadapter
2
2016-04-21T11:23:29.193Z
2,016
4
11
3
1,087
1
392
90
4
1
true
false
false
false
false
false
low
36,768,136
Can't start pocketsphinx in Unity3d game
<p>I am trying to integrate <a href="http://cmusphinx.sourceforge.net/wiki/tutorialandroid" rel="nofollow">PocketSphinx</a> into my Unity3d project. <br>In order to do this, I have integrated the <a href="https://github.com/cmusphinx/pocketsphinx-android-demo" rel="nofollow">Android demo project</a> into the Android St...
I am trying to integrate PocketSphinx into my Unity3d project. In order to do this, I have integrated the Android demo project into the Android Studio export of the Unity3d project. When trying to the app, I get an exception saying that the following function retured -1. [CODE] This method is being called when I start ...
android|unity3d|pocketsphinx|pocketsphinx-android
1
2016-04-21T11:24:57.647Z
2,016
4
11
3
652
1
550
40
4
4
true
false
false
false
false
false
low
36,768,150
Listview display nothing
<p><code>Listview</code> Size is 10 items. Till it does not display anything in <code>Listview</code>. I am adding List of Item in above adapter but not able to get the <code>Listview</code> single row. Anyone please help me to solve my error in the adapter?</p> <pre><code>import android.app.Activity; import android.c...
Listview Size is 10 items. Till it does not display anything in Listview . I am adding List of Item in above adapter but not able to get the Listview single row. Anyone please help me to solve my error in the adapter? [CODE] }
android|listview|arraylist
0
2016-04-21T11:25:30.383Z
2,016
4
11
3
166
1
226
24
3
1
true
false
false
false
false
false
zero
36,768,155
SearchView Return old ListView position value Android
<p>I am facing a problem. Like when i enter a data in <code>SearchView</code> , a new data filtered and shows in <code>ListView</code>. But when I select a entry from this filtered <code>listview</code>., it return the data according to the position of previous <code>ListView</code>(i.e. unfiltered data)..Here below , ...
I am facing a problem. Like when i enter a data in SearchView , a new data filtered and shows in ListView . But when I select a entry from this filtered listview ., it return the data according to the position of previous ListView (i.e. unfiltered data)..Here below , I posted my code. Please go through it and help me. ...
java|android|listview|searchview
2
2016-04-21T11:25:39.497Z
2,016
4
11
3
628
1
426
53
4
3
true
false
false
false
false
false
low
36,768,160
Android OpenglES change camera with pan gesture using lookat function
<p>I rotate camera using OpenGLES build-in function lookat. When user pan the screen, they are able to see the object 360 degree. However, when I calculate the view Matrix, this is something wrong with the vectors calculate...<br> currently, it is not working, when pan the screen, the object will disappear, because mFo...
I rotate camera using OpenGLES build-in function lookat. When user pan the screen, they are able to see the object 360 degree. However, when I calculate the view Matrix, this is something wrong with the vectors calculate... currently, it is not working, when pan the screen, the object will disappear, because mForward =...
android|opengl-es
0
2016-04-21T11:26:02.730Z
2,016
4
11
3
288
0
705
69
2
3
true
true
false
false
false
false
zero
36,768,232
How to show the updated row in a textview?
<p>So I'm creating a simple contacts app and got stuck with showing the updated row in a textview. I made a comment in the method "openUpdateDialog" cause there is the problem that I need help with. I hope that my code is easy to understand and thanks for the help guys. </p> <p>MainActivity.java:</p> <pre><code>publi...
So I'm creating a simple contacts app and got stuck with showing the updated row in a textview. I made a comment in the method "openUpdateDialog" cause there is the problem that I need help with. I hope that my code is easy to understand and thanks for the help guys. MainActivity.java: [CODE] Contact.java: [CODE] Datab...
android|database
2
2016-04-21T11:29:04.387Z
2,016
4
11
3
73
3
343
42
2
3
true
false
false
false
false
false
low
36,768,266
Android RecyclerView Provide Vertical and Horizontal
<p>I have one Vertical RecyclerView. I have added items in it. It is working fine. Now my issue is when any single item will have so many data, i want my whole RecyclerView to scroll horizontally not that single item.</p> <p>Here is the UI i have made. <a href="https://i.stack.imgur.com/RSIqW.png" rel="nofollow norefe...
I have one Vertical RecyclerView. I have added items in it. It is working fine. Now my issue is when any single item will have so many data, i want my whole RecyclerView to scroll horizontally not that single item. Here is the UI i have made. For Inner cell, I am adding view dynamically in Linearlayout. [CODE] As you c...
android|scrollview|android-recyclerview
0
2016-04-21T11:30:46.630Z
2,016
4
11
3
513
1
625
52
3
2
true
false
false
false
false
false
zero
36,768,290
How to show the accumulative push notification instead of showing multiple notifications that tend to appear at the same time?
<p>Whenever a new event is added, a push notification is sent to the user. If ten events are added in row, ten push notifications will be sent to the user, a behavior that will be annoying.</p> <p>I'd like to have it like this: if ten events are added in row, or added very near to each other regarding time, only one p...
Whenever a new event is added, a push notification is sent to the user. If ten events are added in row, ten push notifications will be sent to the user, a behavior that will be annoying. I'd like to have it like this: if ten events are added in row, or added very near to each other regarding time, only one push notific...
android|ios|ruby-on-rails|push-notification|delayed-job
3
2016-04-21T11:31:58.733Z
2,016
4
11
3
363
1
1,231
126
5
0
false
false
false
false
false
false
low
36,768,336
Not called surfaceCreated when add camera object in surface in new runOnUiThread
<p>Sorry for my english. I have <code>activity1</code>, and <code>activity2</code>. In <code>activity1</code> i have button, when i click this button this button freezes for a few seconds and after this open <code>activity2</code>. To remove a freeze when click button in <code>activity1</code> I added code that launche...
Sorry for my english. I have activity1 , and activity2 . In activity1 i have button, when i click this button this button freezes for a few seconds and after this open activity2 . To remove a freeze when click button in activity1 I added code that launches the camera in new runOnUiThread but now not called surfaceCreat...
android|android-camera|surfaceview
0
2016-04-21T11:34:10.933Z
2,016
4
11
3
198
1
455
80
3
2
true
false
false
false
false
false
zero
36,768,543
Google Play Games ClientConnectionOperation: Handling ConnectionFailedException
<p>Does anyone else experience those problems, every since google launched the <a href="http://officialandroid.blogspot.co.il/2016/02/embrace-your-inner-gaming-hero-with.html" rel="nofollow">game profile</a>. I am getting problems with connecting to play services.</p> <p>Here what I get when running <a href="https://d...
Does anyone else experience those problems, every since google launched the game profile . I am getting problems with connecting to play services. Here what I get when running google sign in flow . [CODE]
android|google-play-games|game-profile
2
2016-04-21T11:42:26.817Z
2,016
4
11
3
265
0
204
79
3
1
true
true
false
false
false
false
low
36,768,579
Displaying sqlite database info into a listview Android
<p>So far I can make my information display in a toast message. I would like some advice/help how to display this information into a listview. this is the intent to view the assignments. ( I think, I'm new to android )</p> <pre><code>public void viewAssignments(View v) { Intent i = new Intent(this, AssignmentTracker.c...
So far I can make my information display in a toast message. I would like some advice/help how to display this information into a listview. this is the intent to view the assignments. ( I think, I'm new to android ) [CODE] this is how the toast i have works: [CODE] Hopefully that's enough information so someone can adv...
android|listview
-1
2016-04-21T11:44:10.193Z
2,016
4
11
3
37
1
433
55
2
4
true
false
false
false
false
true
negative
36,768,598
Android Navigation Drawer three line hamburger icon
<p>I'm going crazy trying to figure out what I'm doing wrong and tried all the solutions on SO but still seem to be missing something. This is the first time I am creating a navigation drawer and took the help of an online tutorial.</p> <p>Everything works great, except the icon shows the back arrow instead of the thr...
I'm going crazy trying to figure out what I'm doing wrong and tried all the solutions on SO but still seem to be missing something. This is the first time I am creating a navigation drawer and took the help of an online tutorial. Everything works great, except the icon shows the back arrow instead of the three lines. T...
android|hamburger-menu
1
2016-04-21T11:45:09.013Z
2,016
4
11
3
4,085
3
1,683
51
2
6
true
false
true
false
false
false
low
36,768,698
Android RecyclerView List Overlaps in PagerSlidingTabs
<p>I'm currently experiencing something weird on my pagerslidingtabs wherein the list I have in my recyclerview is being overlayed with the same views except that the top view is not scrollable and the list in the background is scrollable but covered. This only happen randomly and cannot be replicated easily. This can ...
I'm currently experiencing something weird on my pagerslidingtabs wherein the list I have in my recyclerview is being overlayed with the same views except that the top view is not scrollable and the list in the background is scrollable but covered. This only happen randomly and cannot be replicated easily. This can onl...
android|android-fragments|android-pageradapter|pagerslidingtabstrip
0
2016-04-21T11:49:07.267Z
2,016
4
11
3
260
1
1,125
54
4
4
true
false
false
false
false
false
zero
36,768,731
Android: Resize EditText when Appcomat bottomsheet shows
<p>I have a multiline EditText and a button, The button brings up a persistent bottom sheet (modal would not do here).</p> <p>The bottomsheet is basically a LinearLayout, turned into an appcompat bottomsheet, with </p> <pre><code>app:layout_behavior="@string/bottom_sheet_behavior" </code></pre> <p>in the XML.</p> <...
I have a multiline EditText and a button, The button brings up a persistent bottom sheet (modal would not do here). The bottomsheet is basically a LinearLayout, turned into an appcompat bottomsheet, with [CODE] in the XML. The the buttonpress brings it up like this: [CODE] Now, I know it's expected behaviour, that the ...
android|android-appcompat|bottom-sheet
1
2016-04-21T11:50:50.713Z
2,016
4
11
3
989
1
1,020
56
3
2
true
false
false
false
false
false
low
36,768,759
Error: Could not find method jcenter() for arguments [] on repository container
<p>I have recently updated my android studio from 1.5 to 2.0 and Iam unable to compile the existing project. When i build the project from the terminal i get the following error.</p> <p>gradle build --stacktrace</p> <p>alle@alle-Inspiron-3537:~/AndroidStudioProjects/NewsLetter$ gradle build --stacktrace Note: in orde...
I have recently updated my android studio from 1.5 to 2.0 and Iam unable to compile the existing project. When i build the project from the terminal i get the following error. gradle build --stacktrace alle@alle-Inspiron-3537:~/AndroidStudioProjects/NewsLetter$ gradle build --stacktrace Note: in order to honour the org...
java|android|android-studio|android-gradle-plugin|build.gradle
3
2016-04-21T11:51:47.760Z
2,016
4
11
3
5,679
2
1,080
79
5
3
true
false
true
false
false
false
low
36,768,828
Qt/QML How to wrap text in Text Element whick is in Listview
<p>I have ListView like :</p> <pre><code> Rectangle { width:(parent.width) height: (parent.height/3)*2 border.color: "lightsteelblue" border.width: 2 color:"lightgrey" radius: 3 ListView { id:malzemelist ...
I have ListView like : [CODE] I have an model.I have fill my model When a click the button like model.append({mytext:"blalaladdd"}).I have set mytext to text in delage.I works but if my text is too long , wrap mode is not working.By the way I have set wrapmode:Text.Wrap.What is the problem... mydelegate code is : [CODE...
android|qt|qml
0
2016-04-21T11:54:19.163Z
2,016
4
11
3
1,531
1
321
60
3
2
true
false
false
false
false
false
zero
36,768,875
Switching activities loses functionality
<p>I have an app that consists of 3 Activities </p> <ul> <li>MainActivity</li> <li>CalculatorActivity</li> <li>InformationActivity</li> </ul> <p>My <strong>MainActivity</strong> has a confirm button that onClick starts the <strong>CalculatorActivity</strong> and everything is done correct and working as intended.</p>...
I have an app that consists of 3 Activities MainActivity CalculatorActivity InformationActivity My MainActivity has a confirm button that onClick starts the CalculatorActivity and everything is done correct and working as intended. CalculatorActivity has 2 buttons, one calculateButton that checks something and shows a ...
java|android|activity-lifecycle
0
2016-04-21T11:56:30.430Z
2,016
4
11
3
55
5
2,227
40
3
1
true
false
false
false
false
false
zero