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,565,015
Volley RequestQueue: retry after noConnectionError
<p>I try to implement a simple asynchronous http request, pushing some data to server and work with the response. But sometime the smartphone is getting out of network access and StringRequest stops with a noConnectionError. The Request seems to be finished then and retry rules do not apply (no retry is being done, reg...
I try to implement a simple asynchronous http request, pushing some data to server and work with the response. But sometime the smartphone is getting out of network access and StringRequest stops with a noConnectionError. The Request seems to be finished then and retry rules do not apply (no retry is being done, regard...
java|android|android-volley
4
2015-02-17T15:30:18.237Z
2,015
2
15
1
1,165
0
799
50
3
2
true
true
false
false
false
false
low
28,565,069
Is it possible to stay inside a click event call stack when using promise.then?
<p>The <code>play()</code> method on an audio element must be triggered by a user initiated event but it seems like the <code>.then</code> used in my click event breaks the call stack. I have to use <code>.then</code> in this situation.</p> <p>The ng-click calls <code>open(file)</code> in its controller which is just ...
The play() method on an audio element must be triggered by a user initiated event but it seems like the .then used in my click event breaks the call stack. I have to use .then in this situation. The ng-click calls open(file) in its controller which is just a reference to open() from my "player" service. open() from "pl...
javascript|android|angularjs|html|html5-audio
2
2015-02-17T15:33:08.670Z
2,015
2
15
1
81
1
561
79
5
2
true
false
false
false
false
false
low
28,565,114
Safety tips to run services in Android
<p>I want to understand a few things about services in Android, its a fact that a service running in background take more memory, right?. But few messaging services like Whatsapp, Facebook, etc , run always in background?. Even if we dont do operation also battery consumption will be more?</p> <p>From the official <a ...
I want to understand a few things about services in Android, its a fact that a service running in background take more memory, right?. But few messaging services like Whatsapp, Facebook, etc , run always in background?. Even if we dont do operation also battery consumption will be more? From the official documentation ...
android|android-service
0
2015-02-17T15:35:32.007Z
2,015
2
15
1
99
1
773
38
2
0
false
false
false
false
false
false
zero
28,565,115
Hide adjacent tabs titles in PagerTitleStrip
<p>So I have an app that displays tabs, that you can scroll horizontally with the help of a <em>ViewPager</em>.</p> <p>My question is : is there a way to <strong>hide the adjacent tabs titles</strong> in a <em>PagerTitleStrip</em> ? </p> <p>I've been so far unable to find a way to do that either dynamically or via X...
So I have an app that displays tabs, that you can scroll horizontally with the help of a ViewPager . My question is : is there a way to hide the adjacent tabs titles in a PagerTitleStrip ? I've been so far unable to find a way to do that either dynamically or via XML... Thanks in advance ! P.S. : I'd like to post a pic...
android|android-fragments|android-viewpager
1
2015-02-17T15:35:33.787Z
2,015
2
15
1
530
2
553
44
3
0
false
false
false
false
false
false
low
28,565,205
Animation_list must be declared error
<p>Having read <a href="http://developer.android.com/guide/topics/graphics/drawable-animation.html" rel="nofollow">Drawable Animation</a> , <a href="http://developer.android.com/guide/topics/resources/animation-resource.html#Frame" rel="nofollow">Animation Resource</a>, and other stackoverflow questions, i thought that...
Having read Drawable Animation , Animation Resource , and other stackoverflow questions, i thought that putting this in the drawable file was the proper way of creating an animation_list. [CODE] However , animation_list is red and "must be declared". I dont know what is wrong. Thanks in advance
android|xml
1
2015-02-17T15:39:40.933Z
2,015
2
15
1
3,735
1
295
37
2
1
true
false
true
false
false
false
low
28,565,210
Only my application should have permission to access the files generated by app
<p>My application generates some .csv files while running and these files are placed inside Android File system. These files are accessible outside the application also(as i can open these files in text editor and modify...) <strong>Now I want that only my application should be able to read/write into these files. Plea...
My application generates some .csv files while running and these files are placed inside Android File system. These files are accessible outside the application also(as i can open these files in text editor and modify...) Now I want that only my application should be able to read/write into these files. Please help me ...
android
0
2015-02-17T15:39:51.657Z
2,015
2
15
1
28
2
352
79
1
0
false
false
false
false
false
false
zero
28,565,238
android java calling button from XML without getting NULL
<p>I'm looking to call a few buttons but seem to be getting a NULL when trying to findbyviewid. When I activate this activity, it crashes.</p> <pre><code>//CREATE INSTANCE OF GLOBAL - QUESTIONS/ANSWERS Global global = Global.getInstance(); //CURRENT QUESTION static int QQ = 0; //CORRECT ANSWER COUNT static int corr...
I'm looking to call a few buttons but seem to be getting a NULL when trying to findbyviewid. When I activate this activity, it crashes. [CODE] I have 4 buttons in the XML file and want to be able to set the text to them, as well as run a listener for the set of buttons (answers to a question). When one of the buttons i...
java|android|button|null
0
2015-02-17T15:41:14.683Z
2,015
2
15
1
105
2
616
57
4
1
true
false
false
false
false
false
zero
28,565,249
Double Tap on Android ListView ListItem
<p>This is a question that I know has been asked many times before, but I'm having a very hard time finding a solution that works for me. I'm also not that great of a programmer.</p> <p>I currently have a list view, and I like the way the single tap highlights the listitem before it fires onListItemClick. I also like ...
This is a question that I know has been asked many times before, but I'm having a very hard time finding a solution that works for me. I'm also not that great of a programmer. I currently have a list view, and I like the way the single tap highlights the listitem before it fires onListItemClick. I also like the way tha...
android|user-interface
1
2015-02-17T15:42:03.860Z
2,015
2
15
1
62
0
595
39
2
0
false
true
false
false
false
false
low
28,565,293
String variable sends null to httppost
<p>String sends null to httppost even though has value in it. I already looked up on the internet but I still wasn´t able to find the solution.</p> <p><strong>This is how I get the data</strong></p> <pre><code> tr.setOnClickListener(new View.OnClickListener() { @Override public void...
String sends null to httppost even though has value in it. I already looked up on the internet but I still wasn´t able to find the solution. This is how I get the data [CODE] And this is the method of httppost [CODE] And this is my php file [CODE] And this is my logcat [CODE] As you can see in the LogCat , the String v...
android
-1
2015-02-17T15:43:37.010Z
2,015
2
15
1
45
1
598
38
1
5
true
false
false
false
false
true
negative
28,565,310
Youtube App - Safe Search API/lock down setting
<p>Is there a way to lock the Safe Search setting in the YouTube App to always be on? We have elementary school students and want them to use the App but cannot allow it to be used if the student can turn Safe Search off in the App. We use Airwatch MDM but cannot find any way in the App or MDM to lock down this setti...
Is there a way to lock the Safe Search setting in the YouTube App to always be on? We have elementary school students and want them to use the App but cannot allow it to be used if the student can turn Safe Search off in the App. We use Airwatch MDM but cannot find any way in the App or MDM to lock down this setting. W...
android|youtube|youtube-api|samsung-mobile|airwatch
0
2015-02-17T15:45:14.673Z
2,015
2
15
1
180
1
361
47
5
0
false
false
false
false
false
false
zero
28,565,385
Downloading files to Android
<p>I'm writing an application and later on I will need to write a code for downloading file(s) in to the Android device from remote server. I can connect to a server using JSch library but I have no idea how to actually download a file. Any tips on what should I look for or where should I start? Thanks</p>
I'm writing an application and later on I will need to write a code for downloading file(s) in to the Android device from remote server. I can connect to a server using JSch library but I have no idea how to actually download a file. Any tips on what should I look for or where should I start? Thanks
android|jsch
0
2015-02-17T15:48:39.527Z
2,015
2
15
1
905
2
300
28
2
0
false
false
false
false
false
false
zero
28,565,457
Using Otto in place of everything
<p>I've been using Otto event bus for a while and it's been great. Can you think of any <strong>disadvantages</strong> to using it over a BroadcastReceiver implementation within a package, or over a more traditional interface listener pattern?</p> <p>For example, Google recommends having the host activity for fragment...
I've been using Otto event bus for a while and it's been great. Can you think of any disadvantages to using it over a BroadcastReceiver implementation within a package, or over a more traditional interface listener pattern? For example, Google recommends having the host activity for fragments implement an interface fro...
android|android-fragments|otto
2
2015-02-17T15:51:45.723Z
2,015
2
15
1
189
1
631
33
3
0
false
false
false
false
false
false
low
28,565,517
SQLITE CREATE VIEW Syntax issues with JOIN
<p>Having a bit of trouble in CREATE VIEW with JOIN when I try to join 3 tables together, I can do 2 but 3 seems to be a no go for me. I'm new to this so I'm just going by trial and error since most of the documentations I've gone through didn't really cover ( to my understanding ) joining 3 tables and it's not really ...
Having a bit of trouble in CREATE VIEW with JOIN when I try to join 3 tables together, I can do 2 but 3 seems to be a no go for me. I'm new to this so I'm just going by trial and error since most of the documentations I've gone through didn't really cover ( to my understanding ) joining 3 tables and it's not really goi...
android|mysql|sqlite|syntax
0
2015-02-17T15:55:01.957Z
2,015
2
15
1
121
1
798
42
4
5
true
false
false
false
false
false
zero
28,565,538
SwitchPreference not changing state after setting onPreferenceChangeListener
<p>I have an activity which extends PreferenceActivity and i have a class which extends PreferenceFragment.</p> <p>After I initiate the switchPreference variable (inside the Fragment) I set OnPreferenceChangeListener to it. The problem is when I do set a listener I cant change the state of the switch button (it remain...
I have an activity which extends PreferenceActivity and i have a class which extends PreferenceFragment. After I initiate the switchPreference variable (inside the Fragment) I set OnPreferenceChangeListener to it. The problem is when I do set a listener I cant change the state of the switch button (it remain at the sam...
android|switchpreference
4
2015-02-17T15:55:56.553Z
2,015
2
15
1
1,072
1
638
76
2
0
false
false
false
false
false
false
low
28,565,572
android - ArrayIndexOutOfBoundsException
<p>I've this string </p> <pre><code>227305593149516.jpg;221563849532915.3gp; </code></pre> <p>I split each file name with ; charecter as you can see .I use this code inside my activity to make them apart :</p> <pre><code>mystring="227305593149516.jpg;221563849532915.3gp;"; StringTokenizer tokenizer = new StringToken...
I've this string [CODE] I split each file name with ; charecter as you can see .I use this code inside my activity to make them apart : [CODE] It's very strange ,I run this code on emulator and 2 other devices and it works find but I run the same app on another phone and it crashed , this is the log : [CODE] this is th...
android
1
2015-02-17T15:57:34.657Z
2,015
2
15
1
96
1
482
40
1
4
true
false
false
false
false
false
low
28,565,639
Android, Throwing out of memory error when runned on AVD
<p>This is my <code>MainActivity</code> class</p> <pre><code>public class MainActivity extends Activity { TextView resultView; ContentValues values; DbHelper dbHelper; SQLiteDatabase db; public static final String TAG="database"; @Override protected void onCreate(Bundle savedInstanceStat...
This is my MainActivity class [CODE] This is my DbHelper class [CODE] The file which im calling flore.json is of 1.8 mb size.. I searched through stack overflow and i found to use setChunkedStreamingMode(lengthoffile);...But my file size is 1.8mb.. Please help me on how to get the data from the large file My log Error ...
java|android|sqlite
0
2015-02-17T16:00:49.780Z
2,015
2
16
1
1,757
1
326
56
3
3
true
false
false
false
false
false
zero
28,565,705
How can I click on drawer home button in my application using Robotium
<p>How can i click on my drawer home button using Robotium?</p> <p>So far I have tried:</p> <pre><code>public void test5(){ solo.setNavigationDrawer(Solo.OPENED); } public void test5(){ solo.assertCurrentActivity("Check on main activity", MainActivity.class); solo.clickOnButton("ClimbCro"); } pu...
How can i click on my drawer home button using Robotium? So far I have tried: [CODE] Also if the drawer can be opened how can I click an item on it? Screenshot of my application
android|testing|junit|robotium
1
2015-02-17T16:04:42.207Z
2,015
2
16
1
104
0
177
70
4
1
true
true
false
false
false
false
low
28,565,724
Android horizontal ProgressBar doesn't match parent
<p>I want to use a custom <code>ProgressBar</code> using PNG images for the background and progress. I want something that looks like this :</p> <p><img src="https://i.stack.imgur.com/BxwSw.png" alt="How it should look"></p> <p>But instead, I have this:</p> <p><img src="https://i.stack.imgur.com/RU0hE.png" alt="How ...
I want to use a custom ProgressBar using PNG images for the background and progress. I want something that looks like this : But instead, I have this: Here is my background image: I would like my background to fit the screen , but it doesn't. I can only see a part of my ProgressBar . However, if I set android:indetermi...
android|android-progressbar
0
2015-02-17T16:05:50.040Z
2,015
2
16
1
1,010
1
538
51
2
2
true
false
false
false
false
false
zero
28,565,739
How do i store a textview using Shared Preferences
<p>So my question might have been asked many times but i couldnt find an answer anywhere on the internet to it .</p> <p>. What i want to do is store a textview using sharedprefeences .</p> <p>In my first class (xp) i,m sending the textview to another class (feedback) Now the feedback is reciving the textview with no ...
So my question might have been asked many times but i couldnt find an answer anywhere on the internet to it . . What i want to do is store a textview using sharedprefeences . In my first class (xp) i,m sending the textview to another class (feedback) Now the feedback is reciving the textview with no single problem , bu...
java|android|android-intent|sharedpreferences
1
2015-02-17T16:06:45.387Z
2,015
2
16
1
437
1
699
50
4
2
true
false
false
false
false
false
low
28,565,778
Imgproc.getRectSubPix OpenCV function give an error in Java
<p>I have a rotatedRect that I find on my image, and I want to retrieve the subMatrice of all pixel in this rotatedRect. I find this C++ code on this topic : <a href="http://answers.opencv.org/question/497/extract-a-rotatedrect-area/" rel="nofollow">http://answers.opencv.org/question/497/extract-a-rotatedrect-area/</a>...
I have a rotatedRect that I find on my image, and I want to retrieve the subMatrice of all pixel in this rotatedRect. I find this C++ code on this topic : http://answers.opencv.org/question/497/extract-a-rotatedrect-area/ and here my Java code: [CODE] And here my error in the logCat [CODE] It seems that getRectSubPix f...
java|android|opencv|image-processing
2
2015-02-17T16:08:48.410Z
2,015
2
16
1
1,596
1
375
59
4
2
true
false
false
false
false
false
low
28,565,789
Set the rotation and position of bitmap
<p>I would like to know how i both can change the position of a bitmap and at the same time rotate it. Im drawing at a canvas.</p> <p>Im currently using this line of code:</p> <pre><code>canvas.drawBitmap(bitmap, posX, posY, paint); </code></pre> <p>and I think using a matrix for rotation is the best option? The pro...
I would like to know how i both can change the position of a bitmap and at the same time rotate it. Im drawing at a canvas. Im currently using this line of code: [CODE] and I think using a matrix for rotation is the best option? The problem is that the line of code, posted above, doesn't take a matrix but a position. T...
java|android|matrix|position|surfaceview
1
2015-02-17T16:09:16.650Z
2,015
2
16
1
397
1
429
39
5
2
true
false
false
false
false
false
low
28,565,795
NoClassDefFoundError and other errors when referncing Google Maps Android API Utility
<p>I'm developing and android application using Google Maps. Everything was fine until I used Google Maps Android API Utility.</p> <p>I followed the instructions in </p> <p><a href="https://developers.google.com/maps/documentation/android/utility/setup" rel="nofollow noreferrer">https://developers.google.com/maps/doc...
I'm developing and android application using Google Maps. Everything was fine until I used Google Maps Android API Utility. I followed the instructions in https://developers.google.com/maps/documentation/android/utility/setup to install and use the library in my application, but when i try to launch it I get a NoClassD...
java|android|google-maps
0
2015-02-17T16:09:29.387Z
2,015
2
16
1
91
0
699
85
3
1
true
true
false
false
false
false
zero
28,565,802
how can i change layout using onListItemClick() in Android?
<p>I try to to change the <strong>layout</strong> by clicking my <code>ListView</code>.</p> <p><strong>This is my Java class.</strong></p> <p>I have an <code>ArrayList</code> of <em>bus_routes</em></p> <pre><code>public class Main extends ListActivity { @Override protected void onCreate(Bundle savedInstanceState) {...
I try to to change the layout by clicking my ListView . This is my Java class. I have an ArrayList of bus_routes [CODE] Manifest [CODE] Array List [CODE]
java|android|xml
-1
2015-02-17T16:09:46.733Z
2,015
2
16
1
163
1
153
59
3
3
true
false
false
false
false
true
negative
28,565,806
Laying out a stack of clickable playing cards in Android
<p>I'm writing a card-melding game for Android. I display the player's current unmelded cards in a series of ImageViews in one FrameLayout and the melded cards below in another FrameLayout. I offset each card from the previous one.</p> <p>I can lay the cards out starting from the left-hand-side of the screen relativel...
I'm writing a card-melding game for Android. I display the player's current unmelded cards in a series of ImageViews in one FrameLayout and the melded cards below in another FrameLayout. I offset each card from the previous one. I can lay the cards out starting from the left-hand-side of the screen relatively easily. B...
android|android-framelayout
1
2015-02-17T16:09:59.207Z
2,015
2
16
1
575
1
1,397
56
2
2
true
false
false
false
false
false
low
28,565,815
How can I zoom the central item in RecyclerView?
<p>I have a <code>RecyclerView</code> and I need to enlarge only the center item with animation.</p> <p>I have to change it's size: </p> <ul> <li>Increase when it appears.</li> <li>Decrease to normal, when it goes away.</li> </ul> <p>It is something like carousel, I need to achieve this effect with <code>RecyclerVie...
I have a RecyclerView and I need to enlarge only the center item with animation. I have to change it's size: Increase when it appears. Decrease to normal, when it goes away. It is something like carousel, I need to achieve this effect with RecyclerView . Any suggestions?
android|carousel|android-recyclerview
1
2015-02-17T16:10:36.900Z
2,015
2
16
1
4,020
1
271
48
3
0
false
false
true
false
false
false
low
28,565,966
Black screen after packaging to APK
<p>i create a simple memory game with the last version of cocos code IDE(<strong>v1.2.0</strong>) and last version of cocos2d-JS(<strong>v3.3</strong>) and it work fine on the WEB and also work well when i debug it to an android simulator(BlueStack) and my android device, <strong>BUT</strong> when i have to debug it on...
i create a simple memory game with the last version of cocos code IDE( v1.2.0 ) and last version of cocos2d-JS( v3.3 ) and it work fine on the WEB and also work well when i debug it to an android simulator(BlueStack) and my android device, BUT when i have to debug it on BlueStack the following error appear in the IDE c...
android|android-ndk|cocos2d-js
1
2015-02-17T16:18:03.457Z
2,015
2
16
1
488
0
1,692
35
3
2
true
true
false
false
false
false
low
28,565,983
Screen resolution handling
<p>So the fact that my textboxes are ending up in different places depending on which device I run it on is tearing my soul apart. I really cant fix this.</p> <p>This is the code: I know it is a mess right now, since I was playing around with the viewport API that Libgdx provides. But it didn´t help anything. To desc...
So the fact that my textboxes are ending up in different places depending on which device I run it on is tearing my soul apart. I really cant fix this. This is the code: I know it is a mess right now, since I was playing around with the viewport API that Libgdx provides. But it didn´t help anything. To describe what th...
android|libgdx|screen|resolution
0
2015-02-17T16:18:40.577Z
2,015
2
16
1
81
1
566
26
4
1
true
false
false
false
false
false
zero
28,565,984
Android : keyboard show/hide with multiple EditText
<p>I have an activity with a listview and each row has several editText. It looks like a questionnaire. I have for example the focus on one EditText, then I click on another EditText. At the moment, the keyboard disappear and reappear. It is very irritating.</p> <p>I use that code to make the keyboard disppear when th...
I have an activity with a listview and each row has several editText. It looks like a questionnaire. I have for example the focus on one EditText, then I click on another EditText. At the moment, the keyboard disappear and reappear. It is very irritating. I use that code to make the keyboard disppear when the user clic...
android|keyboard
1
2015-02-17T16:18:43.750Z
2,015
2
16
1
1,245
2
563
51
2
1
true
false
false
false
false
false
low
28,565,989
I am not allowed to pass a string from resource file within a switch case [Android]
<p>I have few buttons and I have the following click listener for the same:</p> <pre><code> private View.OnClickListener onclick = new View.OnClickListener() { @Override public void onClick(View v) { switch(v.getId()){ case R.id.home: break; ...
I have few buttons and I have the following click listener for the same: [CODE] On each button click I display the same popup, only the text differs. I have text in strings.xml file below is my dialog function: [CODE] in case R.id.touch: My IDE complains with the following message: show(java.lang.string) cannot be appl...
java|android
2
2015-02-17T16:18:56.220Z
2,015
2
16
1
345
3
446
83
2
2
true
false
false
false
false
false
low
28,566,021
How do I set the EditText Hint property without a resource?
<p>I have some text obtained from a database and would like to use it as a hint to one of our text fields. I found through googles that we can only set it using a Resource Id or via XML which again doesn't help. Unfortunately the trail ends quickly from here.</p> <p>Does anyone know how to dynamically set the Hint pro...
I have some text obtained from a database and would like to use it as a hint to one of our text fields. I found through googles that we can only set it using a Resource Id or via XML which again doesn't help. Unfortunately the trail ends quickly from here. Does anyone know how to dynamically set the Hint property for a...
c#|android|xamarin
0
2015-02-17T16:20:25.307Z
2,015
2
16
1
1,146
1
330
59
3
0
false
false
false
false
false
false
zero
28,566,083
Run ASP.NET application on server and access from remote computer/phone
<p>I am trying to debug my visual studio 2012 asp.net project from my phone and have followed all steps <a href="https://stackoverflow.com/questions/13328090/debugging-an-asp-net-mvc-application-on-an-android-phone">here</a> and <a href="http://johan.driessen.se/posts/Accessing-an-IIS-Express-site-from-a-remote-compute...
I am trying to debug my visual studio 2012 asp.net project from my phone and have followed all steps here and here . However none of them work, can't even connect from my other laptop. When I add my public IP or use * IISExpress doesnt even seem to pick up on it (Can't find it in IISExpress->show all applications). But...
android|asp.net|ip|iis-express
0
2015-02-17T16:23:19.480Z
2,015
2
16
1
1,165
2
814
71
4
0
false
false
false
false
false
false
zero
28,566,158
Android Facebook SDK and authenticating on my server
<p>I am trying to setup login on my app using facebook. Currently I have the SDK working fine, it authenticates and I can accession user information and then I start an Intent to my activity. (not sure if this is what I should be doing) </p> <p>Now I am wondering what the workflow is for this is to authenticate with m...
I am trying to setup login on my app using facebook. Currently I have the SDK working fine, it authenticates and I can accession user information and then I start an Intent to my activity. (not sure if this is what I should be doing) Now I am wondering what the workflow is for this is to authenticate with my RestAPI. I...
java|android|facebook
0
2015-02-17T16:26:53.973Z
2,015
2
16
1
38
1
688
52
3
1
true
false
false
false
false
false
zero
28,566,167
Wrong Qt Android theme
<p>I need to create Android application with Qt, but I can't find out how to make application look native.</p> <p><a href="https://i.stack.imgur.com/h3x2S.jpg" rel="nofollow noreferrer">http://i.stack.imgur.com/h3x2S.jpg</a></p> <p>And I need it to be like:</p> <p><a href="https://i.stack.imgur.com/KiBcm.jpg" rel="n...
I need to create Android application with Qt, but I can't find out how to make application look native. http://i.stack.imgur.com/h3x2S.jpg And I need it to be like: http://i.stack.imgur.com/KiBcm.jpg I tried to change android:theme, but nothing changed. I also looked in Use Holo theme in Qt Android application , but it...
android|c++|qt|themes|qt5
0
2015-02-17T16:27:14.510Z
2,015
2
16
1
307
1
400
22
5
0
false
false
false
false
false
false
zero
28,566,221
Fade-In Animation for SurfaceView not working
<p>The animation works perfectly fine for a normal View. But when I use it on a SurfaceView, then it fades out, then flashes the screen, then starts the video. The flashing looks really silly, and I need to remove that.</p> <pre><code>public class MyDreamService extends DreamService implements SurfaceHolder.Callback, ...
The animation works perfectly fine for a normal View. But when I use it on a SurfaceView, then it fades out, then flashes the screen, then starts the video. The flashing looks really silly, and I need to remove that. [CODE] This plays video fine, but if I want to animate: [CODE] Then after multiple iterations, it eithe...
android|animation|surfaceview
0
2015-02-17T16:29:43.427Z
2,015
2
16
1
1,344
1
455
45
3
2
true
false
false
false
false
false
zero
28,566,229
App starts normally But crashes when I click Button "oneplus"
<p>First of all let me tell you that I am a beginner at this... I started to try developing apps about a week ago. When I start my app on a real device it starts normally But when I click the button "oneplus" it says that app isn't responding... this app adds one number to the number in TextView .Earlier I faced same p...
First of all let me tell you that I am a beginner at this... I started to try developing apps about a week ago. When I start my app on a real device it starts normally But when I click the button "oneplus" it says that app isn't responding... this app adds one number to the number in TextView .Earlier I faced same prob...
java|android|xml|android-layout
-2
2015-02-17T16:30:29.970Z
2,015
2
16
1
96
3
604
61
4
2
true
false
false
false
false
true
negative
28,566,235
Securely storing a symmetric key in using the Android KeyChain
<p>Given that it is not possible to store a symmetric key using the Android <code>KeyChain</code> API, is the following a secure way to store a symmetric key:</p> <p><em>Part One: Key Generation and Storage</em></p> <ol> <li>Generate <code>symmetric_key</code></li> <li>Generate <code>(private_key, public_key)</code>,...
Given that it is not possible to store a symmetric key using the Android KeyChain API, is the following a secure way to store a symmetric key: Part One: Key Generation and Storage Generate symmetric_key Generate (private_key, public_key) , store them in the KeyChain Encrypt the symmetric_key using the public_key as fol...
android|keystore|android-keystore
5
2015-02-17T16:31:06.337Z
2,015
2
16
1
2,054
1
1,005
62
3
0
false
false
false
false
false
false
low
28,566,256
Hide ActionBar title just for one activity
<p>If I apply theme for whole application it hides ActionBar title successfully:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;resources&gt; &lt;style name="AppTheme" parent="@android:style/Theme.Holo.Light"&gt; &lt;item name="android:actionBarStyle"&gt;@style/ActionBarStyle&lt;/item&gt; &lt;/sty...
If I apply theme for whole application it hides ActionBar title successfully: [CODE] assign in manifest : [CODE] I need ActionBar title hidden just in one activity . [CODE] setting this theme explicitly for one activity: [CODE] and it still shows title in MainActivity ActionBar . I know how to hide the title in java, I...
android|android-actionbar|android-styles
1
2015-02-17T16:32:47.457Z
2,015
2
16
1
3,179
3
362
42
3
4
true
false
true
false
false
false
low
28,566,268
MediaPlayer won't loop. setLooping() doesn't work
<pre><code>m_MediaPlayer = MediaPlayer.create(context, soundFromResource); m_MediaPlayer.setVolume(0.99f, 0.99f); m_MediaPlayer.setLooping(true); m_MediaPlayer.setOnCompletionListener(USoundPlayback.this); m_MediaPlayer.start(); </code></pre> <p>I've tested it like above, I've also tested it by calling <code>setLoopin...
[CODE] I've tested it like above, I've also tested it by calling setLooping(true) after start() but with no luck. I have two Nexus 5 phones, both with Android 5 on them. On one, the looping works, on the other the sound stops after one go, it won't loop. Any ideas ?!
android
8
2015-02-17T16:33:19.933Z
2,015
2
16
1
3,893
4
267
49
1
1
true
false
true
false
false
false
medium
28,566,360
Android OnePlus phone, missing com.google.android.gsf package
<p>I recently got the new "1 plus" phone. it has <code>CyanogenMod 11</code> based on <code>Android 4.4.4</code>.</p> <p><strong>It does not have any google app, so no Play Store nor Google Play Services nor any other service.</strong></p> <p>I just need to confirm that the following error is due to those missing pac...
I recently got the new "1 plus" phone. it has CyanogenMod 11 based on Android 4.4.4 . It does not have any google app, so no Play Store nor Google Play Services nor any other service. I just need to confirm that the following error is due to those missing packages, and whether or not I'm able to fix it. Here is the err...
android|google-cloud-messaging
0
2015-02-17T16:37:40.777Z
2,015
2
16
1
1,485
2
367
61
2
1
true
false
false
false
false
false
zero
28,566,373
Android ListView showing only first 4 items on repeat
<p>I have a Fragment called <strong><em>User Management</em></strong> where I collect data from a server and display it in a ListView. It's also refreshable via <code>SwipeRefreshLayout</code>.</p> <p>What happens is, if I get data on 1-4 users, it displays the data correctly. However, if I get data on more than 4 use...
I have a Fragment called User Management where I collect data from a server and display it in a ListView. It's also refreshable via SwipeRefreshLayout . What happens is, if I get data on 1-4 users, it displays the data correctly. However, if I get data on more than 4 users, it displays the first 4 correctly, and instea...
android|listview|android-listview
0
2015-02-17T16:38:05.947Z
2,015
2
16
1
1,072
5
900
53
3
2
true
false
false
false
false
false
zero
28,566,392
Titanium Terminated exit value 0 Application Installer
<p>Titanium Console. [INFO] : Making sure the adb server is running [INFO] : Removing deploy.json from SD card [INFO] : Installing apk: C:\androidAulaEscolar_Laboratorio\build\android\bin\Aula Escolar.apk [INFO] : Installing app on device: GT-S5830M</p> <p>log</p> <p><div class="snippet" data-lang="js" data-h...
Titanium Console. [INFO] : Making sure the adb server is running [INFO] : Removing deploy.json from SD card [INFO] : Installing apk: C:\androidAulaEscolar_Laboratorio\build\android\bin\Aula Escolar.apk [INFO] : Installing app on device: GT-S5830M log [CODE]
android|node.js|titanium|npm|appcelerator
-1
2015-02-17T16:39:07.527Z
2,015
2
16
1
282
1
257
54
5
1
true
false
false
false
false
true
negative
28,566,514
Pass value between activities and then back, method backpressed doesn´t work
<p>Im create an application that uses 3 Activities, in the first activity i type a word in a edit text, then i pass that value to another activity("second activity"), finally get that value and i pass to a webview to show a webpage, but when i try to return to the second activity from webview my app crashes , this is ...
Im create an application that uses 3 Activities, in the first activity i type a word in a edit text, then i pass that value to another activity("second activity"), finally get that value and i pass to a webview to show a webpage, but when i try to return to the second activity from webview my app crashes , this is my c...
android|webview|bundle
0
2015-02-17T16:44:50.600Z
2,015
2
16
1
91
3
514
76
3
3
true
false
false
false
false
false
zero
28,566,535
The Application can't find the Json value in Mac OS
<p>I want to reach a value which in a basic JsonObject but the application doesn't work in Mac OS. However i can use this application on Windows. When I run the application, I have an error in genymotion "Unfortunately, the application is stopped". And I have errors in Log, too.</p> <pre><code>java.lang.NullPointerEx...
I want to reach a value which in a basic JsonObject but the application doesn't work in Mac OS. However i can use this application on Windows. When I run the application, I have an error in genymotion "Unfortunately, the application is stopped". And I have errors in Log, too. [CODE] My MainActivity.java: [CODE] My appl...
android|eclipse|macos
1
2015-02-17T16:46:06.523Z
2,015
2
16
1
168
0
474
51
3
2
true
true
false
false
false
false
low
28,566,580
Null Pointer Exception on Query Inventory
<p>I am trying to set up in-app billing in my application. I have it in alpha testing. I keep getting crash reports from all my testers with the same logcat, shown here:</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{autonote.six.padc.autonote/autonote.six.padc.autonote.SaveScreen}...
I am trying to set up in-app billing in my application. I have it in alpha testing. I keep getting crash reports from all my testers with the same logcat, shown here: [CODE] It seems like a simple solution, just go to Line Line 59, right? Wrong. When I go there, the line that is throwing the exception is: [CODE] And th...
javascript|android|in-app-purchase
1
2015-02-17T16:48:28.723Z
2,015
2
16
1
253
1
535
41
3
3
true
false
false
false
false
false
low
28,566,614
Permission denied message on Android method tracing
<p>I'm trying to follow these steps to help figure out where my first Android app (using Android Studio, targeting a Nexus 9) is crashing:</p> <p><a href="http://developer.android.com/tools/debugging/debugging-tracing.html" rel="nofollow">http://developer.android.com/tools/debugging/debugging-tracing.html</a></p> <p>...
I'm trying to follow these steps to help figure out where my first Android app (using Android Studio, targeting a Nexus 9) is crashing: http://developer.android.com/tools/debugging/debugging-tracing.html I added Debug.startMethodTracing and Debug.stopMethodTracing to my main activity code in the recommended places. Whe...
android
2
2015-02-17T16:49:56.057Z
2,015
2
16
1
1,054
1
789
51
1
1
true
false
false
false
false
false
low
28,566,707
SwipeRefreshLayout configuration
<p>I am working on a network project and dynamically update info. I have a few questions about the <code>SwipeRefreshLayout</code>.</p> <ol> <li>After the <code>onRefresh()</code> starts the icon won't stop spinning and will not disappear even when all the data is updated.</li> <li>When I launch my app there is a whit...
I am working on a network project and dynamically update info. I have a few questions about the SwipeRefreshLayout . After the onRefresh() starts the icon won't stop spinning and will not disappear even when all the data is updated. When I launch my app there is a white screen (while information is loading). If I try t...
android|android-recyclerview|swiperefreshlayout
0
2015-02-17T16:54:28.880Z
2,015
2
16
1
1,471
2
637
32
3
2
true
false
false
false
false
false
zero
28,566,898
Android camera2 speed-up
<p>I need to speed-up capturing of camera2 API. I tried to build "android-Camera2Basic" project from google samples. For default capture request from example:</p> <pre><code> if (null == activity || null == mCameraDevice) { return; } // This is the CaptureRequest.Builder that we use to take...
I need to speed-up capturing of camera2 API. I tried to build "android-Camera2Basic" project from google samples. For default capture request from example: [CODE] It takes 200-300ms from send request [CODE] And get result in [CODE] Is it possible to reduce this time? I tried set different parameters for capture request...
android|android-camera
1
2015-02-17T17:03:09.757Z
2,015
2
17
1
6,331
1
580
24
2
3
true
false
true
false
false
false
low
28,566,945
Android L keeps killing my app in the middle of debugging...why?
<p>I have an Android Lollipop device that insists on killing my app while I am connected to my app over USB using Eclipse to debug and I hit a breakpoint longer than 5 seconds. Older versions of android would give me a dialog, "Application is not responding ". Android L just kills, and it's affecting my ability to debu...
I have an Android Lollipop device that insists on killing my app while I am connected to my app over USB using Eclipse to debug and I hit a breakpoint longer than 5 seconds. Older versions of android would give me a dialog, "Application is not responding ". Android L just kills, and it's affecting my ability to debug. ...
eclipse|debugging|android-5.0-lollipop
1
2015-02-17T17:05:15.553Z
2,015
2
17
1
143
0
678
64
3
0
false
true
false
false
false
false
low
28,566,981
Dynamic SQLite queries
<p>I'm trying to implement dynamic queries in my Android app, to let the users search according to some criteria. In this case I'm trying to search simply by an integer value. Here's my attempt:</p> <pre><code>... public String[][] listarNegocio(int idProyecto, int minimo, int maximo) { String[][] arrayDa...
I'm trying to implement dynamic queries in my Android app, to let the users search according to some criteria. In this case I'm trying to search simply by an integer value. Here's my attempt: [CODE] I tested this query using SQLFiddle, and it should return only the rows where the column id_proyecto equals the parameter...
android|sqlite
0
2015-02-17T17:07:01.793Z
2,015
2
17
1
2,025
1
672
22
2
1
true
false
false
false
false
false
zero
28,567,007
Java - Get first letter of string
<p>I am trying to extract the first letters of each word in a sentence the user has spoken into my app. Currently if the user speaks "Hello World 2015" it inserts that into the text field. I wish to split this so if the user speaks "Hello World 2015" only "HW2015" is inserted into the text field. </p> <pre><code>final...
I am trying to extract the first letters of each word in a sentence the user has spoken into my app. Currently if the user speaks "Hello World 2015" it inserts that into the text field. I wish to split this so if the user speaks "Hello World 2015" only "HW2015" is inserted into the text field. [CODE] The matches variab...
java|android|string|speech-to-text
1
2015-02-17T17:08:33.120Z
2,015
2
17
1
2,640
2
465
33
4
1
true
false
true
false
false
false
low
28,567,024
Android: OnClickListener() not Working for button and image
<p>I am new to android and this is my first app. I am trying to navigate using button but its not working. Can someone help? Also, click on image is also not working. Here is my code:</p> <pre><code>@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView...
I am new to android and this is my first app. I am trying to navigate using button but its not working. Can someone help? Also, click on image is also not working. Here is my code: [CODE] xml file [CODE] Thanks in advance.
android|android-intent|android-studio|onclicklistener
0
2015-02-17T17:09:20.203Z
2,015
2
17
1
2,153
1
222
59
4
2
true
false
false
false
false
false
zero
28,567,042
Shape with selector as color doesn't works
<p>I want to create a shape with selector as solid color.</p> <p>On Android 5.0+, this code works perfectly, but on 4.X, it doesn't works.</p> <p><strong>shape.xml :</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/...
I want to create a shape with selector as solid color. On Android 5.0+, this code works perfectly, but on 4.X, it doesn't works. shape.xml : [CODE] my_selector.xml [CODE] This drawable is applied to CheckBox background.
android|android-selector|android-shape
2
2015-02-17T17:09:59.480Z
2,015
2
17
1
728
2
219
42
3
2
true
false
false
false
false
false
low
28,567,065
Android : Error when i set size of imageView inside TableRow programmatically
<p>When i try to set size of my ImageView objet, i have always same error : </p> <p><em>Attempt to write to field 'int android.view.ViewGroup$LayoutParams.width' on a null object reference</em></p> <p>A piece of my code :</p> <pre><code> TableLayout tl = (TableLayout)findViewById(R.id.layoutDuNiveau); for(int...
When i try to set size of my ImageView objet, i have always same error : Attempt to write to field 'int android.view.ViewGroup$LayoutParams.width' on a null object reference A piece of my code : [CODE]
android
1
2015-02-17T17:11:02.223Z
2,015
2
17
1
1,786
1
201
77
1
1
true
false
false
false
false
false
low
28,567,077
How to generate random numbers without repetition
<p>I generate a random number with this code : </p> <pre><code>int randomNumber = (int) (Math.random() * 7); </code></pre> <p>I want to <strong><em>stop generating duplicate</em></strong> numbers and I want to generate a new number after my app opens again.</p> <p><strong>how can I do ?</strong></p>
I generate a random number with this code : [CODE] I want to stop generating duplicate numbers and I want to generate a new number after my app opens again. how can I do ?
java|android
4
2015-02-17T17:11:25.990Z
2,015
2
17
1
11,257
5
171
49
2
1
true
false
true
false
false
false
low
28,567,091
Flash for Android AIR - Mousewheel doesn't respond
<p>I am working on an application in flash 5.5 AS3 for deployment on an android tablet through AIR. The App uses an external Bluetooth mouse connected to the android device. When the Apllication is run on PC the mouse wheel detects satisfactory values when scrolled. But when the apk is deployed on android tablet, there...
I am working on an application in flash 5.5 AS3 for deployment on an android tablet through AIR. The App uses an external Bluetooth mouse connected to the android device. When the Apllication is run on PC the mouse wheel detects satisfactory values when scrolled. But when the apk is deployed on android tablet, there is...
android|actionscript-3|flash|air|mousewheel
2
2015-02-17T17:12:27.357Z
2,015
2
17
1
89
0
620
50
5
1
true
true
false
false
false
false
low
28,567,174
Android adb shell delete SQLite database
<p>I need to delete an SQLite database and in order to do so , i need to access adb shell.</p> <p>i'm on windows 7 and i have my sdk installed on:</p> <pre><code>C:\Users\Omar\AppData\Local\Android </code></pre> <p>i have opened the cmd and typed adb shell but with no success here is my output :</p> <pre><code>C:\U...
I need to delete an SQLite database and in order to do so , i need to access adb shell. i'm on windows 7 and i have my sdk installed on: [CODE] i have opened the cmd and typed adb shell but with no success here is my output : [CODE] "unknown command" Do i need to do something before calling the adb from my windows cmd ...
android|sqlite|shell|adb
3
2015-02-17T17:16:18.490Z
2,015
2
17
1
3,531
3
376
40
4
2
true
false
true
false
false
false
low
28,567,257
Just run handler if fragent is fully loaded
<p>is it possible to wait with a handler until a fragment is fully loaded in Android?</p> <p>would be very nice of you if you could help me.</p>
is it possible to wait with a handler until a fragment is fully loaded in Android? would be very nice of you if you could help me.
android|handler
0
2015-02-17T17:21:04.697Z
2,015
2
17
1
25
0
130
43
2
0
false
true
false
false
false
false
zero
28,567,260
Encryption with Android 4.2 and earlier versions - PRNGFixes
<p>I need to encrypt password, but for Android 4.2 and below version, my solution doesn't work, The encrypted password is random. it's due to PRNG. So I saw this post : </p> <p><a href="https://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html" rel="nofollow">https://android-developers.blogspot.c...
I need to encrypt password, but for Android 4.2 and below version, my solution doesn't work, The encrypted password is random. it's due to PRNG. So I saw this post : https://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html I implemented PRNGFixes, but it does not change... How to solve this probl...
android|security|prng
2
2015-02-17T17:21:14.637Z
2,015
2
17
1
322
0
498
60
3
2
true
true
false
false
false
false
low
28,567,261
ImageView wrap_content - how to crop image
<p>I have the following layout, a <code>FrameLayout</code> with a nested <code>ImageView</code> with a <code>LinearLayout</code> on top:</p> <pre><code>&lt;FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content"&gt; &lt;ImageView android:layout_width="match_parent" ...
I have the following layout, a FrameLayout with a nested ImageView with a LinearLayout on top: [CODE] But because the image is larger than the LinearLayout the FrameLayout is stretched. I want only the top part of the image shown (indicated by the blue selection rectangle), so the height of the FrameLayout should be th...
android|layout|imageview
0
2015-02-17T17:21:15.857Z
2,015
2
17
1
608
2
402
42
3
1
true
false
false
false
false
false
zero
28,567,347
How to combine imageButton with TextView android
<p>I am developing a chemistry app.But I have a problem to create a periodic table which is fit to the device display size.But I am unable to do it.I tried with buttons.But it exceeding the space limit,I wanna to do this without using scroll view.Finally i choose image button with text view.Is it possible or there is a...
I am developing a chemistry app.But I have a problem to create a periodic table which is fit to the device display size.But I am unable to do it.I tried with buttons.But it exceeding the space limit,I wanna to do this without using scroll view.Finally i choose image button with text view.Is it possible or there is an e...
android|button|textview
0
2015-02-17T17:25:36.370Z
2,015
2
17
1
769
2
346
48
3
0
false
false
false
false
false
false
zero
28,567,371
Android Parse.com Chat with parseQueryAdapter does not refresh
<p>I'm trying to add a chat feature in my Android app using Parse.com. I'm using a custom <strong>parseQueryAdapter</strong>. Problem is that when I send a message or when I receive a new message, my adapter does not update. I tried to add both</p> <pre><code>adapter.notifyDataSetInvalidated(); adapter.clear(); adapte...
I'm trying to add a chat feature in my Android app using Parse.com. I'm using a custom parseQueryAdapter . Problem is that when I send a message or when I receive a new message, my adapter does not update. I tried to add both [CODE] in done callback and even in a dedicated refresh button. This is how it works : My adap...
android|listview|android-listview|parse-platform|android-parsequeryadapter
2
2015-02-17T17:26:42.790Z
2,015
2
17
1
459
2
985
62
5
1
true
false
false
false
false
false
low
28,567,381
Why C++ executable cannot find dynamic library when it is put on Android device
<p>I am building a C++ executable for android using NDK. The executable (./main )source file main.c is very simple:</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int main() { printf("Hello World\n"); return 0; } </code></pre> <p>I can build it with cmake and android-cmake-toolchain. Afte...
I am building a C++ executable for android using NDK. The executable (./main )source file main.c is very simple: [CODE] I can build it with cmake and android-cmake-toolchain. After that I put it on the Android device: [CODE] Everything works fine. However, if I just change main.c to main.cpp, and then do the same, the ...
android|c++|android-ndk
2
2015-02-17T17:27:17.713Z
2,015
2
17
1
1,157
1
582
79
3
3
true
false
false
false
false
false
low
28,567,397
Is OAuth2 what my app need?
<p>I'm making an app on android that allows the user, after having gotten the name and password, modify your profile through a web api rest.</p> <p>i have established a system to return, once authenticated, a unique security token which will be used to authenticate the user to perform operations (update the profile).<...
I'm making an app on android that allows the user, after having gotten the name and password, modify your profile through a web api rest. i have established a system to return, once authenticated, a unique security token which will be used to authenticate the user to perform operations (update the profile). I used an U...
php|android|rest|oauth-2.0|access-token
0
2015-02-17T17:28:36.037Z
2,015
2
17
1
476
2
930
27
5
2
true
false
false
false
false
false
zero
28,567,454
Android lollipop shared elements transition blink / flash
<p>I see strange thing in my shared element transition on Lollipop. Shared elements are flickering just before they are starting to animate (please see video <a href="https://www.youtube.com/watch?v=DCoyyC_S-9A">https://www.youtube.com/watch?v=DCoyyC_S-9A</a>)</p> <p>I've no idea why it is happening. However when I ad...
I see strange thing in my shared element transition on Lollipop. Shared elements are flickering just before they are starting to animate (please see video https://www.youtube.com/watch?v=DCoyyC_S-9A ) I've no idea why it is happening. However when I add <item name="android:windowSharedElementsUseOverlay">false</item> t...
android|android-5.0-lollipop|android-transitions|activity-transition|shared-element-transition
21
2015-02-17T17:31:11.820Z
2,015
2
17
1
16,666
1
731
57
5
6
true
false
true
true
true
false
high
28,567,490
why my android transition make the screen black?
<p><strong>Video of my problem with the shared transition</strong></p> <p><a href="https://www.youtube.com/watch?v=upeNTU9-6YM" rel="nofollow">click to see the video of my problem</a></p> <p><strong>This is the operation made by me in the app</strong></p> <p>i have a shared view (an ImageView) inside a CardView, whe...
Video of my problem with the shared transition click to see the video of my problem This is the operation made by me in the app i have a shared view (an ImageView) inside a CardView, when i click on the CardView the OnClick method change the image proprety ImageView.setTransitionName(str) of the ImageView inside the ca...
android|api|animation|transition|shared
2
2015-02-17T17:32:49.130Z
2,015
2
17
1
283
0
694
48
5
1
true
true
false
false
false
false
low
28,567,494
Android: How to hide Seekbar progress?
<p>The <code>Seekbars</code> got that blue progress indicator. In my case I just want to show a percentage progress in in a <code>TextView</code>, so I don't need it.</p> <p>How can I hide the blue indicator for the <code>Seekbar</code> progress?</p>
The Seekbars got that blue progress indicator. In my case I just want to show a percentage progress in in a TextView , so I don't need it. How can I hide the blue indicator for the Seekbar progress?
android|progress|seekbar
5
2015-02-17T17:32:54.500Z
2,015
2
17
1
3,321
3
198
38
3
0
false
false
true
false
false
false
low
28,567,512
Aligning list items of a HorizontalListView
<p>The items in my horizontallistview are appearing from right side of the device screen when I start my application. But whenever an item is added to the listview at run time it get aligned to the left side of the screen. How shall I modify my code to make my list view to appear from right side of the screen from firs...
The items in my horizontallistview are appearing from right side of the device screen when I start my application. But whenever an item is added to the listview at run time it get aligned to the left side of the screen. How shall I modify my code to make my list view to appear from right side of the screen from first i...
android
0
2015-02-17T17:34:16.383Z
2,015
2
17
1
58
0
420
43
1
1
true
true
false
false
false
false
zero
28,567,621
Properly align images and text in relative layout?
<p>I've a shop layout in which are three different sized images. To the right of them, there is text representing price. How can I align images and text under each other ? And put the middle of the screen between Image and text. Here is my layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Relativ...
I've a shop layout in which are three different sized images. To the right of them, there is text representing price. How can I align images and text under each other ? And put the middle of the screen between Image and text. Here is my layout: [CODE]
android|xml|android-layout|alignment|android-relativelayout
0
2015-02-17T17:40:56.910Z
2,015
2
17
1
830
3
251
50
5
1
true
false
false
false
false
false
zero
28,567,735
Parcelable inheritance: abstract class - Which CREATOR?
<p>I have an abstract class <code>A</code> which implements Parcelable.</p> <p>I have a class <code>B</code> and a class <code>C</code> who both extend <code>A</code>. How can I make them parcelable?</p> <p>Of cause I could chain it and provide a <code>CREATOR</code> both in <code>A</code> and <code>B</code> like sug...
I have an abstract class A which implements Parcelable. I have a class B and a class C who both extend A . How can I make them parcelable? Of cause I could chain it and provide a CREATOR both in A and B like suggested in many posts. But since I have other Objects who store the A-B-C classes and implement Parcelable the...
java|android|inheritance|parcelable
8
2015-02-17T17:47:07.557Z
2,015
2
17
1
2,889
2
653
55
4
4
true
false
true
false
false
false
medium
28,567,824
Making change in Base Activity to reflect changes in All derived Activities?
<p>I have a </p> <pre><code>public abstract class BaseActivity extends Activity { protected void setCustomHeader(String title,String subText){ } } </code></pre> <p>and <code>two</code> other Classes Extending the <code>BaseActivity</code> class.</p> <pre><code>public class ListActivity extends BaseActivity { ...
I have a [CODE] and two other Classes Extending the BaseActivity class. [CODE] & [CODE] The BaseActivity generally reduces the code here of creating Custom Action Bar in all child activities, which works just fine. I wish to change the Custom Header in the BaseActivity on some Event (say BroadcastReciever ) such that a...
java|android|inheritance|android-activity|abstract-class
2
2015-02-17T17:51:26.060Z
2,015
2
17
1
1,056
3
779
76
5
3
true
false
false
false
false
false
low
28,567,904
onCompleted() method user is null
<p>Hi I am working with facebook login.</p> <p><strong>LandingFragment.java</strong></p> <pre><code>@Override public void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); if(ConstantMethods.isNetworkAvailable()){ GetOr...
Hi I am working with facebook login. LandingFragment.java [CODE] //button click listener [CODE] //onFacebookLoginListener() // facebook login private class onFacebookLoginListener implements OnClickListener { [CODE] FacebookLoginUtility.java // just a class not an Activity Here I copied all the stuff whatever I have im...
android|facebook|android-facebook
0
2015-02-17T17:55:17.137Z
2,015
2
17
1
106
0
699
33
3
4
true
true
false
false
false
false
zero
28,567,963
Unreachable catch block for IOException. This exception is never thrown from the try statement body
<p>when use this code give me this error Unreachable catch block for IOException. This exception is never thrown from the try statement body</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.breakfast); ...
when use this code give me this error Unreachable catch block for IOException. This exception is never thrown from the try statement body [CODE]
android
-1
2015-02-17T17:57:59.653Z
2,015
2
17
1
1,157
2
144
99
1
1
true
false
false
false
false
true
negative
28,568,015
Can Android Wearable apps detect the power button as a KeyEvent?
<p>Can Android Wearable apps detect the power button as a KeyEvent or by other means? I would like to run a listener service to detect the wearable power button.</p> <p>I tried this but no log corresponding to a KeyEvent occurred.</p> <pre><code>@Override public boolean onKeyDown(int keyCode, KeyEvent event) { Lo...
Can Android Wearable apps detect the power button as a KeyEvent or by other means? I would like to run a listener service to detect the wearable power button. I tried this but no log corresponding to a KeyEvent occurred. [CODE] I have also experimented with two solutions used on normal android phone apps Registering a ...
android|wear-os|android-wear-notification
5
2015-02-17T18:00:53.800Z
2,015
2
18
1
750
0
558
64
3
1
true
true
false
false
false
false
low
28,568,045
Seekbar lagging towards end Android
<p>I have have a seekbar in inside a Liner Layout. This liner layout background image is set dynamically (Image coming from SDCARD). Thumb image is within the application. Progress drawable is transparent color.</p> <p>There are image view around 6-7 all shows image from the SDCARD (images assigned in onCreate()). Dep...
I have have a seekbar in inside a Liner Layout. This liner layout background image is set dynamically (Image coming from SDCARD). Thumb image is within the application. Progress drawable is transparent color. There are image view around 6-7 all shows image from the SDCARD (images assigned in onCreate()). Depending upon...
android|seekbar|android-seekbar
0
2015-02-17T18:03:28.873Z
2,015
2
18
1
339
0
754
35
3
0
false
true
false
false
false
false
zero
28,568,089
how to prevent android user to close the app
<p>I am creating an android app . This app will install on user's mobile . After starting the first time by user this app create soon DB and register some setting on my online server . So I am expecting during this process user will not able to close my application and all the required setting created comfortably . Is...
I am creating an android app . This app will install on user's mobile . After starting the first time by user this app create soon DB and register some setting on my online server . So I am expecting during this process user will not able to close my application and all the required setting created comfortably . Is the...
android
-2
2015-02-17T18:05:54.007Z
2,015
2
18
1
164
2
350
44
1
0
false
false
false
false
false
true
negative
28,568,139
Special background for a custom seekbar in Android
<p>I have a custom Seekbar that I have made using 9 patch images so I can have different aspects for the main progress, the secondary progress and the background.</p> <p>As of now, this is the result I have:</p> <p><img src="https://i.stack.imgur.com/Gh4FH.png" alt="enter image description here" /></p> <p>And the code ...
I have a custom Seekbar that I have made using 9 patch images so I can have different aspects for the main progress, the secondary progress and the background. As of now, this is the result I have: And the code to generate it is: [CODE] The problem is that for the secondary progress (dw_sec_prog) I have a transparent b...
android|user-interface|seekbar
1
2015-02-17T18:08:47.893Z
2,015
2
18
1
398
0
762
50
3
1
true
true
false
false
false
false
low
28,568,238
Download files (pdf , ppt , xls) in android webview to download folder without browser
<p>I am developing an app that has a webview in it and inside the webiste displayed there are some pdf , xls and ppt files that have to be downloaded once touched (onclick).Now how do I do this , because I tried some approaches here from stackoverflow but none of them worked.I know I have to use download manager to dow...
I am developing an app that has a webview in it and inside the webiste displayed there are some pdf , xls and ppt files that have to be downloaded once touched (onclick).Now how do I do this , because I tried some approaches here from stackoverflow but none of them worked.I know I have to use download manager to downlo...
android|pdf|webview|download|android-download-manager
0
2015-02-17T18:13:54.807Z
2,015
2
18
1
4,249
1
619
86
5
2
true
false
true
false
false
false
zero
28,568,269
error onClickListener MainActivity Android
<p>I hope you can help me with this error.</p> <p>I want to associate an activity to a button but I have this error in the logcat (updated).</p> <pre><code>02-17 18:04:27.033: D/AndroidRuntime(1850): Shutting down VM 02-17 18:04:27.034: E/AndroidRuntime(1850): FATAL EXCEPTION: main 02-17 18:04:27.034: E/AndroidRuntim...
I hope you can help me with this error. I want to associate an activity to a button but I have this error in the logcat (updated). [CODE] This is my MainActivity (updated) [CODE] fragment_main.xml [CODE] I have made several attempts to fix it but do not work Beforehand thank you very much for your help
android|onclicklistener
-1
2015-02-17T18:15:39.313Z
2,015
2
18
1
2,959
2
303
42
2
3
true
false
true
false
false
true
negative
28,568,274
multiple xml views with convertView android
<p>I am trying to write a ListView adapter that will pass a view based on one of several xml files depending on an attribute of the data that I am creating a View for. My code works fine, except when I try to use convertView to speed up the process. No matter how I try to use it, I either crash my program or else get...
I am trying to write a ListView adapter that will pass a view based on one of several xml files depending on an attribute of the data that I am creating a View for. My code works fine, except when I try to use convertView to speed up the process. No matter how I try to use it, I either crash my program or else get stra...
android|listview|adapter|convertview
1
2015-02-17T18:15:55.423Z
2,015
2
18
1
735
3
654
43
4
1
true
false
false
false
false
false
low
28,568,337
AutocompleteTextView IllegalStateException: The content of the adapter has changed but ListView did not receive a notification
<p>Good day, I have the following code and i cannot understand why i get the above error message sporadically. sometimes i get it.. sometimes i don't but i would like to get rid of it.. i have tried everything(some commented out) and some answers here but still having the trouble. can u guys kindly please take a look a...
Good day, I have the following code and i cannot understand why i get the above error message sporadically. sometimes i get it.. sometimes i don't but i would like to get rid of it.. i have tried everything(some commented out) and some answers here but still having the trouble. can u guys kindly please take a look at i...
android
2
2015-02-17T18:18:43.297Z
2,015
2
18
1
1,136
2
499
126
1
4
true
false
false
false
false
false
low
28,568,344
When I running eclipse I get 2 errors
<p>When I running eclipse I get 2 errors.</p> <p>Android SDK Content Loader</p> <blockquote> <p>parseSdkContent failed java.security.NoSuchAlgorithmException: MD5 MessageDigest not available</p> </blockquote> <p>Indexing help</p> <blockquote> <p>An internal error occurred during: "Indexing help...". java.la...
When I running eclipse I get 2 errors. Android SDK Content Loader parseSdkContent failed java.security.NoSuchAlgorithmException: MD5 MessageDigest not available Indexing help An internal error occurred during: "Indexing help...". java.lang.ExceptionInInitializerError How I fix it?
eclipse|adt|eclipse-adt|android-sdk-2.3
0
2015-02-17T18:19:07.333Z
2,015
2
18
1
65
0
281
37
4
0
false
true
false
false
false
false
zero
28,568,382
Previous fragment element is still active after adding new fragment
<p>My question might be described much more better with this image. When I am adding second fragment(2nd image) over first fragment (1st image) first fragment element(Spinner, EditText) are still active.Active mean touching on the same place I can see the dropdown is coming down.</p> <p>I can't replace the fragment be...
My question might be described much more better with this image. When I am adding second fragment(2nd image) over first fragment (1st image) first fragment element(Spinner, EditText) are still active.Active mean touching on the same place I can see the dropdown is coming down. I can't replace the fragment because I nee...
android|android-fragments|android-listfragment
4
2015-02-17T18:20:56.600Z
2,015
2
18
1
2,171
2
587
67
3
2
true
false
false
false
false
false
low
28,568,400
Listview OnClick does not work
<p>I have some code that displays a ListView and allows an item to be clicked to take it to a single view activity. However, for some reason the onClickListener isn't working. I thought that this may be due to the EditText being focusable. However, upon setting this to false, I found it was not the case.</p> <p>listvi...
I have some code that displays a ListView and allows an item to be clicked to take it to a single view activity. However, for some reason the onClickListener isn't working. I thought that this may be due to the EditText being focusable. However, upon setting this to false, I found it was not the case. listview_item.xml...
android|parse-platform
0
2015-02-17T18:22:08.287Z
2,015
2
18
1
57
3
327
30
2
1
true
false
false
false
false
false
zero
28,568,438
Set button's background to image, scaling as needed
<p>I have a simple layout:</p> <p></p> <pre><code> &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/button5" android:layout_width="wrap_content" ...
I have a simple layout: [CODE] and this is the output: But I want the button with the background to stay the same size as it would without an image as a background (the right one). Basically, I want to "place" the button over the image so that the center of the image is on the button background, but the button doesn't ...
java|android|button|scale
0
2015-02-17T18:24:10.053Z
2,015
2
18
1
5,694
2
554
51
4
1
true
false
true
false
false
false
zero
28,568,497
class not found error in android studio
<p>Class ourclass = Class.forName("com.mycompany.trial1.Activity1");</p> <p>I've been trying to write the code for a small android project. When I declared a class item using Class.forname(" ") using fully specified name, it is still showing as class not found in android studio. I've seen this implementation in NEWBO...
Class ourclass = Class.forName("com.mycompany.trial1.Activity1"); I've been trying to write the code for a small android project. When I declared a class item using Class.forname(" ") using fully specified name, it is still showing as class not found in android studio. I've seen this implementation in NEWBOSTON video a...
java|android|exception-handling
-1
2015-02-17T18:26:48.877Z
2,015
2
18
1
644
1
397
39
3
0
false
false
false
false
false
true
negative
28,568,573
Android Activity interfaces to Fragments: try/catch blocks vs. instanceof checks
<p>In Google's <a href="http://developer.android.com/training/basics/fragments/communicating.html">article on communicating with Fragments</a>, the author gives the following example of checking to determine if a fragment's calling activity implements a required interface:</p> <pre><code>try { mCallback = (OnHeadl...
In Google's article on communicating with Fragments , the author gives the following example of checking to determine if a fragment's calling activity implements a required interface: [CODE] Normally, I prefer explicit checks to try/catch blocks. I this case, I would think the following example would be preferable: [CO...
java|android|android-fragments
4
2015-02-17T18:31:14.160Z
2,015
2
18
1
1,627
3
474
80
3
2
true
false
false
false
false
false
low
28,568,628
Android VpnService. Why does all traffic go through the TUN device?
<p>I created a TUN device using <a href="http://developer.android.com/reference/android/net/VpnService.html" rel="noreferrer">VpnService</a>. Why does the TUN interface have the highest priority among other network interfaces of my device?</p> <p><strong>Update #1</strong></p> <p>This is how I configured the TUN devi...
I created a TUN device using VpnService . Why does the TUN interface have the highest priority among other network interfaces of my device? Update #1 This is how I configured the TUN device: [CODE] Update #2 This is the output of route -n without the TUN device: [CODE] This is the output of route -n with the TUN device...
android|routing|tun
6
2015-02-17T18:34:11.440Z
2,015
2
18
1
1,942
1
328
67
3
3
true
false
false
false
false
false
medium
28,568,641
I want to sent the message to the C# server using android, but give me NULLPointerException
<p>Why it gives me NULLPointerException on this line</p> <pre><code>outputStream.write(array); </code></pre> <p>the WHOLE MainActivity</p> <pre><code>package com.example.phoneclient; import java.io.DataOutputStream; import java.io.IOException; import java.io.OutputStream; import java.net.Socket; import android.R....
Why it gives me NULLPointerException on this line [CODE] the WHOLE MainActivity [CODE] I only want to send this "1" to the server C# by click the button for testing. I don't know why.
java|android
0
2015-02-17T18:34:47.323Z
2,015
2
18
1
40
1
183
91
2
2
true
false
false
false
false
false
zero
28,568,688
Java Properties vs Android SharedPreferences
<p>The goal seems to be the same: to store key-value pairs. Is there a difference in concept between one and the other?</p>
The goal seems to be the same: to store key-value pairs. Is there a difference in concept between one and the other?
java|android|properties|sharedpreferences
5
2015-02-17T18:37:10.287Z
2,015
2
18
1
1,203
2
116
44
4
0
false
false
false
false
false
false
low
28,568,699
Context Menu background color upon selection in ListView no longer grays out
<p>I have a ListView of items which when you click on will change its background color (and will keep the background color even after restarting the app). This is to indicate that the item has been read (the expanded view opens in VieWPager). My problem is, since I have been able to change the background color of List...
I have a ListView of items which when you click on will change its background color (and will keep the background color even after restarting the app). This is to indicate that the item has been read (the expanded view opens in VieWPager). My problem is, since I have been able to change the background color of ListView...
android|listview
0
2015-02-17T18:37:53.937Z
2,015
2
18
1
387
0
756
76
2
2
true
true
false
false
false
false
zero
28,568,715
Android Studio Change Project Name / Root Directory Name
<p>How to change the name of a <strong>project's root directory</strong> in Android Studio 0.9.9. I read the other solution here but nothing works for me. I can change/refactor the package name but not the name of the root directory. I found another solution here, which is to change the name in <code>.idea/.name</code>...
How to change the name of a project's root directory in Android Studio 0.9.9. I read the other solution here but nothing works for me. I can change/refactor the package name but not the name of the root directory. I found another solution here, which is to change the name in .idea/.name file, which didn't work. After I...
android|android-studio
42
2015-02-17T18:38:58.113Z
2,015
2
18
1
71,907
11
584
56
2
0
false
false
true
true
true
false
high
28,568,723
Facebook request in Android - profile picture is not available anymore
<p>In an Android App I have the following code:</p> <pre><code>private void requestDataFromFb() { Callback callback = new Callback() { @Override public void onCompleted(Response response) { AppLog.Log(TAG, "Facebook Response ::" + response + ""); Utility.closeprocess(Login....
In an Android App I have the following code: [CODE] It's been working fine and I am getting the paths to the user's profile picture. However, after some time the paths don't work anymore. One cannot see the picture of the first users. When I enter the URL in my browser I get: [CODE] And when using the Graph API Explore...
android|facebook|facebook-graph-api
0
2015-02-17T18:39:21.600Z
2,015
2
18
1
118
0
581
70
3
2
true
true
false
false
false
false
zero
28,568,734
null pointer exception in slider menu
<pre><code>public class Search_HotelActivity extends Activity implements OnClickListener { Button btnClick; Button btnSelect; Button btnCancel; Button btn_Filter; DatePicker dp1; int Year, Month, Day; TextView tvDate; Dialog d; private DrawerLayout mDrawerLayout; private ListView mDrawe...
[CODE] }
android|navigation-drawer
0
2015-02-17T18:40:06.863Z
2,015
2
18
1
121
0
8
37
2
1
true
true
false
false
false
false
zero
28,568,898
How I can get the contents of a text box in android auntomatica way? without user intervention
<p>I am developing an app in android and would like to develop a method that captures the text you type into the box, but do not want the user to press any button, but at the moment when the text is written on the box , take a few seconds and the text is obtained and then compare it with other text.</p>
I am developing an app in android and would like to develop a method that captures the text you type into the box, but do not want the user to press any button, but at the moment when the text is written on the box , take a few seconds and the text is obtained and then compare it with other text.
android|string|automatic-updates
-2
2015-02-17T18:50:09.673Z
2,015
2
18
1
49
3
297
94
3
0
false
false
false
false
false
true
negative
28,568,941
How to perform a delay on a non-UI Thread in Android
<p>So, there are multiple similar questions/answers about how to do a delay on Android. However they mostly focus on doing this on UI thread. What if I need a delay in a worker thread in a service (and I don't want to put the thread to sleep)? the Handler.postDelayed() doesn't work as there is a "can't create a handler...
So, there are multiple similar questions/answers about how to do a delay on Android. However they mostly focus on doing this on UI thread. What if I need a delay in a worker thread in a service (and I don't want to put the thread to sleep)? the Handler.postDelayed() doesn't work as there is a "can't create a handler in...
android|multithreading|handler
6
2015-02-17T18:52:42.290Z
2,015
2
18
1
1,197
1
1,273
52
3
1
true
false
false
false
false
false
medium
28,568,951
Localhost webservice connection from android device
<p>I'm developing an android app and writing web services for that app on C#. So I need to try my webservices in my app from android device. I guess, for try my webservices from device, need to put my local IP address to instead of "localhost". And for use my local IP, i need to install IIS. I install IIS and put my IP...
I'm developing an android app and writing web services for that app on C#. So I need to try my webservices in my app from android device. I guess, for try my webservices from device, need to put my local IP address to instead of "localhost". And for use my local IP, i need to install IIS. I install IIS and put my IP to...
c#|android|web-services|iis|localhost
0
2015-02-17T18:53:10.843Z
2,015
2
18
1
242
0
629
51
5
0
false
true
false
false
false
false
zero
28,568,996
Android customview ondraw variable
<p>I have a customview where i display two rectangles. i want to set the height by a variable i sent from the mainactivity.</p> <p>my customview class is the following.</p> <pre><code>package com.example.customview; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import...
I have a customview where i display two rectangles. i want to set the height by a variable i sent from the mainactivity. my customview class is the following. [CODE] And the mainclass is standard [CODE] how can i change the height from the oncreate or onstart. Thanks all for helping.
java|android|variables|ondraw|custom-view
0
2015-02-17T18:55:36.977Z
2,015
2
18
1
399
2
284
34
5
2
true
false
false
false
false
false
zero
28,568,999
Building Qt for ARM and x86
<p>For the Android project I am working on, I need to link my native code with Qt Base. I found the docs on building Qt for Android at <a href="http://qt-project.org/wiki/Android" rel="nofollow">http://qt-project.org/wiki/Android</a>. However, the docs don't seem to mention how to configure the build for x86 and ARM. W...
For the Android project I am working on, I need to link my native code with Qt Base. I found the docs on building Qt for Android at http://qt-project.org/wiki/Android . However, the docs don't seem to mention how to configure the build for x86 and ARM. Wondering if someone can point me in the right direction. Thinking ...
android|qt
2
2015-02-17T18:55:45.223Z
2,015
2
18
1
2,141
2
436
27
2
0
false
false
false
false
false
false
low
28,569,074
LibGdx Tiled Map with proper dimensions given screen size
<p>I have set up my Tiled Map likes so:</p> <pre><code> level = new Level("level_1.tmx"); renderer = new OrthogonalTiledMapRenderer(level.getMap(), UNIT_SCALE); spriteBatch = renderer.getBatch(); debugRenderer = new ShapeRenderer(); camera = new OrthographicCamera(); camera.setToOrtho(false, 18, 1...
I have set up my Tiled Map likes so: [CODE] However, since the number of tiles is hardcoded in, the screen will accordingly stretch with different screen sizes. How do I customize the screen width so that it has the proper ratio and will properly scale to fill the screen with LibGDX and Android?
android|libgdx|tiled
2
2015-02-17T19:00:10.480Z
2,015
2
19
1
1,636
1
296
57
3
1
true
false
false
false
false
false
low
28,569,163
Android New Apps Work On Old Versions
<p>I am planning to study on Android programming. Now, I installed Eclipse and downloaded latest SDK. I will make apps on Android 5 because it installed Android 5 SDK but I wonder if these apps can work on older versions. My phone is Android 4.4 so if I make an app now, will it work on my phone? </p> <p>By the way, bo...
I am planning to study on Android programming. Now, I installed Eclipse and downloaded latest SDK. I will make apps on Android 5 because it installed Android 5 SDK but I wonder if these apps can work on older versions. My phone is Android 4.4 so if I make an app now, will it work on my phone? By the way, book I am stud...
android|eclipse
-1
2015-02-17T19:04:58.720Z
2,015
2
19
1
256
1
470
37
2
0
false
false
false
false
false
true
negative