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
28,688,681
NullPointerException when trying to make a drawer
<p>Hi guys Ive been stuck for a day with this problem on my MainActivity saying</p> <pre><code>at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at </code></pre> <p>but Im pretty sure Im trying to get the ID of the right fragment. But still dont know why it is happening. </p>...
Hi guys Ive been stuck for a day with this problem on my MainActivity saying [CODE] but Im pretty sure Im trying to get the ID of the right fragment. But still dont know why it is happening. heres my code: com.serverus.flexibleui.MainActivity.onCreate(MainActivity.java:43) MainActivity.java [CODE] NavigationDrawerFragm...
java|android
0
2015-02-24T05:22:08.053Z
2,015
2
5
1
533
2
480
49
2
6
true
false
false
false
false
false
zero
28,688,692
Facebook Mobile API.
<p>Is it possible to track your Facebook notifications through an app other than Facebook's? I am looking to track the photos tagged of a person in facebook through an app.</p>
Is it possible to track your Facebook notifications through an app other than Facebook's? I am looking to track the photos tagged of a person in facebook through an app.
android|facebook|facebook-android-sdk
0
2015-02-24T05:23:11.530Z
2,015
2
5
1
81
1
169
20
3
0
false
false
false
false
false
false
zero
28,688,695
Google analytics doesn't send event before setAppOptOut(true)
<p>I try to send an event just before disabling the Google analytics in android. But, the event doesn't show up in the real-time GA console.</p> <pre><code> tracker.send(new HitBuilders.EventBuilder() .setCategory(category) .setAction(action) .setLabel(lab...
I try to send an event just before disabling the Google analytics in android. But, the event doesn't show up in the real-time GA console. [CODE] Thanks for any advice.
android|google-analytics|google-analytics-api|google-analytics-sdk
3
2015-02-24T05:23:26.243Z
2,015
2
5
1
852
1
167
61
4
1
true
false
false
false
false
false
low
28,688,713
How to hide system bar and make visible only on touching screen in android
<p>Does any body have idea about how to hide system bar in android and make it visible only when swiping up on the screen. Other wise it remains hidden all the time. I got code for hide the system bar when the activity loading first time. When I am touching on the screen it become visible and stays always visible, syst...
Does any body have idea about how to hide system bar in android and make it visible only when swiping up on the screen. Other wise it remains hidden all the time. I got code for hide the system bar when the activity loading first time. When I am touching on the screen it become visible and stays always visible, system ...
android
1
2015-02-24T05:24:50.323Z
2,015
2
5
1
964
2
397
74
1
0
false
false
false
false
false
false
low
28,688,751
What are the units used for the dimensions of an Image Target on Target Manager?
<p>On Vuforia's Target Manager, whilst uploading an image target into the database, we are asked to provide the dimensions for the target. </p> <p>Are these targets in Feet, or Inches, or centimetres, or millimetres?</p> <p>Cookie points if you can tell me the dimensions of a normal soda can. </p>
On Vuforia's Target Manager, whilst uploading an image target into the database, we are asked to provide the dimensions for the target. Are these targets in Feet, or Inches, or centimetres, or millimetres? Cookie points if you can tell me the dimensions of a normal soda can.
android|vuforia
2
2015-02-24T05:27:44.897Z
2,015
2
5
1
4,802
1
275
80
2
0
false
false
true
false
false
false
low
28,688,946
Using a webview to browse the photo gallery
<pre><code>Min SDK API 15 </code></pre> <p>Hello,</p> <p>I using a webview that has a button on it that will browse the apps photo gallery.</p> <p>However, when the button is clicked in the webview, nothing happens.</p> <p>The url is in the format:</p> <pre><code>https://www.xxxxxxxxxxx </code></pre> <p>I have ad...
[CODE] Hello, I using a webview that has a button on it that will browse the apps photo gallery. However, when the button is clicked in the webview, nothing happens. The url is in the format: [CODE] I have added the following permissions: [CODE] I have a fragment that will load the webview in the onCreateView method (s...
android|webview
5
2015-02-24T05:46:01.340Z
2,015
2
5
1
22,331
4
731
43
2
6
true
false
true
true
false
false
low
28,688,989
JSON with Listview
<p>I am new to android and i want to fetch the data from server using JSON and want to arrange in a listview but I am unable to do this. Here is the link : i. <a href="http://www.masjid-timetable.com/data/masjids.php" rel="nofollow">http://www.masjid-timetable.com/data/masjids.php</a>! <a href="http://i.stack.imgur.com...
I am new to android and i want to fetch the data from server using JSON and want to arrange in a listview but I am unable to do this. Here is the link : i. http://www.masjid-timetable.com/data/masjids.php ! I want to arrange the data in this image format [CODE] [CODE]
android|json|listview
-1
2015-02-24T05:49:42.003Z
2,015
2
5
1
72
3
268
18
3
2
true
false
false
false
false
true
negative
28,689,000
How to implement a ListView completely inside a ScrollView
<p>Here, I'm using a <code>listView</code> inside a <code>ScrollView</code>, everything is working fine but <code>listView</code> isn't displaying completely when I set its height<code>fill_parent</code>. So I've fixed its height and it doesn't look good when I change the android phone device. Can anyone help me in it?...
Here, I'm using a listView inside a ScrollView , everything is working fine but listView isn't displaying completely when I set its height fill_parent . So I've fixed its height and it doesn't look good when I change the android phone device. Can anyone help me in it? I'm posting my xml class too. Demo.xml [CODE] Thank...
android|listview|android-listview|android-xml
4
2015-02-24T05:51:03.123Z
2,015
2
5
1
145
2
322
58
4
1
true
false
false
false
false
false
low
28,689,020
Cannot call getBootClasspath() before setTargetInfo() is called
<p>I am new in android studio, when i sync android application i got error.</p> <pre><code>C:\Users\Mansukh\Desktop\layout\MaterialDesignLibrary-master\MaterialDesign\build.gradle Error:(97, 0) Cannot call getBootClasspath() before setTargetInfo() is called. </code></pre> <p>Please anyone tell me what is error mean ...
I am new in android studio, when i sync android application i got error. [CODE] Please anyone tell me what is error mean and what are the solution for this error. i try to find out problem on internet but i unable to got particular solution. Here is my gradle.build file. [CODE]
android|android-studio
17
2015-02-24T05:52:51.493Z
2,015
2
5
1
10,240
2
278
63
2
2
true
false
true
false
true
false
medium
28,689,049
ScrollView starts from tabbar, but needs to scroll from top of the layout
<p>I have an issue over <strong>Scroll bar</strong> in my layout. My layout contains a scrollbar which contains two layouts. The first layout has static height. And the second latout contains <strong>tabHost</strong> for tabgroup. Second layout also contains Expandable Gridview.</p> <p>The issue is, <strong>when I loa...
I have an issue over Scroll bar in my layout. My layout contains a scrollbar which contains two layouts. The first layout has static height. And the second latout contains tabHost for tabgroup. Second layout also contains Expandable Gridview. The issue is, when I load my layout, It shows Tabbar directly and hides the f...
android|layout|scrollview|android-tabhost
0
2015-02-24T05:55:14.107Z
2,015
2
5
1
833
3
524
73
4
1
true
false
false
false
false
false
zero
28,689,083
Dynamic Allocation of Array doesn't work for ArrayAdapter while assigning it for Spinner in Android
<p>I am really facing a problem here to create a Spinner widget in Android. The goal is to populate a Spinner with data that i will dynamically retrieve from a source. Now I am able to create a spinner with a data source that is implicitly declared in the program. But when ever i am trying to fetch the data from a dyna...
I am really facing a problem here to create a Spinner widget in Android. The goal is to populate a Spinner with data that i will dynamically retrieve from a source. Now I am able to create a spinner with a data source that is implicitly declared in the program. But when ever i am trying to fetch the data from a dynamic...
android|android-arrayadapter|android-spinner|dialog
-2
2015-02-24T05:57:29.173Z
2,015
2
5
1
150
3
738
99
4
1
true
false
false
false
false
true
negative
28,689,087
Using convert view pattern when there is changes in view
<p>I am using convert view pattern in my custom array adapter class for list view efficiency. However i am facing problem that , I have an ImageView inside row template whose visibility i decide on a certain conditions inside getView method. When listview reuses the view all is getting messy , I get imageView visibilit...
I am using convert view pattern in my custom array adapter class for list view efficiency. However i am facing problem that , I have an ImageView inside row template whose visibility i decide on a certain conditions inside getView method. When listview reuses the view all is getting messy , I get imageView visibility G...
android|listview|android-arrayadapter|convertview
-1
2015-02-24T05:57:41.707Z
2,015
2
5
1
192
2
571
56
4
1
true
false
false
false
false
true
negative
28,689,090
Android OpenGl What is a stride?
<p>I am studying opengl.</p> <p>I came acroos a function such as drawXXXXXXX in which one of the parameeters is stride...</p> <p>I don't knowits usage and don't know the meaning of strides also.</p> <p>Could anyoe tell me?</p>
I am studying opengl. I came acroos a function such as drawXXXXXXX in which one of the parameeters is stride... I don't knowits usage and don't know the meaning of strides also. Could anyoe tell me?
android|graphics|opengl-es
0
2015-02-24T05:58:00.090Z
2,015
2
5
1
769
2
198
32
3
0
false
false
false
false
false
false
zero
28,689,110
How to set EditText value it depend on AutoCompleteTextView value in Android?
<p>There are one AutoCompleteTextView, Edittext and Button in dialog box. If AutoCompleteTextView is used Focus on dropdown. so it can easily select. If anyone select <strong>AAA</strong> in autocompletetextview then set edittext value to <strong>BBB</strong>. eg. If select <strong>CCC</strong> then set editext value t...
There are one AutoCompleteTextView, Edittext and Button in dialog box. If AutoCompleteTextView is used Focus on dropdown. so it can easily select. If anyone select AAA in autocompletetextview then set edittext value to BBB . eg. If select CCC then set editext value to DDD . EditText value will be change by the value of...
android|android-edittext|autocompletetextview
0
2015-02-24T05:59:16.383Z
2,015
2
5
1
1,496
2
453
77
3
1
true
false
false
false
false
false
zero
28,689,149
android.support.v7.widget.RecyclerView.ViewHolder
<p>When using android.support.v7.widget.RecyclerView.ViewHolder in our adapter, does it require view tagging as we do earlier. Or is the library does it automatically in back end ?</p>
When using android.support.v7.widget.RecyclerView.ViewHolder in our adapter, does it require view tagging as we do earlier. Or is the library does it automatically in back end ?
android|android-adapter
1
2015-02-24T06:02:36.013Z
2,015
2
6
1
6,874
2
177
49
2
0
false
false
true
false
false
false
low
28,689,153
HTTP Response logging if using Ion
<p>We can set logging if we use Ion to make HTTP connection to server as below</p> <pre><code>Ion.getDefault(getContext()).configure().setLogging("MyLogs", Log.DEBUG); </code></pre> <p>But we can't see the HTTP response from server from log that generated.</p> <p>How to see HTTP response ?</p>
We can set logging if we use Ion to make HTTP connection to server as below [CODE] But we can't see the HTTP response from server from log that generated. How to see HTTP response ?
android|android-ion
0
2015-02-24T06:03:11.477Z
2,015
2
6
1
579
1
181
34
2
1
true
false
false
false
false
false
zero
28,689,163
Need help IntentService not starting
<p>After unsuccessful attempts to find what is the problem with my IntentService, (reading and googling) I decide to ask at stakeoverflow. I couldn't figure our what is wrong with this code. I actually want to start a service after receiving result from another activity. I do get result from that activity then comes to...
After unsuccessful attempts to find what is the problem with my IntentService, (reading and googling) I decide to ask at stakeoverflow. I couldn't figure our what is wrong with this code. I actually want to start a service after receiving result from another activity. I do get result from that activity then comes to th...
android-intentservice
0
2015-02-24T06:04:13.810Z
2,015
2
6
1
316
1
501
36
1
5
true
false
false
false
false
false
zero
28,689,209
Set width/height percentage from code or use LinearLayout and weight?
<p>My question is very simple. Which is more efficient: setting a views width's or height's percentage from JAVA code, by getting the phones pixel count and calculating the number of pixels needed for the desired width or height, or put everything in a LinearLayout and set the weight of the view.</p> <p>NOTE: Sometime...
My question is very simple. Which is more efficient: setting a views width's or height's percentage from JAVA code, by getting the phones pixel count and calculating the number of pixels needed for the desired width or height, or put everything in a LinearLayout and set the weight of the view. NOTE: Sometimes the views...
java|android|android-linearlayout
0
2015-02-24T06:09:40.960Z
2,015
2
6
1
336
3
383
69
3
0
false
false
false
false
false
false
zero
28,689,240
java.lang.IllegalStateException: The specified child already has a parent: On Adding the view dynamically
<p>In my app i am implementing comment module in which i am adding the layout for comment dynamically as soon as the user post the comment. But i am getting <br><br><strong>illegalstateException: The specified child already haas parent. you must call removeView() on the child parent's first.</strong></p> <p>I am infla...
In my app i am implementing comment module in which i am adding the layout for comment dynamically as soon as the user post the comment. But i am getting illegalstateException: The specified child already haas parent. you must call removeView() on the child parent's first. I am inflating the comment.xml and adding it i...
android
0
2015-02-24T06:12:16.330Z
2,015
2
6
1
69
3
689
105
1
3
true
false
false
false
false
false
zero
28,689,250
How to Get data from Azure DB Table to an Android app?
<p>I'm new to azure, I don't know how to connect to a Table I created on an Azure Database. I want to get the table data (SELECT *) and populate them in a GridView in android. I know the 'populating' part using an adapter, all I want to know is how to connect and receive the data from the Table :)</p> <p>I've tried <a...
I'm new to azure, I don't know how to connect to a Table I created on an Azure Database. I want to get the table data (SELECT *) and populate them in a GridView in android. I know the 'populating' part using an adapter, all I want to know is how to connect and receive the data from the Table :) I've tried THIS tutorial...
java|android|sql|azure|cloud
4
2015-02-24T06:13:10.277Z
2,015
2
6
1
2,657
1
607
54
5
1
true
false
true
false
false
false
low
28,689,275
How to randomly create and assign variables and shorten an if-else statement (Java android)
<p>I was wondering how to shorten my code by automatically creating and assigning variables for <code>TextView</code>s. Also, how do you shorten these <code>if-else</code> statements? I have looked at other threads, but they haven't fulfilled my needs. I am using Android Studio for this.</p> <p>Here is my Java code:</...
I was wondering how to shorten my code by automatically creating and assigning variables for TextView s. Also, how do you shorten these if-else statements? I have looked at other threads, but they haven't fulfilled my needs. I am using Android Studio for this. Here is my Java code: [CODE] I was not really able to show ...
java|android|variable-assignment
1
2015-02-24T06:14:56.070Z
2,015
2
6
1
137
3
466
91
3
3
true
false
false
false
false
false
low
28,689,286
How to measure request and response time of server?
<p>I am using asynctask and json parsing for getting response from server,How can i measure request and response time,following is code of my web service,can any one help me with this?............................</p> <pre><code>public class JSONParser { static InputStream is = null; static JSONObject jObj = null; ...
I am using asynctask and json parsing for getting response from server,How can i measure request and response time,following is code of my web service,can any one help me with this?............................ [CODE] }
android|json|httprequest|httpresponse
7
2015-02-24T06:15:45.033Z
2,015
2
6
1
10,830
1
218
51
4
1
true
false
true
false
false
false
medium
28,689,369
android - startActivity using java class
<p>i'm having a problem with starting activity from inside java class , i want to active an activity from java class i tried this code but it doesn't work : </p> <pre><code>public class AlMA_PRO_Class{ public static void Start_Setting(){ ActionBarActivity mn = new MainActivity2(); // this is the setting act...
i'm having a problem with starting activity from inside java class , i want to active an activity from java class i tried this code but it doesn't work : [CODE] and it return with the following error : [CODE] i've tested many many different ways to do it ,but nothing worked !! any help ?
java|android
0
2015-02-24T06:21:49.007Z
2,015
2
6
1
13
0
288
40
2
2
true
true
false
false
false
false
zero
28,689,378
Problems parsing iso8583 message
<p>I've download code from here <a href="https://github.com/vikrantlabde/iso8583-Java" rel="nofollow">https://github.com/vikrantlabde/iso8583-Java</a> and after some modifications I'm parsing almost fine my fields.... I defined the schema like this:</p> <pre><code>ISOSCHEMA.put("1","BITMAP"); ISOSCHEMA.put("2","NUM-2-...
I've download code from here https://github.com/vikrantlabde/iso8583-Java and after some modifications I'm parsing almost fine my fields.... I defined the schema like this: [CODE] The problem is the field 55 that is a binary field. The standard documentation says it: 55 Reserved ISO B 255 LLLVAR (ISO DOCUMENTATION) I'm...
java|android|bitmap|iso8583
3
2015-02-24T06:22:19.033Z
2,015
2
6
1
3,827
3
2,656
32
4
3
true
false
true
false
false
false
low
28,689,385
Capturing and storing multiple images in android
<p>This is the Code for image capturing storing and displaying part ..Displaying part is not working.As in images are getting stored in a subfolder but when i display the latest captured image it fails to do so. Please help</p> <pre><code>package org.example.beproj; import java.io.File; import java.util.ArrayList; imp...
This is the Code for image capturing storing and displaying part ..Displaying part is not working.As in images are getting stored in a subfolder but when i display the latest captured image it fails to do so. Please help [CODE]
android
0
2015-02-24T06:22:49.483Z
2,015
2
6
1
81
0
227
48
1
1
true
true
false
false
false
false
zero
28,689,390
Using 9-patch in android app
<p>I've created my 9-patch images for my android buttons and have looked for (what would hardly be) tutorials on how to use them in the app (I'm using Android Studio btw), and I haven't been able to locate any decent explanation on how to do just that. I was able to find one that I thought was straight forward, but it...
I've created my 9-patch images for my android buttons and have looked for (what would hardly be) tutorials on how to use them in the app (I'm using Android Studio btw), and I haven't been able to locate any decent explanation on how to do just that. I was able to find one that I thought was straight forward, but it did...
android|button|android-studio|nine-patch
-1
2015-02-24T06:23:13.990Z
2,015
2
6
1
2,197
2
889
28
4
3
true
false
false
false
false
true
negative
28,689,469
How to create speed animation bar in Android?
<p>I will be glad to get some help with how to do a speed animation bar for android app. Something like <a href="http://ffb01754f828acf9087d-a290154ed149b36fff218ed99ffa5fbb.r95.cf3.rackcdn.com/phone%20speed%20animation.html" rel="nofollow">what is shown here</a> so it fills up automatically but for an app. </p> <p>So...
I will be glad to get some help with how to do a speed animation bar for android app. Something like what is shown here so it fills up automatically but for an app. So far I found this code , which pretty resembles what I was aiming for but I don't want the animation to show on a pop up, but as part of the page. If you...
android|android-fragments
-1
2015-02-24T06:29:28.787Z
2,015
2
6
1
83
1
443
45
2
0
false
false
false
false
false
true
negative
28,689,500
java.lang.OutOfMemoryError. Android
<p>I'm not too far on in developing my app and i'm getting a java.lang.OutOfMemoryError. Here's the logcat:</p> <pre><code>02-24 14:02:54.957: E/art(28628): Throwing OutOfMemoryError "Failed to allocate a 28 byte allocation with 8 free bytes and 8B until OOM" (recursive case) 02-24 14:02:54.965: E/art(28628): "Finali...
I'm not too far on in developing my app and i'm getting a java.lang.OutOfMemoryError. Here's the logcat: [CODE] I'm trying to make a list and anytime I retrieve the data to make the list I get the error. Here is class that extends the list fragment ` [CODE] Here is the class that holds the data [CODE] Please help. This...
java|android|performance|memory-management
0
2015-02-24T06:31:45.473Z
2,015
2
6
1
2,121
3
392
35
4
3
true
false
false
false
false
false
zero
28,689,505
How can I use gradle Integration for eclipse and how can I create build.gradle in eclipse
<p>I downloaded the gradle plugin from eclipse market place. but can't able to create built.gradle in my project. For downloading the plugin I use this link <a href="http://dist.springsource.com/release/TOOLS/update/e4.4/" rel="nofollow">http://dist.springsource.com/release/TOOLS/update/e4.4/</a>. From this link I spe...
I downloaded the gradle plugin from eclipse market place. but can't able to create built.gradle in my project. For downloading the plugin I use this link http://dist.springsource.com/release/TOOLS/update/e4.4/ . From this link I specifically select Core/Eclipse integration for gradle and downloaded the plugin. After th...
android|gradle|build.gradle|gradle-eclipse
0
2015-02-24T06:32:02.613Z
2,015
2
6
1
81
1
359
89
4
0
false
false
false
false
false
false
zero
28,689,530
How to know which application install
<p>I make an application to alert the user that you install this application successfully when user install application from play store. There is any way to get an information of currently install app.</p>
I make an application to alert the user that you install this application successfully when user install application from play store. There is any way to get an information of currently install app.
android
-2
2015-02-24T06:33:27.307Z
2,015
2
6
1
61
2
198
37
1
0
false
false
false
false
false
true
negative
28,689,554
Error saving video Uri to SD card
<p>I am trying to save a video from <code>VideoView</code> to the SD card, by touching the <code>VideoView</code>. No errors in <code>LogCat</code>, but my <code>Toast</code> I set up says "Error during video saving", which tells me my boolean I set up did not get to the part where it's set to true. It must be in the f...
I am trying to save a video from VideoView to the SD card, by touching the VideoView . No errors in LogCat , but my Toast I set up says "Error during video saving", which tells me my boolean I set up did not get to the part where it's set to true. It must be in the file I/O part. One part that works though, is a direct...
android|android-intent|android-sdcard|android-file|android-videoview
0
2015-02-24T06:34:42.037Z
2,015
2
6
1
1,040
1
883
33
5
4
true
false
false
false
false
false
zero
28,689,559
Setting the font style in WebView html issue
<p>I need to use the UhmanicHafs.ttf font in webView Html page to get the Expected output.</p> <p>I am setting <code>uthmanic font</code>:</p> <pre><code> webviewHTML.loadDataWithBaseURL("file:///android_asset/fonts/UthmanicHafs.ttf", myHtmlString, "text/html", Xml.Encoding.UTF_8.toString(), null); </code></pre> <p...
I need to use the UhmanicHafs.ttf font in webView Html page to get the Expected output. I am setting uthmanic font : [CODE] Then I am getting the Actual Output If I removed the UthmanicHafs.ttf font like this : [CODE] I am getting this Expected Output What I need: I need to use the Uthmanic Font and get the Expected ou...
android|html|webview
1
2015-02-24T06:35:06.723Z
2,015
2
6
1
911
1
361
44
3
2
true
false
false
false
false
false
low
28,689,649
Cancel asynctask forcefully doesn't work
<p>I have an app that is included a refresh button in actionbar. When I click on it for second time, my app goes to debug view and it says my asyncClass object isn't finished yet !!!</p> <p>Please let me know how can I fix my problem.</p> <p><strong>MyActivity:</strong></p> <pre><code>public class MyActivity extends...
I have an app that is included a refresh button in actionbar. When I click on it for second time, my app goes to debug view and it says my asyncClass object isn't finished yet !!! Please let me know how can I fix my problem. MyActivity: [CODE] getAllDataFromServer: [CODE] UPDATE: JSONParser class: [CODE] Error screen s...
android|android-asynctask
-1
2015-02-24T06:42:08.553Z
2,015
2
6
1
140
1
363
40
2
3
true
false
false
false
false
true
negative
28,689,806
How to arrange a custom view with some basic views like buttons and textviews in a custom layout
<p>I had prepared a custom view now i want to place that view with some other basic views through a custom layout. I dont know much about custom layouts. How can I arrange these views programatically in custom layout and then how can I inflate that layout. Thanks in advance</p>
I had prepared a custom view now i want to place that view with some other basic views through a custom layout. I dont know much about custom layouts. How can I arrange these views programatically in custom layout and then how can I inflate that layout. Thanks in advance
android|android-layout
1
2015-02-24T06:56:14.240Z
2,015
2
6
1
21
0
271
96
2
0
false
true
false
false
false
false
low
28,689,810
method added in API 17 works in lower API levels too
<p>The method <code>setText(CharSequence text, boolean filter)</code> of <code>AutoCompleteTextView</code> which was introduced in API 17, seems to be working in lower android versions too. I was expecting it to crash in 2.3 device with <code>NoSuchMethodError</code>, but it is just working fine. That's not really a pr...
The method setText(CharSequence text, boolean filter) of AutoCompleteTextView which was introduced in API 17, seems to be working in lower android versions too. I was expecting it to crash in 2.3 device with NoSuchMethodError , but it is just working fine. That's not really a problem, but I am just curious to know how ...
android
7
2015-02-24T06:56:25.410Z
2,015
2
6
1
300
1
373
52
1
2
true
false
false
false
false
false
medium
28,689,814
Android Login to website using webview
<p>We have our website built in Laravel 3.0 framework in php. We are now developing android app for the website. Now the question is that we haven't used oAuth or oAuth2.0 like authentication in our backend.</p> <p>Now I was wondering the approaches in order to login to backend.</p> <ol> <li><p>Display webview at th...
We have our website built in Laravel 3.0 framework in php. We are now developing android app for the website. Now the question is that we haven't used oAuth or oAuth2.0 like authentication in our backend. Now I was wondering the approaches in order to login to backend. Display webview at the start of the app for a sing...
php|android|authentication|laravel|webview
2
2015-02-24T06:56:45.323Z
2,015
2
6
1
612
0
1,067
38
5
0
false
true
false
false
false
false
low
28,689,827
HTTP Request Android - Attempt to invoke virtual method
<p>So I have a problem. I have been trying to get an http request to work for quite a while now, and I have made a new thread so that the request never runs on the main thread. I have successfully made it so that the HTTP Request occurs and in the request thread I have made it so it logs the data that it has grabbed fr...
So I have a problem. I have been trying to get an http request to work for quite a while now, and I have made a new thread so that the request never runs on the main thread. I have successfully made it so that the HTTP Request occurs and in the request thread I have made it so it logs the data that it has grabbed from ...
java|android|http|get
0
2015-02-24T06:57:21.917Z
2,015
2
6
1
2,760
1
452
55
4
2
true
false
true
false
false
false
zero
28,689,845
Android studio sting to Date time format
<p>I'm new in android dev. I have this string </p> <pre><code>String gpsT="102030" // time format HHmmss String gpsD="240214" // date format ddMMyy </code></pre> <p>How do i convert this into DateTime format <code>"MMM dd, yyyy HH:mm:ss"</code>?</p> <p>Expected output: <code>Feb 24, 2014 10:20:30</code></p>
I'm new in android dev. I have this string [CODE] How do i convert this into DateTime format "MMM dd, yyyy HH:mm:ss" ? Expected output: Feb 24, 2014 10:20:30
android|datetime-format
0
2015-02-24T06:58:34.337Z
2,015
2
6
1
3,881
1
157
40
2
1
true
false
true
false
false
false
zero
28,689,871
Android Default textselector to copy text not working
<pre><code>java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0 at android.text.SpannableStringInternal.checkRange(SpannableStringInternal.java:355) at android.text.SpannableStringInternal.setSpan(SpannableStringInternal.java:77) at android.text.SpannableString.setSpan(Span...
[CODE] I am getting this error when i am clicking on text view in android to copy selected text.two selector handle at same position pointing and when i try to move them i m getting this force close. also sometime my textisselectable=true this functionality not work on few devices? i Google but i have not found any rel...
android|android-listview|textview|android-custom-view|custom-view
4
2015-02-24T07:00:31.367Z
2,015
2
7
1
663
1
404
53
5
1
true
false
false
false
false
false
low
28,689,879
how to display toast using Notification service using gcm intent in android
<pre><code>package com.lociiapp; import android.app.Application; public class LociiApplication extends Application{ public static boolean isActivityVisible() { return activityVisible; } public static void activityResumed() { activityVisible = true; } public static void...
[CODE] This is my Application class code there GCM intent service : [CODE] here i want when App is open then There should be no toast Message should display when app is close then Notification toast should visible please tell me me how to hide notification in when activity is foreground and show notification when app i...
android
1
2015-02-24T07:00:39.503Z
2,015
2
7
1
647
2
388
75
1
2
true
false
false
false
false
false
low
28,689,894
Android studio: emulator-x86.exe stopped working after creating the window for the emulator
<p>I just installed Android studio, and I am now trying to set up the device emulator. But it keeps crashing in the middle of invoke process. The error says:</p> <blockquote> <p>emulator-x86.exe stopped working in the middle of invoking</p> </blockquote> <p>I've tried to:</p> <ul> <li><p>Change the resolution of t...
I just installed Android studio, and I am now trying to set up the device emulator. But it keeps crashing in the middle of invoke process. The error says: emulator-x86.exe stopped working in the middle of invoking I've tried to: Change the resolution of the device to 800X600. Reduce the size of the Ram by 512 MB. But i...
android|windows-7|android-studio|android-emulator|windows-7-x64
2
2015-02-24T07:01:33.483Z
2,015
2
7
1
3,193
0
465
91
5
1
true
true
true
false
false
false
low
28,689,899
armeabi-v7a compiling error for cpp file
<p>I am using getline function and compiling using ndk but i am getting error : </p> <pre><code>'getline' was not declared in this scope </code></pre> <p>is this error due to limitations of armeabi-v7a or due to glib?How can it be resolved for the same function.</p> <pre><code>I have already #define _GNU_SOURCE befo...
I am using getline function and compiling using ndk but i am getting error : [CODE] is this error due to limitations of armeabi-v7a or due to glib?How can it be resolved for the same function. [CODE]
android|c++|compiler-errors|android-ndk
0
2015-02-24T07:02:14.073Z
2,015
2
7
1
170
1
199
40
4
2
true
false
false
false
false
false
zero
28,689,935
Android Studio can't render simple layout
<p>Why doesn't this relatively simple layout render in Android Studio?</p> <p>When I open this file in Android Studio, instead of the rendered preview of the layout, I see "Rendering Problem" and the list of errors shown below. Yet it looks fine when running on a device.</p> <p>However, some tweaks to the layout wil...
Why doesn't this relatively simple layout render in Android Studio? When I open this file in Android Studio, instead of the rendered preview of the layout, I see "Rendering Problem" and the list of errors shown below. Yet it looks fine when running on a device. However, some tweaks to the layout will cause it to be ren...
android|android-studio
1
2015-02-24T07:04:49.783Z
2,015
2
7
1
1,908
0
5,978
41
2
1
true
true
false
false
false
false
low
28,689,992
How to check if application with particular package name is already installed in device
<p>Is there any way to check if the particular application is already installed in device ? May be through some package name ? </p> <p>Regards</p>
Is there any way to check if the particular application is already installed in device ? May be through some package name ? Regards
android
-1
2015-02-24T07:08:28.730Z
2,015
2
7
1
4,441
2
131
87
1
0
false
false
true
false
false
true
negative
28,690,033
Different Chromecast icons set
<p>In the cast <a href="https://developers.google.com/cast/docs/downloads" rel="nofollow noreferrer">resources page</a>, a link to a <a href="https://developers.google.com/cast/downloads/GoogleCastIcons.zip" rel="nofollow noreferrer">icons set</a> is available:</p> <p><img src="https://i.stack.imgur.com/sqJnv.png" alt...
In the cast resources page , a link to a icons set is available: Nevertheless, this one is completely different to the provided by the v7 mediarouter library although is supposed to be the same as the included there: What's the point of that? Any use guidelines for this zip? On the other hand, this zip contains two dif...
android|chromecast|google-cast
1
2015-02-24T07:11:37.597Z
2,015
2
7
1
811
1
402
30
3
0
false
false
false
false
false
false
low
28,690,040
i have create ontouch listenner, but when i run code i can not see my log. on touch event not run.please help. here is my code:
<p>i have create ontouch listenner, but when i run code i can not see my log. on touch event not run.please help. here is my code:</p> <pre><code>public class HomeActivity extends Activity implements View.OnTouchListener { private ImageView img; @Override protected void onCreate(Bundle savedInstanceState) { super...
i have create ontouch listenner, but when i run code i can not see my log. on touch event not run.please help. here is my code: [CODE] Thanks in advance.
android
1
2015-02-24T07:11:46.960Z
2,015
2
7
1
51
4
153
127
1
1
true
false
false
false
false
false
low
28,690,048
OOM when assigning image to marker on google map
<p>I am trying to load an image that is 175 by 175 as google map marker</p> <pre><code>Marker marker = mMap.addMarker(new MarkerOptions().position(loc) .anchor(0.5f, 0.5f) .icon(BitmapDescriptorFactory.fromResource(chrctr.getThumbResId()))); </code></pre> <p>The problem is tha...
I am trying to load an image that is 175 by 175 as google map marker [CODE] The problem is that I am expecting to have many of these. If I add 10 of these then then app the crashes with out of memory How can I resolve this given I am using gooogle map v2 and using the BitmapDescriptorFactory Thank you
android
0
2015-02-24T07:12:01.313Z
2,015
2
7
1
53
0
302
48
1
1
true
true
false
false
false
false
zero
28,690,104
SimpleDateFormat RegEx formats
<p>Regex master needed! </p> <p>I have an variable timestamp coming from the server and I need to find which format is used everytime. I've tried implementing a regex formats but they don't work. I'm fairly new to regex patterns but still I've tried working them up my self or else look for a specific example but could...
Regex master needed! I have an variable timestamp coming from the server and I need to find which format is used everytime. I've tried implementing a regex formats but they don't work. I'm fairly new to regex patterns but still I've tried working them up my self or else look for a specific example but couldn't find so ...
java|android|regex
2
2015-02-24T07:16:11.797Z
2,015
2
7
1
1,614
4
549
30
3
1
true
false
false
false
false
false
low
28,690,135
Duplicate id 0x7f0a00b4, tag null, or parent id 0xffffffff with another fragment for com.google.android.gms.maps.MapFragment
<ul> <li>i have Navigation Activity that holds different fragments when i start home fragment which contains two(passenger and Driver) more fragments inside it they are working perfectly..while running passenger fragment i start an activity from this fragment in which i perform some background task if it ex...
i have Navigation Activity that holds different fragments when i start home fragment which contains two(passenger and Driver) more fragments inside it they are working perfectly..while running passenger fragment i start an activity from this fragment in which i perform some background task if it execute successfully th...
android|android-fragments
0
2015-02-24T07:18:27.127Z
2,015
2
7
1
4,223
2
689
124
2
2
true
false
true
false
false
false
zero
28,690,176
android -Why custom drawable not effecting textview
<p>this is my drawable code:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" &gt; &lt;corners android:bottomLeftRadius="7dp" android:bottomRightRadius="7dp" android:topLeftRad...
this is my drawable code: [CODE] This is a xml file called haraj.xml in my drawable folder . This is my xml layout : [CODE] Strangely it's not effecting textview. I get textview with no background color and no corners . What am I doing wrong?
android|textview|android-drawable
0
2015-02-24T07:21:25.443Z
2,015
2
7
1
447
3
242
51
3
2
true
false
false
false
false
false
zero
28,690,202
Android : canvas.drawBitmap() method not working properly
<p>I already post two question related this (plz refer this <a href="https://stackoverflow.com/questions/28343600/customize-pie-chart-in-quarter-shape-at-the-bottom-left-of-the-screen-in-android">custom piechart 1</a> and this <a href="https://stackoverflow.com/questions/28404656/pie-chart-in-android-without-third-par...
I already post two question related this (plz refer this custom piechart 1 and this custom pie chart 2 ) but not getting answer ,finally i develop my own but getting stuck at some point . I need to create lines between drawn area as you can see in image .for inner circle i used canvas.drawArc() .for outer circle i used...
android|canvas|pie-chart
1
2015-02-24T07:23:11.110Z
2,015
2
7
1
2,765
1
917
57
3
3
true
false
true
false
false
false
low
28,690,209
How to open a pdf file in cocos2d-x project?
<p>I want to open a file (pdf file to be exact) in iOS and Android through my cocos2d-x Project. It is to serve as help in my game. Is there any way to do so. I found we can open it in webview but how to do so on both iOS and android?</p> <p>Thanks in advance</p>
I want to open a file (pdf file to be exact) in iOS and Android through my cocos2d-x Project. It is to serve as help in my game. Is there any way to do so. I found we can open it in webview but how to do so on both iOS and android? Thanks in advance
android|ios|cocos2d-x
0
2015-02-24T07:23:51.260Z
2,015
2
7
1
368
2
249
44
3
0
false
false
false
false
false
false
zero
28,690,284
Android PreferenceScreen (AppCompat v21) - touch color
<p><img src="https://i.stack.imgur.com/8sMvN.png" alt="Preference screen"></p> <p>I use <strong>AppCompat v21</strong> with custom material theme color (<strong>green</strong>), I have used some hacks to preserve correct colors on <strong>lowest API</strong> than Lollipop. But I cannot find, <strong>how to change</str...
I use AppCompat v21 with custom material theme color ( green ), I have used some hacks to preserve correct colors on lowest API than Lollipop. But I cannot find, how to change on the preference screen the touch pressed color from blue to grey or to other color, as is shown in the screenshot?
android|android-preferences|styling|android-appcompat
1
2015-02-24T07:29:50.870Z
2,015
2
7
1
308
0
292
54
4
0
false
true
false
false
false
false
low
28,690,397
canvas drawtext with multiline
<p>I am developing a image commenting application. I draw text in canvas with <code>canvas.drawText(text, x, y, imgPaint);</code></p> <p>This appears in a single line. I need to break the line to multiline when the text crosses the canvas width</p> <p>Thanks in advance</p>
I am developing a image commenting application. I draw text in canvas with canvas.drawText(text, x, y, imgPaint); This appears in a single line. I need to break the line to multiline when the text crosses the canvas width Thanks in advance
android|canvas|drawtext
7
2015-02-24T07:36:20.877Z
2,015
2
7
1
5,544
3
239
30
3
0
false
false
true
false
false
false
medium
28,690,401
"Cannot find DriveId. Are you authorized to view this file?": Even if EXISTING_FOLDER_ID is set manually
<p>I am having a look at <a href="https://github.com/nabinkhadka/android-demos" rel="nofollow">here</a> from github.</p> <p>I can create a file and a folder successfully by reading the code provided in github. But I am not being able to edit the file or create a file/folder in any specific folder.</p> <p><strong>The ...
I am having a look at here from github. I can create a file and a folder successfully by reading the code provided in github. But I am not being able to edit the file or create a file/folder in any specific folder. The main problem would be using emulator, but I am not sure. I am using GenyMotion I have also copied the...
android|google-api|google-drive-api|google-api-java-client|google-drive-android-api
2
2015-02-24T07:36:59.573Z
2,015
2
7
1
1,160
1
576
104
5
3
true
false
false
false
false
false
low
28,690,406
Android ActionBar Custom Design
<p>I am a newbie in android programming, i have to design an activity exactly like the picture in the link. I am extremely confused about how to add that search view under my actionbar.</p> <p><img src="https://i.stack.imgur.com/oPsix.jpg" alt="enter image description here"></p>
I am a newbie in android programming, i have to design an activity exactly like the picture in the link. I am extremely confused about how to add that search view under my actionbar.
android|android-actionbar
-2
2015-02-24T07:37:07.877Z
2,015
2
7
1
69
2
182
31
2
0
false
false
false
false
false
true
negative
28,690,419
Where the following code creating forlder
<p>kindly guide me where the following code is creating folder? i didnt find it. and i also wanted to know about this function [getExternalStorageDirectory()] that what location it returns in sd card?</p> <pre><code>MY_IMG_DIR = new File( Environment.getExternalStorageDirectory(), "/.Plsys/"); </c...
kindly guide me where the following code is creating folder? i didnt find it. and i also wanted to know about this function [getExternalStorageDirectory()] that what location it returns in sd card? [CODE]
android|file|directory
0
2015-02-24T07:37:53.720Z
2,015
2
7
1
56
2
204
41
3
1
true
false
false
false
false
false
zero
28,690,461
Get data from gradle at runtime
<p>We develop some modules and use the same connector class. Mow we use at static data. calls to server is different between the application and between develop/production.</p> <p>I have some questions:</p> <ol> <li><p>Is it is possible to get data from gradle at runtime?</p></li> <li><p>Is it possible to generate/se...
We develop some modules and use the same connector class. Mow we use at static data. calls to server is different between the application and between develop/production. I have some questions: Is it is possible to get data from gradle at runtime? Is it possible to generate/set data at variable at my classes when gradle...
android|gradle
0
2015-02-24T07:40:54.190Z
2,015
2
7
1
923
2
385
31
2
0
false
false
false
false
false
false
zero
28,690,485
Receiving launch notification data other than from Main launcher activity
<p>I'm writing a library for Push notifications on Android. I don't want users to override the root activity for adding OnNewIntent method to pass launched notification information to my library.</p> <p>Any possible way to solve this?</p> <p>In short - Any way to get notification data when user clicks in the notifica...
I'm writing a library for Push notifications on Android. I don't want users to override the root activity for adding OnNewIntent method to pass launched notification information to my library. Any possible way to solve this? In short - Any way to get notification data when user clicks in the notification bar if we don'...
android|notifications
1
2015-02-24T07:43:17.690Z
2,015
2
7
1
105
1
355
73
2
0
false
false
false
false
false
false
low
28,690,497
JSON load issue with phonegap
<p>I'm using phonegap to create an app on android, ios and windows. I'm using this js for the JSON, calling for business hours (shours1, shours2, shours3):</p> <pre><code>(function(){ 'use strict'; var app = angular.module('app', ['onsen', 'angular-images-loaded', 'ngMap', 'angular-carousel']); app.controller('resta...
I'm using phonegap to create an app on android, ios and windows. I'm using this js for the JSON, calling for business hours (shours1, shours2, shours3): [CODE] Here is my html: [CODE] It seems to be working partially. The shours do load, but only after I rotate my android or click on the menu. It doesn't load off-hand ...
javascript|android|json|angularjs|cordova
1
2015-02-24T07:44:27.947Z
2,015
2
7
1
99
1
453
29
5
2
true
false
false
false
false
false
low
28,690,577
list view using Custom alert and edit the name in android
<p>I have a ListView with ten names. I want to use a custom alert when I click on a name and I want it to be editable. In this code I'm only getting the ListView, not the custom alert.</p> <pre><code>public class MainActivity extends Activity { public ListView mainListView; public ArrayAdapter listAdapter; ...
I have a ListView with ten names. I want to use a custom alert when I click on a name and I want it to be editable. In this code I'm only getting the ListView, not the custom alert. [CODE]
android|alert
0
2015-02-24T07:49:15.560Z
2,015
2
7
1
1,351
1
188
57
2
1
true
false
false
false
false
false
zero
28,690,619
How to send custom metric for a custom dimension in google analytics for an android app
<p>I am trying to send ratings for a product as a custom metric for a custom dimension which is the username, in an eventbuilder.</p> <p>Please find the code below,</p> <p><code></p> <pre><code>Tracker tracker = ((AnalyticsSampleApp) getActivity().getApplication()).getTracker(AnalyticsSampleApp.TrackerName.APP_TRACK...
I am trying to send ratings for a product as a custom metric for a custom dimension which is the username, in an eventbuilder. Please find the code below, [CODE] I have created custom reports specifying all custom dimensions and custom metrics needed. In the events report, I am getting values for username and the event...
android|google-analytics
2
2015-02-24T07:52:26.783Z
2,015
2
7
1
782
0
739
87
2
2
true
true
false
false
false
false
low
28,690,706
Android Layout - list within a list
<p>I am new to Android and need help in creating the following layout:</p> <p><img src="https://i.stack.imgur.com/tlFJZ.png" alt="enter image description here" /></p> <p>I've gone through the example of using ListFragment and ArrayAdapter but in this scenario, I want to display a list within a list. How would I create ...
I am new to Android and need help in creating the following layout: I've gone through the example of using ListFragment and ArrayAdapter but in this scenario, I want to display a list within a list. How would I create a layout like this?
android|android-layout|android-fragments
0
2015-02-24T07:58:25.910Z
2,015
2
7
1
85
3
237
35
3
0
false
false
false
false
false
false
zero
28,690,743
Setting up Android emulator to use sensor data from real Android device
<p>From <a href="http://developer.android.com/tools/devices/emulator.html" rel="nofollow">Android developer doc on using emulator</a>:</p> <blockquote> <p>Android emulator supports sensors like an accelerometer, using data from a USB-connected Android device.</p> </blockquote> <p>However, I couldn't find further ...
From Android developer doc on using emulator : Android emulator supports sensors like an accelerometer, using data from a USB-connected Android device. However, I couldn't find further details on how to set up such test bed. Could you help me with some insight?
android|android-emulator|android-sensors
2
2015-02-24T08:01:34.190Z
2,015
2
8
1
158
0
261
71
3
0
false
true
false
false
false
false
low
28,690,784
Bluetooth connect to ELM327
<p>I deal with a thesis on the topic "car diagnostics via bluetooth". However, now I'm stuck in the problem. I have application, which can connect bluetooth to mobile (from tablet - android to android). Its ok state is CONNECT. But when I tried to connect to the OBD adapter. It was unsuccessful.</p> <p>Trying to conne...
I deal with a thesis on the topic "car diagnostics via bluetooth". However, now I'm stuck in the problem. I have application, which can connect bluetooth to mobile (from tablet - android to android). Its ok state is CONNECT. But when I tried to connect to the OBD adapter. It was unsuccessful. Trying to connect approxim...
android|bluetooth|elm327
3
2015-02-24T08:04:32.860Z
2,015
2
8
1
232
0
466
27
3
1
true
true
false
false
false
false
low
28,690,794
How to run and debug a C++ Android program in Eclipse
<p>Thanks to <a href="https://code.google.com/p/android-cmake/source/browse/toolchain/android.toolchain.cmake" rel="nofollow">cmake-android-chain</a>, I can build a C++ program successfully. By using adb commands, I can also make the program run in Android devices:</p> <pre><code>adb push c_plus_plus_program /data/loc...
Thanks to cmake-android-chain , I can build a C++ program successfully. By using adb commands, I can also make the program run in Android devices: [CODE] Now I want to debug this program in Eclipse. With cmake, I can create a project for Eclipse, and I have also succeeded in building the project. However, the problem i...
android|c++|eclipse|cmake
1
2015-02-24T08:04:58.917Z
2,015
2
8
1
52
0
423
53
4
1
true
true
false
false
false
false
low
28,690,816
Canvas draw html text
<p>Is it possible to pass Html to <code>Canvas.drawtext()</code>. <br> I tried this: </p> <pre><code>canvas.drawText(Html.fromHtml("This is an &lt;u&gt;underline&lt;/u&gt; text demo for TextView."), 0, 20, colIndex, rowIndex, getTextPaint()); </code></pre> <p>But that cannot parse tags and not show correctly. <br><br...
Is it possible to pass Html to Canvas.drawtext() . I tried this: [CODE] But that cannot parse tags and not show correctly. Thanks in advance.
android|canvas|drawtext
9
2015-02-24T08:06:04.753Z
2,015
2
8
1
2,248
2
141
21
3
1
true
false
false
false
false
false
medium
28,690,831
RecyclerView not displaying inside a fragment
<p>I Initially tried adding RecyclerView to an activity and it workes fine. but the problem appeared when i tried to fragment my recyclerview . Thr recycler view does not appear inside a fragment. Just wanted to know if there is any implementation mistake i am doing. </p> <pre><code>public class MainActivity extends ...
I Initially tried adding RecyclerView to an activity and it workes fine. but the problem appeared when i tried to fragment my recyclerview . Thr recycler view does not appear inside a fragment. Just wanted to know if there is any implementation mistake i am doing. [CODE] This is my Fragment RecyclerViewFragment [CODE] ...
android|android-fragments|android-recyclerview
3
2015-02-24T08:07:20.737Z
2,015
2
8
1
1,221
0
471
45
3
7
true
true
false
false
false
false
low
28,690,899
Using grep to read a log for pattern1 in the file and print only lines containing pattern1. Stop searching when pattern2 is found in the file
<p>Using <code>grep/sed/awk</code> I want to search for <code>pattern1</code> until <code>pattern2</code> is found in a file and print the results containing only <code>pattern1</code>. </p> <p>I don't want the lines between the range of pattern1 and pattern2 for which there are many solutions in this site. Please hel...
Using grep/sed/awk I want to search for pattern1 until pattern2 is found in a file and print the results containing only pattern1 . I don't want the lines between the range of pattern1 and pattern2 for which there are many solutions in this site. Please help. I tried the following with no results: adb logcat | grep -i ...
android|python|awk|sed|grep
2
2015-02-24T08:12:13.497Z
2,015
2
8
1
297
2
621
141
5
0
false
false
false
false
false
false
low
28,690,935
android tracking- how to pass external param to app?
<p>I'm playing with my apk. I'd like to fire a conversion back on app install but don't know how to pass the unique conversion ID to the app.</p> <p>Here's what I'd like to do. </p> <ol> <li><p>user installs apk with his click ID: <a href="http://www.example.com/myapk.apk?click=dfsg-fdsfwe-43fsdf-43sdf" rel="nofoll...
I'm playing with my apk. I'd like to fire a conversion back on app install but don't know how to pass the unique conversion ID to the app. Here's what I'd like to do. user installs apk with his click ID: http://www.example.com/myapk.apk?click=dfsg-fdsfwe-43fsdf-43sdf the click parameter is fired on app start [CODE] Ple...
android|apk|user-tracking|install-referrer
0
2015-02-24T08:14:55.417Z
2,015
2
8
1
194
1
491
52
4
1
true
false
false
false
false
false
zero
28,690,994
proguard warning: the configuration keeps the entry point....but not the descriptor class
<p>I've configured:</p> <pre><code>-keep ,allowoptimization,allowobfuscation,allowshrinking public class org.jf.dexlib2.dexbacked.** { *; } </code></pre> <p>but still getting the warning:</p> <pre><code> Note: the configuration keeps the entry point 'com.trusteer.trf.dex_parser { int get_strings_count(org.jf...
I've configured: [CODE] but still getting the warning: [CODE] I am using proguard version 4.7 (in Android SDK) What should I do?
android|proguard|obfuscation
32
2015-02-24T08:20:12.460Z
2,015
2
8
1
19,539
6
128
89
3
2
true
false
true
true
true
false
high
28,691,039
System.setProperty("java.version", "1.6") not working Android 5
<p>I was using this command on Android 4 and it was working without any problem: <code>System.setProperty("java.version", "1.6");</code> but when I upgrade my Android to 5 I start getting this error: <code>Ignoring attempt to set property "java.version" to value "1.6"</code></p> <p>I want to set this property to 1.6 ...
I was using this command on Android 4 and it was working without any problem: System.setProperty("java.version", "1.6"); but when I upgrade my Android to 5 I start getting this error: Ignoring attempt to set property "java.version" to value "1.6" I want to set this property to 1.6 because I am using mvel library and th...
java|android|android-5.0-lollipop|mvel
0
2015-02-24T08:24:16.303Z
2,015
2
8
1
600
1
479
63
4
0
false
false
false
false
false
false
zero
28,691,042
LocalBroadcastManager not working
<p>I'm trying to sendMessage from service to activity, but for some reason it's not working.</p> <p>Activity</p> <pre><code> @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_barcode); LocalBroadcastManager.getIns...
I'm trying to sendMessage from service to activity, but for some reason it's not working. Activity [CODE] Service [CODE] Log.d "broadcasting message" is shown and then nothing happens PROBLEM SOLVED In android manifest [CODE] It seems when android:process is specified localbroadcastmanager is not working. I just delete...
android|localbroadcastmanager
1
2015-02-24T08:24:27.523Z
2,015
2
8
1
2,169
2
356
33
2
3
true
false
false
false
false
false
low
28,691,068
Populating an existing listview in a viewpager
<p>I am working on a project where i have 3 activities/fragments in a viewpager</p> <p>now i want to populate this listview hardcoded or a JSON file, problem is that findviewbyid returns a null so i can't add any new items.</p> <p>i Use this pageradapter to create the viewpager</p> <pre><code>public class MyPagerAda...
I am working on a project where i have 3 activities/fragments in a viewpager now i want to populate this listview hardcoded or a JSON file, problem is that findviewbyid returns a null so i can't add any new items. i Use this pageradapter to create the viewpager [CODE] The pages inside can de fragments or activity haven...
android|listview|android-viewpager
0
2015-02-24T08:25:45.593Z
2,015
2
8
1
108
1
685
46
3
3
true
false
false
false
false
false
zero
28,691,093
Use different VersionCode for Debug/Release android gradle build
<p>I'd like to apply <strong>different VersionCode to make apk</strong> file. For debug only fix it to <code>1</code>, and for release whatever number specified in defaultConfig.</p> <p>Below code gives <code>mypackage-release-1.apk</code> file as <strong>assembleRelease</strong> artifact, which is not expected. I exp...
I'd like to apply different VersionCode to make apk file. For debug only fix it to 1 , and for release whatever number specified in defaultConfig. Below code gives mypackage-release-1.apk file as assembleRelease artifact, which is not expected. I expected mypackage-release-10111.apk for that. why the line debug { defau...
android|android-gradle-plugin|build.gradle
16
2015-02-24T08:27:59.437Z
2,015
2
8
1
9,615
7
385
64
3
1
true
false
true
false
true
false
medium
28,691,101
Always click button when keyboard is open android-PhoneGap
<p>How to make sure that click event always fires on button in Cordova application when my keyboard is open? When I tap on search it closes keyboard and I have to click on search again. At times it will fire click event. Check screenshot for reference- <img src="https://i.stack.imgur.com/nPQyZ.png" alt="enter image des...
How to make sure that click event always fires on button in Cordova application when my keyboard is open? When I tap on search it closes keyboard and I have to click on search again. At times it will fire click event. Check screenshot for reference-
javascript|android|jquery|cordova|jquery-mobile
3
2015-02-24T08:28:22.490Z
2,015
2
8
1
327
0
249
58
5
0
false
true
false
false
false
false
low
28,691,122
use samsung account as login for android application
<p>I would like to know whether there is any API available for login using samsung account.<br/> There are options for following:<br/> 1)Login using facebook account<br/> 2)Login using google account<br/></p> <p>But I would like to know about the samsung account.I have come to a link which is a year old on this.<br/> ...
I would like to know whether there is any API available for login using samsung account. There are options for following: 1)Login using facebook account 2)Login using google account But I would like to know about the samsung account.I have come to a link which is a year old on this. http://developer.samsung.com/forum/b...
android|authentication
0
2015-02-24T08:29:54.583Z
2,015
2
8
1
733
1
428
52
2
0
false
false
false
false
false
false
zero
28,691,142
what is the best between google map API v2, google map API V3 OpenStreetMap for android application?
<p>i'm developping an android application for tour guide using REST API and Json, so i need to make a map. i don't know what is the best to work with (google map API V2 or API V3 or OpenStreetMap)?? my boss tell me to avoid google map because google can withdraw it at any time. </p>
i'm developping an android application for tour guide using REST API and Json, so i need to make a map. i don't know what is the best to work with (google map API V2 or API V3 or OpenStreetMap)?? my boss tell me to avoid google map because google can withdraw it at any time.
android|openstreetmap
-1
2015-02-24T08:31:15.393Z
2,015
2
8
1
501
2
275
100
2
0
false
false
false
false
false
true
negative
28,691,165
Native method not found when using C++
<p>I've made two test projects, both android applications using JNI.</p> <p>For the first one i did not use Android Tools / Add native support. The native method is defined in a .c file using the C syntax of JNI, and it works fine, the method is successfully found and called.</p> <p>On the second project i did add th...
I've made two test projects, both android applications using JNI. For the first one i did not use Android Tools / Add native support. The native method is defined in a .c file using the C syntax of JNI, and it works fine, the method is successfully found and called. On the second project i did add the native support an...
java|android|c++|android-ndk|java-native-interface
1
2015-02-24T08:32:53.037Z
2,015
2
8
1
726
4
817
38
5
1
true
false
false
false
false
false
low
28,691,167
Android spinner acting weird on rotate
<p>I have a fragement with various Spinners in it. To have these spinners display an initial (non selectable) value I'm using a custom arrayAdapter (SpinnerHintAdapter). The only important thing this class does is override the getCount() so the last item of the selection-array isn't displayed, this is where the initial...
I have a fragement with various Spinners in it. To have these spinners display an initial (non selectable) value I'm using a custom arrayAdapter (SpinnerHintAdapter). The only important thing this class does is override the getCount() so the last item of the selection-array isn't displayed, this is where the initial va...
android|spinner
2
2015-02-24T08:32:57.483Z
2,015
2
8
1
734
2
694
38
2
3
true
false
false
false
false
false
low
28,691,173
How do I get the data from a serial GPS connected to my android device?
<p>I am working on a project where I have to connect my android device (LG G3) to a GPS with usb. I can't figure out how I can get the data out of my GPS and I do not want to use the device it's internall GPS because I need to be pretty accurate.</p>
I am working on a project where I have to connect my android device (LG G3) to a GPS with usb. I can't figure out how I can get the data out of my GPS and I do not want to use the device it's internall GPS because I need to be pretty accurate.
java|android|gps|serial-port
2
2015-02-24T08:33:12.153Z
2,015
2
8
1
1,442
1
243
71
4
0
false
false
false
false
false
false
low
28,691,184
How to avoid object creation inside the onDraw method
<p>I know that creating objects inside the <code>onDraw</code> method is very costly. I want to draw a matrix of rounded rectangles, which coordinates are dynamic, and I can't cache all that rectangles, because I use a scroll view and there may be a lot of rectangles, there's no other overload for <code>drawRoundRect</...
I know that creating objects inside the onDraw method is very costly. I want to draw a matrix of rounded rectangles, which coordinates are dynamic, and I can't cache all that rectangles, because I use a scroll view and there may be a lot of rectangles, there's no other overload for drawRoundRect method, which has primi...
android|performance|custom-view
3
2015-02-24T08:33:49.260Z
2,015
2
8
1
570
1
522
53
3
1
true
false
false
false
false
false
low
28,691,257
View sqlite database on android
<p>I am using android studio to develop my first android app. </p> <p>I am plugging in my phone, and testing my app on there to test changes as I go. </p> <p>I am using a sqlite database. How do I view this database, the tables, and the contents (rows) of those tables?</p> <p>Upon Google searching I found that this ...
I am using android studio to develop my first android app. I am plugging in my phone, and testing my app on there to test changes as I go. I am using a sqlite database. How do I view this database, the tables, and the contents (rows) of those tables? Upon Google searching I found that this can be done when you root you...
android|sqlite|android-studio
0
2015-02-24T08:38:53.730Z
2,015
2
8
1
145
3
618
31
3
0
false
false
false
false
false
false
zero
28,691,305
Android: Using several version of the same library for different flavors
<p>I'm needing help again with my strange projects ;)</p> <p>So I'm still building a library, and I need to use libA-1.01.jar and libA-2.1.jar</p> <p>Of course I don't want them in the same flavor, so I used in my gradle file:</p> <pre><code>flavorACompile files('libs/libA-1.01.jar') flavorBCompile files('libs/libA-...
I'm needing help again with my strange projects ;) So I'm still building a library, and I need to use libA-1.01.jar and libA-2.1.jar Of course I don't want them in the same flavor, so I used in my gradle file: [CODE] This works fine when compiling with gradlew in command line. But the issue is that my classes don't see...
android|dependencies|android-productflavors
3
2015-02-24T08:41:56.007Z
2,015
2
8
1
332
0
755
72
3
1
true
true
false
false
false
false
low
28,691,392
Android how to proper overlay image to support multiple screen
<p>I was able to overlay an image in the table layout, but the design will be run in multiple size of screen. Because i'm using margin to achieve the effect of overlay. Below is the code. Is there any suggestion that i can achieve the desired result? Thanks.</p> <pre><code>&lt;RelativeLayout xmlns:android="http://sche...
I was able to overlay an image in the table layout, but the design will be run in multiple size of screen. Because i'm using margin to achieve the effect of overlay. Below is the code. Is there any suggestion that i can achieve the desired result? Thanks. [CODE]
android|android-layout|screen|overlay|margin
1
2015-02-24T08:47:38.360Z
2,015
2
8
1
532
1
262
62
5
1
true
false
false
false
false
false
low
28,691,411
Generic repository in Java
<p>Let's say I have this class:</p> <pre><code>public class PhotoRepository { private PhotoDao db; PhotoRepository(PhotoDao dao) { db = dao; } public void save(List&lt;Photo&gt; photos) { db.insertOrReplaceInTx(photos); } public List&lt;Photo&gt; all() { return db.loadAll(); } publi...
Let's say I have this class: [CODE] Since I have more kind of entities, not just Photo, I would like to have a generic Repository where I can pass any kind of Dao. I have tried using Class<? extends AbstractDao<?, ?>> as parameter of the constructor, but the compiler says that de dao methods can't be resolved. Somethin...
java|android|generics|dry
3
2015-02-24T08:48:47.090Z
2,015
2
8
1
1,553
1
489
26
4
2
true
false
false
false
false
false
low
28,691,445
Listview onClick not working with overlay Framelayout android
<p>I have a ListView. Each item of ListView has HorizontalScrollview and textview. Horizontal Scroll view has images inside it. I am using FrameLayout to display textview over Horizontal Scroll view(on Left side).</p> <p>I am able to do it.But when i am clicking on TextView to call on Long Click Listener of ListVi...
I have a ListView. Each item of ListView has HorizontalScrollview and textview. Horizontal Scroll view has images inside it. I am using FrameLayout to display textview over Horizontal Scroll view(on Left side). I am able to do it.But when i am clicking on TextView to call on Long Click Listener of ListView ,OnClick eve...
android|android-layout|listview
0
2015-02-24T08:50:35.573Z
2,015
2
8
1
697
2
572
61
3
2
true
false
false
false
false
false
zero
28,691,500
How to advertise admob without google market
<p>I created an android app with Admob advertisement. I don't want to publish my app on Google market. And my user still use my app. can I get payment from Admob? Anyone have experience with that, please help. Thanks </p>
I created an android app with Admob advertisement. I don't want to publish my app on Google market. And my user still use my app. can I get payment from Admob? Anyone have experience with that, please help. Thanks
android|admob
1
2015-02-24T08:53:24.797Z
2,015
2
8
1
180
2
213
44
2
0
false
false
false
false
false
false
low
28,691,503
How to enable Changes tab Android Studio
<p>My Changes tab in Android Studio disappeared suddenly.</p> <p>VCS button is also not available after upgrading it to Android Studio and Gradle 1.1.0.</p> <p>I could right click on files and see "Local History" but not the changes with respect to latest from Repository. </p>
My Changes tab in Android Studio disappeared suddenly. VCS button is also not available after upgrading it to Android Studio and Gradle 1.1.0. I could right click on files and see "Local History" but not the changes with respect to latest from Repository.
android|android-studio
15
2015-02-24T08:53:36.763Z
2,015
2
8
1
8,149
2
255
40
2
0
false
false
true
false
true
false
medium
28,691,611
Error when writing a class extending View in android
<p>I am new to xamarin. I have created a demo in xamarin Android. While trying to write a class extending the View class I got an error that the View does not have default constructor. But I have not writted default constructor at all. All I have done is written a class extending the view with a constructor with an arg...
I am new to xamarin. I have created a demo in xamarin Android. While trying to write a class extending the View class I got an error that the View does not have default constructor. But I have not writted default constructor at all. All I have done is written a class extending the view with a constructor with an argume...
android|xamarin|xamarin.android
2
2015-02-24T08:59:47.383Z
2,015
2
8
1
262
1
562
52
3
0
false
false
false
false
false
false
low
28,691,639
Android e-commerce Update Cart
<p>I am new to android. I am trying to develop an e commerce application. Till now I have implemented the cart feature using SQLLite database. I want to know how can I update the cart information of the user on the server. any resource will be helpful. Thanks in advance.</p>
I am new to android. I am trying to develop an e commerce application. Till now I have implemented the cart feature using SQLLite database. I want to know how can I update the cart information of the user on the server. any resource will be helpful. Thanks in advance.
android|e-commerce
0
2015-02-24T09:01:56.493Z
2,015
2
9
1
183
0
268
30
2
0
false
true
false
false
false
false
zero
28,691,673
setAutoCancel(true) doesnot work
<p>Hi all my android push notification works well.but if there is only one notification for my app ,after user touches it it cleared.but if multiple notifications are there (by using id) only first one clear after touching some notifications are still showing in satusbar.I use NotificationCompat.Builder so i needed to...
Hi all my android push notification works well.but if there is only one notification for my app ,after user touches it it cleared.but if multiple notifications are there (by using id) only first one clear after touching some notifications are still showing in satusbar.I use NotificationCompat.Builder so i needed to use...
android|push-notification|google-cloud-messaging|android-c2dm
1
2015-02-24T09:03:46.320Z
2,015
2
9
1
603
0
468
32
4
1
true
true
false
false
false
false
low
28,691,677
Google Tag Manager - Invalid Input
<p>every time i try to publish a container through Google Tag manager, I keep getting this error "<strong>Invalid input. You may have stale data; refresh the page and try again</strong>".</p> <p>I have tried restarting the browser but even this hasn't helped. Any idea why this is happening ? Is there an issue with the...
every time i try to publish a container through Google Tag manager, I keep getting this error " Invalid input. You may have stale data; refresh the page and try again ". I have tried restarting the browser but even this hasn't helped. Any idea why this is happening ? Is there an issue with the new release of GTM or is ...
android|google-analytics|google-tag-manager
0
2015-02-24T09:04:09.577Z
2,015
2
9
1
1,847
1
344
34
3
0
false
false
false
false
false
false
zero
28,691,754
ListView is mixing entries
<p>I have a strange problem and i cant figure out what's the problem. I have the following simple layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_pare...
I have a strange problem and i cant figure out what's the problem. I have the following simple layout: [CODE] The Adapter i use is the following: [CODE] And this is the Fragment for the List: [CODE] Now to the problem When i fill the list with data everything seems to be alright and it contains 19 entries. Only the las...
android
0
2015-02-24T09:07:56.527Z
2,015
2
9
1
54
2
913
26
1
3
true
false
false
false
false
false
zero
28,691,758
How to change pin it button (Pinterest) background rectangle to round?
<p>I am using pint it button in my application but it is in rectangle shape. How can i change in round button with custom background. How can i set background of pint it button.</p> <pre><code> &lt;com.pinterest.pinit.PinItButton android:id="@+id/pin_bt" android:layout_width="wrap_content" android:layout_...
I am using pint it button in my application but it is in rectangle shape. How can i change in round button with custom background. How can i set background of pint it button. [CODE]
android|android-layout|android-intent|android-activity|android-fragments
0
2015-02-24T09:08:06.640Z
2,015
2
9
1
174
1
181
70
5
1
true
false
false
false
false
false
zero
28,691,782
GPS provider Security exception
<p>What is the correct way to fix if checking the status of GPS provider throws SecurityException by request permissions in manifest file</p>
What is the correct way to fix if checking the status of GPS provider throws SecurityException by request permissions in manifest file
android|gps|user-permissions|uses
-3
2015-02-24T09:09:33.190Z
2,015
2
9
1
1,140
1
134
31
4
0
false
false
false
false
false
true
negative
28,691,783
Android intent to google play app at "my applications" section
<p>Is possible to launch a intent to Google play store app to show "my applications" section?? I need to watch current apps and updates. </p>
Is possible to launch a intent to Google play store app to show "my applications" section?? I need to watch current apps and updates.
android|android-intent|google-play
-1
2015-02-24T09:09:38.983Z
2,015
2
9
1
1,982
1
133
62
3
0
false
false
false
false
false
true
negative
28,691,821
How to save video file to secondary SD card using MediaMuxer on Android 5.0?
<p>I'm facing a big problem. I use MediaMuxer to create a mp4 file. Here 's constructor of MediaMuxer:</p> <pre><code>public MediaMuxer (String path, int format) </code></pre> <p>For example:</p> <pre><code>sMediaMuxer = new MediaMuxer("/storage/emulated/0/OuputVideos/output1.mp4",OutputFormat.MUXER_OUTPUT_MPEG_4 </...
I'm facing a big problem. I use MediaMuxer to create a mp4 file. Here 's constructor of MediaMuxer: [CODE] For example: [CODE] The problem is that: Everything is ok with primary storage (internal storage), but I can not save output video to secondary SD card (external). My app runs in Lollipop devices (5.0). I read a l...
android|storage|external|android-5.0-lollipop|mediamuxer
2
2015-02-24T09:11:57.563Z
2,015
2
9
1
639
0
689
76
5
4
true
true
false
false
false
false
low
28,691,847
Android AccountManager.getUserData() returns null
<p>I have a similar problem like this <a href="https://stackoverflow.com/questions/10657658/accountmanager-getuserdata-returning-null-despite-it-being-set">AccountManager getUserData returning null despite it being set</a> But the solutions did not work for me <br></p> <p>My Authenticator.java</p> <pre><code>public c...
I have a similar problem like this AccountManager getUserData returning null despite it being set But the solutions did not work for me My Authenticator.java [CODE] I added an account like this [CODE] But when I try to get user data by calling getUserData() I get null
java|android|android-account
4
2015-02-24T09:13:54.600Z
2,015
2
9
1
3,885
3
268
49
3
2
true
false
true
false
false
false
low
28,691,860
Touch listener on Google Map Markers Android
<p>How can I add a Tab/Touch/Click listener on the Markers I have on my Google Map in android program. For example in the below image I have one marker on google maps and when clicked, I want to bring up a toast saying this has been clicked</p> <p><a href="http://i.stack.imgur.com/Bc7Lp.png" rel="nofollow">http://i.st...
How can I add a Tab/Touch/Click listener on the Markers I have on my Google Map in android program. For example in the below image I have one marker on google maps and when clicked, I want to bring up a toast saying this has been clicked http://i.stack.imgur.com/Bc7Lp.png I have tried onMapClickListener but that does n...
android|google-maps|google-maps-api-2|ontouchlistener|marker
2
2015-02-24T09:14:32.843Z
2,015
2
9
1
3,567
2
335
44
5
1
true
false
true
false
false
false
low