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,797,342
Facebook integration in cross-platform mobile apps
<p>I am using Parse for JavaScript, and is working with the ionic framework within the Intel XDK.</p> <p>I am trying to incorporate social media login, where users are able to signin using facebook.</p> <p>I generally know how to navigate this but my main concern is the following: I am using facebook for javascript w...
I am using Parse for JavaScript, and is working with the ionic framework within the Intel XDK. I am trying to incorporate social media login, where users are able to signin using facebook. I generally know how to navigate this but my main concern is the following: I am using facebook for javascript where it requires a ...
javascript|android|html|facebook|parse-platform
4
2015-03-01T18:29:43.667Z
2,015
3
18
6
240
1
764
50
5
2
true
false
false
false
false
false
low
28,797,345
Return http request result to an activity
<p>I have to develop an Android application that perform a http GET request to a server that responds with a JSON string.</p> <p>Because I need to do that request more times in the app I've created a class only to do this task using <code>AsyncTask</code>.</p> <p>The problem is that I'm not able to return the JSON st...
I have to develop an Android application that perform a http GET request to a server that responds with a JSON string. Because I need to do that request more times in the app I've created a class only to do this task using AsyncTask . The problem is that I'm not able to return the JSON sting from the AsyncTask to the a...
android|android-asynctask|android-service
0
2015-03-01T18:30:27.740Z
2,015
3
18
6
822
4
604
41
3
0
false
false
false
false
false
false
zero
28,797,423
Android Emulator can not connect to SailsJs server via Socket.IO
<p>I am developing an Android app. I would like it to communicate with a SailsJS server via SocketIO. I am using socket.io for Android(com.github.nkzawa:socket.io-client) as the socket.io library in the android app.</p> <p>I run it on an emulator while doing the development. The initialization code is as below:</p> <...
I am developing an Android app. I would like it to communicate with a SailsJS server via SocketIO. I am using socket.io for Android(com.github.nkzawa:socket.io-client) as the socket.io library in the android app. I run it on an emulator while doing the development. The initialization code is as below: [CODE] Config.SER...
android|socket.io|sails.js
0
2015-03-01T18:36:38.577Z
2,015
3
18
6
100
0
439
64
3
1
true
true
false
false
false
false
zero
28,797,482
Convert CRYPT_RSA_PUBLIC_FORMAT_PKCS1 from php to RSA Public key in Java
<p>I'm trying to send a RSA Public Key from PHP to Java(Android). My PHP code looks something like this:</p> <pre><code>function __construct() { $rsa = new Crypt_RSA(); $rsa-&gt;setHash('sha1'); $rsa-&gt;setMGFHash('sha1'); $rsa-&gt;setEncryptionMode(CRYPT_RSA_ENCRYPTION_OAEP); ...
I'm trying to send a RSA Public Key from PHP to Java(Android). My PHP code looks something like this: [CODE] And I send $this->publicKeyBase to my Android app. In Java I get the encoded string like this: LS0tLS1CRUdJTiBSU0EgUFVCTElDIEtFWS0tLS0tDQpNSUdKQW9HQkFMQzluUkdhVGsybzlJTW5YVW0vWWRVMHMrTFplc09GUi9VYkU2K21hWDlwbGIw...
java|php|android|rsa|phpseclib
0
2015-03-01T18:41:44.983Z
2,015
3
18
6
518
1
822
72
5
4
true
false
false
false
false
false
zero
28,797,517
Send image from c++ server to Android client
<p>I have on my C++ server an image saved as blob in a sqlite database. I take these image from database like this:</p> <pre><code> int sizeForThumbnail = sqlite3_column_bytes(sqlStmt, 1); char* thumbnail = (char * )sqlite3_column_blob(sqlStmt,1); </code></pre> <p>After this i send it to the Android ph...
I have on my C++ server an image saved as blob in a sqlite database. I take these image from database like this: [CODE] After this i send it to the Android phone using a socket connection: [CODE] On the Android phone i try to get the image like this: [CODE] Now i read exactly how much i send from the c++ server. countF...
android|c++|image
0
2015-03-01T18:44:26.320Z
2,015
3
18
6
339
1
594
44
3
3
true
false
false
false
false
false
zero
28,797,525
GetPositionAsync does not return on real device when indoors - Xamarin Android
<p>I am developing both and iOS and Android version that requires GPS using Xamarin.</p> <p>On iOS it's working fine, however now developing the Android version I have some issues with the GPS. It does not fetch the GPS but times out. However, on a emulator (using Genymotion) it fetches a coordinate right away. Note t...
I am developing both and iOS and Android version that requires GPS using Xamarin. On iOS it's working fine, however now developing the Android version I have some issues with the GPS. It does not fetch the GPS but times out. However, on a emulator (using Genymotion) it fetches a coordinate right away. Note that I am us...
android|gps|xamarin|xamarin.mobile
2
2015-03-01T18:44:55.503Z
2,015
3
18
6
1,503
1
727
78
4
1
true
false
false
false
false
false
low
28,797,624
Android app with material cards crashes when run
<p>I'm trying to develop an app with material design cards as examplained here: <a href="http://goo.gl/7kC9Ej" rel="nofollow">http://goo.gl/7kC9Ej</a>. My code:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/ tools" ...
I'm trying to develop an app with material design cards as examplained here: http://goo.gl/7kC9Ej . My code: [CODE] The app compiles fine but crashes when I open it Here's my error log: http://goo.gl/etne6I
android
0
2015-03-01T18:52:52.390Z
2,015
3
18
6
488
2
206
48
1
1
true
false
false
false
false
false
zero
28,797,667
Change Title/Label of an Activity in Android 5 recents screen
<p>With Android 5, Google supports multiple activities in the recents screen for a single application. I managed to implement multiple activities in the recents screen with <a href="https://developer.android.com/about/versions/android-5.0.html" rel="noreferrer">this</a> official doc. How can I change the title of the a...
With Android 5, Google supports multiple activities in the recents screen for a single application. I managed to implement multiple activities in the recents screen with this official doc. How can I change the title of the activity? Switching to recents screen always shows my app name as title. [CODE] changes the title...
java|android|google-apps
5
2015-03-01T18:56:39.223Z
2,015
3
18
6
823
1
471
61
3
1
true
false
false
false
false
false
low
28,797,747
unchecked cast Map <String, String> allPreferences
<p>I have a gradle warning about unchecked cast. The app builds without bugs but I want to clean up any code issues. I saw a similar post here <a href="https://stackoverflow.com/questions/2705091/how-do-i-cast-from-int-to-generic-type-integer">How do I cast from int to generic type Integer?</a> </p> <p>It is not clear...
I have a gradle warning about unchecked cast. The app builds without bugs but I want to clean up any code issues. I saw a similar post here How do I cast from int to generic type Integer? It is not clear to me how to check the value for the cast. [CODE] line 56 Map<String, String> allPreferences = (Map<String, String>)...
java|android|casting|gradle
1
2015-03-01T19:02:29.587Z
2,015
3
19
6
468
2
355
50
4
2
true
false
false
false
false
false
low
28,797,755
Wrong action when click on item in ListView
<p>I have a problem with click on item. I want to click on item and show layout which is invisible in this item. When I click on first item, layout show, but in other item. This is my adapter:</p> <pre><code> public ActualOffersUsersListAdapter(Context context, ArrayList&lt;Offers&gt; offers, ArrayList&lt;User&gt; ...
I have a problem with click on item. I want to click on item and show layout which is invisible in this item. When I click on first item, layout show, but in other item. This is my adapter: [CODE] It is something wrong with [CODE] Any idea why?
android
0
2015-03-01T19:02:58.397Z
2,015
3
19
6
41
1
244
43
1
2
true
false
false
false
false
false
zero
28,797,825
Synchronizing callbacks between different threads in Android
<p>I am still relatively new to java and Android and am working with the Android sample code MediaBrowserService. </p> <p>I utilized that code to understand how a MediaController and MediaSession work together. Callbacks are used in that use pattern. What I also saw in that example is that user defined classes also ...
I am still relatively new to java and Android and am working with the Android sample code MediaBrowserService. I utilized that code to understand how a MediaController and MediaSession work together. Callbacks are used in that use pattern. What I also saw in that example is that user defined classes also make use of th...
java|android|multithreading|concurrency|callback
1
2015-03-01T19:09:51.287Z
2,015
3
19
6
2,147
1
1,505
60
5
6
true
false
false
false
false
false
low
28,797,888
Get JSONArray without array name
<p>I am new JSON android eclipse. I am doing a listview with images similar to the following tutorial: <a href="http://www.wingnity.com/blog/android-json-parsing-and-image-loading-tutorial/" rel="nofollow">http://www.wingnity.com/blog/android-json-parsing-and-image-loading-tutorial/</a>. The tutorial contains a JSON ar...
I am new JSON android eclipse. I am doing a listview with images similar to the following tutorial: http://www.wingnity.com/blog/android-json-parsing-and-image-loading-tutorial/ . The tutorial contains a JSON array that contains the array name. My JSON array does not contain the array name. My question now is how can I...
android|json
1
2015-03-01T19:15:53.177Z
2,015
3
19
6
5,875
4
541
32
2
2
true
false
true
false
false
false
low
28,798,000
Button Click Listener On ListView in a Fragment
<p>So I am trying to add a Button some functionality with an onClickListener but I can't seem to get it to work.<br> My button is declared in the XML of the list item and my list is implemented within a Fragment. <br> I have done some research to find some answers and every solution I tried it either failed or it was t...
So I am trying to add a Button some functionality with an onClickListener but I can't seem to get it to work. My button is declared in the XML of the list item and my list is implemented within a Fragment. I have done some research to find some answers and every solution I tried it either failed or it was too complicat...
android|listview|android-fragments|onclicklistener
1
2015-03-01T19:24:46.353Z
2,015
3
19
6
6,036
2
545
47
4
0
false
false
true
false
false
false
low
28,798,116
How to use the new MediaSession class to receive media button presses on Android 5.x?
<p>I’m attempting to receive media button presses using the new MediaSession class and so far I’ve been unsuccessful. Has anyone managed to receive them using the new class?</p> <p>I’ve been successful in creating a MediaSession and using it to update song information on a remote display (an in-car entertainment syst...
I’m attempting to receive media button presses using the new MediaSession class and so far I’ve been unsuccessful. Has anyone managed to receive them using the new class? I’ve been successful in creating a MediaSession and using it to update song information on a remote display (an in-car entertainment system) but so f...
android|android-5.0-lollipop
16
2015-03-01T19:36:16.320Z
2,015
3
19
6
16,136
2
869
85
2
3
true
false
true
true
true
false
medium
28,798,209
MvvmCross Binding your DataModel to your ViewModel
<p>I have written a Windows Store App that I need to port to Android. I am attempting to use MvvmCross and Xamarin in Visual Studio to achieve this. In my Windows App, I would create a screen using XAML and in the textbox etc. set the binding to the field in my datamodel object. I would get my datamodel objects from...
I have written a Windows Store App that I need to port to Android. I am attempting to use MvvmCross and Xamarin in Visual Studio to achieve this. In my Windows App, I would create a screen using XAML and in the textbox etc. set the binding to the field in my datamodel object. I would get my datamodel objects from a WCF...
c#|android|wcf|mvvm|mvvmcross
0
2015-03-01T19:44:04.520Z
2,015
3
19
6
611
1
1,211
50
5
0
false
false
false
false
false
false
zero
28,798,210
How to get information out of a listview and JSONObject?
<p>I have a ListView, which is created out of several cells (BaseAdapter) filled with information out of an JSONOBject. When clicking on an item I want to get the information that is coming along with the cell and putting it into an alertDialog. How am I handling this?</p> <p>So far I am trying it this way. But I am g...
I have a ListView, which is created out of several cells (BaseAdapter) filled with information out of an JSONOBject. When clicking on an item I want to get the information that is coming along with the cell and putting it into an alertDialog. How am I handling this? So far I am trying it this way. But I am getting a Nu...
android|listview|onclick|baseadapter
0
2015-03-01T19:44:05.280Z
2,015
3
19
6
64
0
388
56
4
3
true
true
false
false
false
false
zero
28,798,223
Confusion regarding wrapping my varargs argument
<p>When compiling my class which is a table in my ActiveAndroid ORM database I get this error:</p> <p>Warning:(33, 50) non-varargs call of varargs method with inexact argument type for last parameter; cast to Object for a varargs call cast to Object[] for a non-varargs call and to suppress this warning</p> <p>Here is...
When compiling my class which is a table in my ActiveAndroid ORM database I get this error: Warning:(33, 50) non-varargs call of varargs method with inexact argument type for last parameter; cast to Object for a varargs call cast to Object[] for a non-varargs call and to suppress this warning Here is the method which t...
java|android|sqlite|variadic-functions|activeandroid
1
2015-03-01T19:45:47.287Z
2,015
3
19
6
844
1
927
48
5
2
true
false
false
false
false
false
low
28,798,231
Specific Keyboard for my app
<p>I am working on app having input of different language. Is it possible to create separate language keyboard and show it on demand? If yes then how?</p>
I am working on app having input of different language. Is it possible to create separate language keyboard and show it on demand? If yes then how?
android|keyboard
0
2015-03-01T19:46:20.667Z
2,015
3
19
6
304
1
147
28
2
0
false
false
false
false
false
false
zero
28,798,239
How to change cert_fringerprint into Android App to use Google Maps API
<p>I have a problem when show the map into my Android App. When I authorised the credentials into Google Console the fingerprint are different </p> <p>This is the Log when execute my App. </p> <pre><code>2021-2418/eureka.seguro E/Google Maps Android API﹕ Authorization failure. Please see https://developers.goo...
I have a problem when show the map into my Android App. When I authorised the credentials into Google Console the fingerprint are different This is the Log when execute my App. [CODE] The cert_fingerprint not mach with Google Console. Why the app take a different finger_print? Could change? Thanks.
android|google-maps
0
2015-03-01T19:47:09.813Z
2,015
3
19
6
1,203
2
299
71
2
1
true
false
false
false
false
false
zero
28,798,288
getMeasuredHeight() returns 16777215 on Android 4.2.2
<p>I have written a very simple viewgroup extending LinearLayout as below.</p> <pre><code> @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); ViewParent viewParent = getParent(); if(viewParent instance...
I have written a very simple viewgroup extending LinearLayout as below. [CODE] The parent of this viewgroup is a RelativeLayout containing a simple TextView. On Android 4.2.2, parentLayout.getMeasuredHeight() returns 16777215. I am not able to make the sense of this number. It is working fine for higher Android version...
android
2
2015-03-01T19:51:14.060Z
2,015
3
19
6
540
1
358
53
1
1
true
false
false
false
false
false
low
28,798,300
Android Instagram ShareIntent Callback Method
<p>I have started instagram intent to share an image on instagram</p> <pre><code>Intent instagram = new Intent(android.content.Intent.ACTION_SEND); instagram.setType("image/*"); instagram.putExtra(Intent.EXTRA_STREAM, mImageCaptureUri); instagram.setPackage("com.instagram.android"); startActivityForResult(instagram, 7...
I have started instagram intent to share an image on instagram [CODE] but i want to be notified if the user shared the image or not Like [CODE] Is there any way to get notified?
android|instagram
1
2015-03-01T19:51:56.787Z
2,015
3
19
6
594
1
177
45
2
2
true
false
false
false
false
false
low
28,798,304
How to delete NetworkImageView cache?
<p>remove(IMAGE_URL);Im trying to make an app what display picture from livecamera in NetworkImageView from volley, the picture of URL im using is changing like every 5 seconds so I have made an reload button witch call a method to delete cache of that URL and then load IMG from that URL again. The IMG is first time lo...
remove(IMAGE_URL);Im trying to make an app what display picture from livecamera in NetworkImageView from volley, the picture of URL im using is changing like every 5 seconds so I have made an reload button witch call a method to delete cache of that URL and then load IMG from that URL again. The IMG is first time loade...
android|reload|android-volley|networkimageview
2
2015-03-01T19:52:27.417Z
2,015
3
19
6
497
0
730
37
4
2
true
true
false
false
false
false
low
28,798,328
How to return a bitmap that has been drawn on top of?
<p>I have class allows you draw on an image from the filesystem. It has methods that I've shared below. The idea is that, as the image is touched, circles will be drawn on top of that image at each of the points that have been touched.</p> <pre><code>@Override protected void onDraw(Canvas canvas) { try{ if...
I have class allows you draw on an image from the filesystem. It has methods that I've shared below. The idea is that, as the image is touched, circles will be drawn on top of that image at each of the points that have been touched. [CODE] After this is done, I'd like to include a static method that returns the now dra...
android|bitmap|android-canvas
0
2015-03-01T19:55:07.893Z
2,015
3
19
6
44
1
639
53
3
2
true
false
false
false
false
false
zero
28,798,370
Using ListPreference in AndroidStudio
<p>I have a settings menu with a list preference from the sample settings activity in Android Studio.</p> <pre><code> &lt;ListPreference android:key="example_list" android:title="@string/pref_title_add_friends_to_messages" android:defaultValue="5" android:entries="@array/pref_example_list_titles" a...
I have a settings menu with a list preference from the sample settings activity in Android Studio. [CODE] In this list preference you can select 8 different things. [CODE] I want to use the value of the preference to display links which belong to the 8 different settings. E.g.: 5 - google.com 6 - wikipedia.com etc. As ...
android|android-activity|android-studio|android-preferences
3
2015-03-01T20:00:31.183Z
2,015
3
20
6
5,483
2
495
37
4
2
true
false
true
false
false
false
low
28,798,377
CursorLoader to query data inside IntentService implementation
<p>I have an intent-service which runs practically, infinitely, till a static kill Boolean is set to true or some specific condition calls stopSelf(). (is this a good idea ?) My service depends on querying a content-provider. Now I did not want to "poll" the provider for changes, so I tried </p> <pre><code>getContentR...
I have an intent-service which runs practically, infinitely, till a static kill Boolean is set to true or some specific condition calls stopSelf(). (is this a good idea ?) My service depends on querying a content-provider. Now I did not want to "poll" the provider for changes, so I tried [CODE] I define my ContentObser...
java|android|multithreading|android-intentservice
0
2015-03-01T20:01:03.237Z
2,015
3
20
6
186
1
932
62
4
2
true
false
false
false
false
false
zero
28,798,443
Android: How to draw objects onto the screen based on GPS and Gyroscope
<p>I've been working on an augmented reality application for my university that places a POI button onto each building when looking through a camera preview. I am supposed to program it from scratch, without using something like Layar or Wikitude. I have all of the information from the various sensors I think are nece...
I've been working on an augmented reality application for my university that places a POI button onto each building when looking through a camera preview. I am supposed to program it from scratch, without using something like Layar or Wikitude. I have all of the information from the various sensors I think are necessar...
android|gps|accelerometer|augmented-reality
0
2015-03-01T20:07:19.027Z
2,015
3
20
6
420
1
660
71
4
0
false
false
false
false
false
false
zero
28,798,455
ViewPager dosen't show the views
<p>I have a ViewPager with 2 fragments in another fragment: MainView extends from Fragment and the view of the ViewPager also extends from Fragment.</p> <p>When I run the application everything works fine, but when I go to MainView's Fragment and and then back to the ViewPager's Fragment - the ViewPager doesn't show ...
I have a ViewPager with 2 fragments in another fragment: MainView extends from Fragment and the view of the ViewPager also extends from Fragment. When I run the application everything works fine, but when I go to MainView's Fragment and and then back to the ViewPager's Fragment - the ViewPager doesn't show the views. T...
android|android-fragments|android-viewpager
1
2015-03-01T20:07:59.347Z
2,015
3
20
6
592
1
494
32
3
3
true
false
false
false
false
false
low
28,798,485
Android admob, configuration for live application
<p>While I am testing my app I use this code</p> <pre><code>AdRequest adRequest = new AdRequest.Builder().addTestDevice("my-device-id").build(); adElm = (AdView) findViewById(R.id.ad); adElm.loadAd(adRequest); </code></pre> <p>I am planning on launching my application in a couple of weeks, so come launch do I just ne...
While I am testing my app I use this code [CODE] I am planning on launching my application in a couple of weeks, so come launch do I just need to remove the [CODE] part? And my adverts will be configured correctly to display actual adverts, and generate revenue?
android
0
2015-03-01T20:10:02.220Z
2,015
3
20
6
30
1
262
49
1
2
true
false
false
false
false
false
zero
28,798,548
setImageResource from Filepath (Gallery?) com.edmodo.cropper
<p>Im using the Cropper (com.edmodo.cropper) to crop images. Can i crop an image from the gallery? How can i put the image from path to the CropImageView?</p> <p>its not working, can someone tell me another crop pack to crop images from path with the same features?</p>
Im using the Cropper (com.edmodo.cropper) to crop images. Can i crop an image from the gallery? How can i put the image from path to the CropImageView? its not working, can someone tell me another crop pack to crop images from path with the same features?
java|android|crop
0
2015-03-01T20:15:28.337Z
2,015
3
20
6
259
1
255
60
3
0
false
false
false
false
false
false
zero
28,798,550
Volley library issue while Image uploading
<p>I am trying to upload image as base64 encoding string to server using Volley library with HTTP POST request but I am getting this message at my logcat :</p> <p><strong>03-02 01:20:35.412: I/dalvikvm(1538): Could not find method android.net.TrafficStats.setThreadStatsTag, referenced from method com.android.volley.Ne...
I am trying to upload image as base64 encoding string to server using Volley library with HTTP POST request but I am getting this message at my logcat : 03-02 01:20:35.412: I/dalvikvm(1538): Could not find method android.net.TrafficStats.setThreadStatsTag, referenced from method com.android.volley.NetworkDispatcher.add...
android
0
2015-03-01T20:15:38.177Z
2,015
3
20
6
371
0
426
42
1
1
true
true
false
false
false
false
zero
28,798,585
Android - Determine Memory Leak in Compass (SensorManager)
<p>I implemented a simple compass class using a singleton pattern. Once I registered the accelerometer and magnetometer listener with the sensor manager the memory consumption is increasing. My GPS class is very similar to the compass class and there I have no problems regarding memory leaks.I placed a breakpoint in th...
I implemented a simple compass class using a singleton pattern. Once I registered the accelerometer and magnetometer listener with the sensor manager the memory consumption is increasing. My GPS class is very similar to the compass class and there I have no problems regarding memory leaks.I placed a breakpoint in the o...
java|android|memory-leaks|sensors
0
2015-03-01T20:19:25.150Z
2,015
3
20
6
529
1
639
58
4
2
true
false
false
false
false
false
zero
28,798,600
Libgdx NESTED ShapeRenderer not drawing lines
<p>In the code below I retrieve an arraylist of vertices (I've debugged and they are in fact there) and then attempt to render them in this nest loop arrangement which is hosted in the render method. For some reason, the ShapeRenderer cannot connect all the lines if this is nested? Can someone tell me what I'm doing wr...
In the code below I retrieve an arraylist of vertices (I've debugged and they are in fact there) and then attempt to render them in this nest loop arrangement which is hosted in the render method. For some reason, the ShapeRenderer cannot connect all the lines if this is nested? Can someone tell me what I'm doing wrong...
java|android|libgdx|box2d
0
2015-03-01T20:20:50.173Z
2,015
3
20
6
159
1
383
45
4
1
true
false
false
false
false
false
zero
28,798,617
Update a single INT via php in mySQL Table Row after specific Event
<p>I have a account Database for a Android App. In this Database i have the rows "_id, username, password, function, <strong>login_counter</strong>".</p> <p>Now i want to auto update the row <strong>login_counter</strong> after the frist login from this user. The Default value is "0". After the 1st login it must chang...
I have a account Database for a Android App. In this Database i have the rows "_id, username, password, function, login_counter ". Now i want to auto update the row login_counter after the frist login from this user. The Default value is "0". After the 1st login it must change to "1" (Reason: This system shall prevent ...
php|android|mysql|automation|sql-update
0
2015-03-01T20:22:58.393Z
2,015
3
20
6
57
0
902
67
5
1
true
true
false
false
false
false
zero
28,798,639
Display one view in portrait while another is in landscape?
<p>I have an activity that per our requirements has to be locked into landscape orientation. However when the user holds the device in portrait we display a view on top of it. Up until now it has just been an image so I have rotated the image and I display it. Really the image is also being displayed in landscape but s...
I have an activity that per our requirements has to be locked into landscape orientation. However when the user holds the device in portrait we display a view on top of it. Up until now it has just been an image so I have rotated the image and I display it. Really the image is also being displayed in landscape but sinc...
android
0
2015-03-01T20:25:22.287Z
2,015
3
20
6
83
1
723
59
1
0
false
false
false
false
false
false
zero
28,798,681
Android custom adapter and asyncTask not updating listView
<p>I've searched all the posts I can find, and none seem to help with my situation. I have an android project that uses web services to pull down hourly weather data and populate a listView with the results. </p> <p>The weird problem I'm having is that when I debug the project on my android phone, the main activity is...
I've searched all the posts I can find, and none seem to help with my situation. I have an android project that uses web services to pull down hourly weather data and populate a listView with the results. The weird problem I'm having is that when I debug the project on my android phone, the main activity is blank and t...
java|android|android-listview|android-asynctask|custom-adapter
0
2015-03-01T20:29:56.140Z
2,015
3
20
6
3,421
2
1,243
58
5
3
true
false
true
false
false
false
zero
28,798,699
Floating Toolbar with Appcompat
<p>How to create a floating toolbar like the following image as proposed in the material design guidelines and in the Google Map application.</p> <p><img src="https://i.stack.imgur.com/yQBVt.png" alt="enter image description here"></p>
How to create a floating toolbar like the following image as proposed in the material design guidelines and in the Google Map application.
android|toolbar|android-ui|android-appcompat
8
2015-03-01T20:31:26.590Z
2,015
3
20
6
11,482
6
138
31
4
0
false
false
true
false
false
false
medium
28,798,728
Android : Preview frame, converted from YCbCr_420_SP (NV21) format to RGB render correct picture but in green
<p>I post this question as I didn’t find answers solving my issues in the following posts :</p> <p><a href="https://stackoverflow.com/questions/4768165/android-problem-whith-converting-preview-frame-to-bitmap">Converting preview frame to bitmap</a></p> <p><a href="https://stackoverflow.com/questions/12345415/android-...
I post this question as I didn’t find answers solving my issues in the following posts : Converting preview frame to bitmap Android decodeYUV420SP results in green images? Displaying YUV Image in Android I got my data and cameraResolution (after selecting BestPreviewSize) from : [CODE] Later from conversion to RGB, I u...
android|camera|rgb|yuv
2
2015-03-01T20:34:29.467Z
2,015
3
20
6
2,451
2
953
109
4
5
true
false
false
false
false
false
low
28,798,785
Why is my JAVA_HOME variable that I setup not working?
<p>I'm trying to install and use Android Studio. However, when I run the program after installing, it gives me this error:</p> <p><img src="https://i.stack.imgur.com/ANzu6.png" alt="Can&#39;t Launch Android Studio"></p> <p>I went into my control panel and added an Environment Variable under System variables that look...
I'm trying to install and use Android Studio. However, when I run the program after installing, it gives me this error: I went into my control panel and added an Environment Variable under System variables that looks like this: I restarted my computer after making this, but it still doesn't work. Any help?
android|environment-variables|java-home|system-variable
0
2015-03-01T20:39:45.543Z
2,015
3
20
6
77
1
307
54
4
0
false
false
false
false
false
false
zero
28,798,820
Set TextView after onTimeSet Dialog to HH:mm [Solution Posted]
<p>So I tried searching for ways to get the output of the TimePicker dialog to set a TextView as HH:mm AM/PM (ex: 8:00 AM). I know there is stuff out there, but I couldn't find it exactly what fit. I took answers that got me close (shout out to Faraz Ahmed from <a href="https://stackoverflow.com/questions/12494074/an...
So I tried searching for ways to get the output of the TimePicker dialog to set a TextView as HH:mm AM/PM (ex: 8:00 AM). I know there is stuff out there, but I couldn't find it exactly what fit. I took answers that got me close (shout out to Faraz Ahmed from this question : and added my own 'spin' to it. Just posting i...
android|timepicker|android-timepicker
-1
2015-03-01T20:44:09.993Z
2,015
3
20
6
198
1
458
62
3
1
true
false
false
false
false
true
negative
28,798,885
how to play a mp3 file at specific times in android?
<p>I'm new to Android development.my app compute prayer times by longitude and latitude of city and save them in "fajr" ,"dhuhr"," maghrib" variables. now i want to play a mp3 file in that times even if my app be close but i dont know how use services for it.</p> <pre><code>public class ShowTimeActivity extends Activi...
I'm new to Android development.my app compute prayer times by longitude and latitude of city and save them in "fajr" ,"dhuhr"," maghrib" variables. now i want to play a mp3 file in that times even if my app be close but i dont know how use services for it. [CODE]
android
2
2015-03-01T20:49:39.860Z
2,015
3
20
6
486
1
263
52
1
1
true
false
false
false
false
false
low
28,798,888
Android mobile micro usb port as clock pulse generator
<p><br/> I am working on a project which requires android phone to generate clock pulse through micro USB port. I would request your help, and would like to know if this is possible and if it is? How should i go about doing it?<br/> I have tried reading about audio jack generating clock pulses, although this is interes...
I am working on a project which requires android phone to generate clock pulse through micro USB port. I would request your help, and would like to know if this is possible and if it is? How should i go about doing it? I have tried reading about audio jack generating clock pulses, although this is interesting but I wou...
android|serial-port|arduino|microcontroller|android-hardware
1
2015-03-01T20:49:45.257Z
2,015
3
20
6
309
1
634
54
5
0
false
false
false
false
false
false
low
28,798,895
How to show revmob ads in my air for android app
<p>I'm making an android app with flash cs6, and I want to put some ads in it. I've found that revmob comes with the most specific guide I could find. <a href="http://sdk.revmobmobileadnetwork.com/air.html#download" rel="nofollow">http://sdk.revmobmobileadnetwork.com/air.html#download</a></p> <p>In the android bit it ...
I'm making an android app with flash cs6, and I want to put some ads in it. I've found that revmob comes with the most specific guide I could find. http://sdk.revmobmobileadnetwork.com/air.html#download In the android bit it says: 'Add the required permission in your AndroidManifest.xml file by putting the following co...
android|flash|air|adobe|revmob
0
2015-03-01T20:50:23.833Z
2,015
3
20
6
146
1
1,031
48
5
3
true
false
false
false
false
false
zero
28,798,938
.NET AES Encryption and Android Decryption
<p>I'm encrypting a GUID string with AES in .NET with the following code.</p> <pre><code> // Decode the challenge bytes from base 64 byte[] challengeBytes = Base64.decode(challenge, Base64.NO_WRAP); ICryptoTransform encryptor = aes.CreateEncryptor(key, initializationVector); MemoryStre...
I'm encrypting a GUID string with AES in .NET with the following code. [CODE] Then in Android I'm decrypting with the following code. [CODE] I've done all sorts of debugging and IV , the Key and Challenge Bytes are exactly the same on both platforms. I've looked at them byte by byte and they're good. They only differen...
java|c#|android|encryption|cryptography
2
2015-03-01T20:53:46.507Z
2,015
3
20
6
1,376
1
937
42
5
4
true
false
false
false
false
false
low
28,798,979
nullpointerexception when use getIntent().getExtras().getString
<p>I want to pass a value in a activity to another activity and use this code</p> <pre><code> Intent i = new Intent(MainActivity.this,ListActivity.class); i.putExtra("position","ایران"); startActivity(i); </code></pre> <p>and in other activity for return variable use this code</p> ...
I want to pass a value in a activity to another activity and use this code [CODE] and in other activity for return variable use this code [CODE] Now when I run the program it gives this error: [CODE] Please help me.
java|android|nullpointerexception
1
2015-03-01T20:56:59.227Z
2,015
3
20
6
2,157
1
215
63
3
3
true
false
false
false
false
false
low
28,798,982
Android View class thread stopping while in loop in the second iteration
<p>this is the view class:</p> <pre><code>public class Ball extends View implements Runnable { public Ball(Context context) { super(context); ActionBar.LayoutParams lp = new ActionBar.LayoutParams(500, 200); //setY(100); this.setLayoutParams(lp); Log.d("test", "Ball create...
this is the view class: [CODE] in the run method, inside the loop, if I change it to: [CODE] or even: [CODE] the thread keeps working, but if the code is: [CODE] then in the second iteration(I don't know why exactly is the 2 iteration) after executing setY(y), it stops and no errors are throwed, I can't catch the cause...
java|android
0
2015-03-01T20:57:25.777Z
2,015
3
20
6
68
1
454
72
2
4
true
false
false
false
false
false
zero
28,799,009
One layout under the other
<p>I'm trying to re-create the animation that the Android L clock app has with it's alarms. In the animation there is the layout of the general info of the alarm, and when you press it another layout seems to slide from underneath the original layout to show more details, like this:</p> <p><img src="https://i.stack.im...
I'm trying to re-create the animation that the Android L clock app has with it's alarms. In the animation there is the layout of the general info of the alarm, and when you press it another layout seems to slide from underneath the original layout to show more details, like this: The problem is that I can't seem to be ...
android|android-layout|layout
0
2015-03-01T20:59:52.867Z
2,015
3
20
6
88
0
710
26
3
3
true
true
false
false
false
false
zero
28,799,053
Multiple MediaPlayer background instead of 1
<p>I'm trying to run an App that has only one background song that runs on all activities. But some how when I open another activity, (all the activities are extends of the main activity), the application opens another session of the song. I tried to fix it but with no success.</p> <p>I don't understand why the "Music...
I'm trying to run an App that has only one background song that runs on all activities. But some how when I open another activity, (all the activities are extends of the main activity), the application opens another session of the song. I tried to fix it but with no success. I don't understand why the "Music:IsPlaying"...
android-activity|android-mediaplayer
0
2015-03-01T21:04:24.137Z
2,015
3
21
6
49
1
394
44
2
1
true
false
false
false
false
false
zero
28,799,091
How to make user add images to drawable from system?
<p>I'm facing a problem. I'm using an Image GridView of stuff, and I created an object and all. I want to make the user, by tapping a button, to add an image to resources, and then I want to even be able to use that image ID so i can add it to my objects and gridview.</p> <p>This is my activity: (the part that is need...
I'm facing a problem. I'm using an Image GridView of stuff, and I created an object and all. I want to make the user, by tapping a button, to add an image to resources, and then I want to even be able to use that image ID so i can add it to my objects and gridview. This is my activity: (the part that is needed) [CODE] ...
android|image
0
2015-03-01T21:08:10.043Z
2,015
3
21
6
48
1
532
52
2
1
true
false
false
false
false
false
zero
28,799,119
Android app wont run in android studio emulator
<p>I have writed couple simple apps in android studio, I normally run/test them on my phone via USB, but I would like to use emulator (access to internet which i dont have on phone). My emulator starts normally but app wont show/run. There is no error or nothing. Many people writes about how emulators run slowly, my em...
I have writed couple simple apps in android studio, I normally run/test them on my phone via USB, but I would like to use emulator (access to internet which i dont have on phone). My emulator starts normally but app wont show/run. There is no error or nothing. Many people writes about how emulators run slowly, my emula...
android|android-emulator
0
2015-03-01T21:10:28.810Z
2,015
3
21
6
3,334
2
487
47
2
0
false
false
true
false
false
false
zero
28,799,185
android listview getselectedItem returns null
<p>I have a listview and a button outside listview. I want the user to select an item in listview and then when clicking on button I wanna get the selected item of list view. I have set choiceMode to single choice on listview, but when I try getselecteditem it returns null. How should I get the selected Item?</p> <p>t...
I have a listview and a button outside listview. I want the user to select an item in listview and then when clicking on button I wanna get the selected item of list view. I have set choiceMode to single choice on listview, but when I try getselecteditem it returns null. How should I get the selected Item? thanks.
android-listview
7
2015-03-01T21:15:10.437Z
2,015
3
21
6
1,852
1
315
45
1
0
false
false
false
false
false
false
medium
28,799,201
C# - Using async for a high-end server
<p>I'm not sure if using async for what I'm planning to do is the most efficient way, so I decided to ask you guys what you think about it.</p> <p><strong>Backstory</strong>: I'm developing a server emulation software for a MMORPG game which has NPCs laying around in it's world. You (the client) can interact with the ...
I'm not sure if using async for what I'm planning to do is the most efficient way, so I decided to ask you guys what you think about it. Backstory : I'm developing a server emulation software for a MMORPG game which has NPCs laying around in it's world. You (the client) can interact with the NPCs through dialogs. Dialo...
c#|asynchronous|android-asynctask
2
2015-03-01T21:16:23.317Z
2,015
3
21
6
81
1
1,583
38
3
2
true
false
false
false
false
false
low
28,799,241
How come I can't see my android device anymore on Android Studio?
<p>Just yesterday I updated Android Studio. Before I updated it everything was working fine, meaning I was able to use my Samsung Galaxy S4 to debug my apps with no problem. After the update, Android Studio no longer sees my device when I try to debug. </p> <p>Furthermore when I type in <code>adb devices</code> on my ...
Just yesterday I updated Android Studio. Before I updated it everything was working fine, meaning I was able to use my Samsung Galaxy S4 to debug my apps with no problem. After the update, Android Studio no longer sees my device when I try to debug. Furthermore when I type in adb devices on my terminal (I am using Ubun...
android|ubuntu|android-studio|adb|android-debug
-1
2015-03-01T21:20:41.920Z
2,015
3
21
6
321
1
642
65
5
0
false
false
false
false
false
true
negative
28,799,244
How to avoid multiple instances of MediaPlayer objects?
<p>I'm devolping an music player application, when user click on an item (song) in the listview in PlayListFragment user redirects to the mediaPlayerFragment and the choosen melody starts to play. When user repeat the scenario i think that a new instance of mediaPlayer is created because there is two melodys playing at...
I'm devolping an music player application, when user click on an item (song) in the listview in PlayListFragment user redirects to the mediaPlayerFragment and the choosen melody starts to play. When user repeat the scenario i think that a new instance of mediaPlayer is created because there is two melodys playing at th...
android|android-mediaplayer
2
2015-03-01T21:21:10.860Z
2,015
3
21
6
935
1
635
55
2
2
true
false
false
false
false
false
low
28,799,270
Linking Mirror Api and GDK glassware App
<p>I am Trying to launch a GDK App on my glass using a MenuItem on Timeline card inserted through Mirror API. I have Tired all the possible way to make it work there might be a logical bug I couldn't catch.</p> <p>I followed these links as my starting point.</p> <p><a href="https://stackoverflow.com/questions/2096515...
I am Trying to launch a GDK App on my glass using a MenuItem on Timeline card inserted through Mirror API. I have Tired all the possible way to make it work there might be a logical bug I couldn't catch. I followed these links as my starting point. Opening GDK Glassware through Mirror API Glassware MenuItem Menu Item f...
android|android-intent|google-glass|google-gdk|google-mirror-api
0
2015-03-01T21:22:55.040Z
2,015
3
21
6
101
1
608
40
5
2
true
false
false
false
false
false
zero
28,799,302
Activity loads data twice
<p>There is one <code>Activity</code> - called <code>MainActivity</code>. There is one <code>xml</code> - called <code>activity_main</code>. It contains a menu layout and game layout. </p> <p>Menu layout - contains a "Start Match" <code>Button</code></p> <p>Game layout - contains a <code>Listview</code> with 4 <code>...
There is one Activity - called MainActivity . There is one xml - called activity_main . It contains a menu layout and game layout. Menu layout - contains a "Start Match" Button Game layout - contains a Listview with 4 String items (4 words...) and a "Done" Button When the app launches, the menu layout is visible and ga...
android|android-activity|bundle|android-lifecycle
-1
2015-03-01T21:26:50.747Z
2,015
3
21
6
54
1
1,219
25
4
1
true
false
false
false
false
true
negative
28,799,308
Where to catch crashes in android application?
<p>I want to reset some shared preferences values when application crashed. I know I can implement UncaughExceptionHandler and than reset the shared preference values in the uncaughtException method, but where should I implement it? In a class that extends Application class or in a class that extends Activity and why?<...
I want to reset some shared preferences values when application crashed. I know I can implement UncaughExceptionHandler and than reset the shared preference values in the uncaughtException method, but where should I implement it? In a class that extends Application class or in a class that extends Activity and why?
android|android-activity|uncaught-exception
0
2015-03-01T21:27:13.100Z
2,015
3
21
6
64
1
316
46
3
0
false
false
false
false
false
false
zero
28,799,379
Android: Problems with different screen sizes not showing the same thing
<p>I am new to Android/Java/Programming in general, so sorry if this is a dumb question.</p> <p>I have been making a small game for my LG G3, and the layout of a grid looks fine (9x9) which can be found here : <a href="http://i.imgur.com/DGlsYGv.png" rel="nofollow">http://i.imgur.com/DGlsYGv.png</a></p> <p>However, I...
I am new to Android/Java/Programming in general, so sorry if this is a dumb question. I have been making a small game for my LG G3, and the layout of a grid looks fine (9x9) which can be found here : http://i.imgur.com/DGlsYGv.png However, I have recently tested it on the emulator, which is a Nexus 5, and the layout tu...
java|android|button|layout
2
2015-03-01T21:34:00.047Z
2,015
3
21
6
192
2
631
72
4
1
true
false
false
false
false
false
low
28,799,412
Android Source: What is building exactly and is it necessary to test small changes?
<p>For a project, I am changing certain ContentProvider-files in the Application Framework Layer of the Android System. As I am trying different things, I was wondering if it is necessary to build the Android Source for every change I make, or if there is a way to somehow emulate the system without the build? <br> I am...
For a project, I am changing certain ContentProvider-files in the Application Framework Layer of the Android System. As I am trying different things, I was wondering if it is necessary to build the Android Source for every change I make, or if there is a way to somehow emulate the system without the build? I am not ent...
android|build
0
2015-03-01T21:36:50.880Z
2,015
3
21
6
41
1
919
83
2
0
false
false
false
false
false
false
zero
28,799,420
How to "wait to activity" using Appium, on begin and during test itself?
<p>I'm starting an already installed app using appium.</p> <p>After my driver is initialized. How do I make it poll-wait till certain activity is displayed?</p> <p>I saw only this way to wait for activity when starting up</p> <p><code>cap.setCapability("app-wait-activity", "activity-to-wait-for");</code> </p> <p>Is...
I'm starting an already installed app using appium. After my driver is initialized. How do I make it poll-wait till certain activity is displayed? I saw only this way to wait for activity when starting up cap.setCapability("app-wait-activity", "activity-to-wait-for"); Is there any other way? How do I wait to another sp...
java|android|android-activity|appium|ui-testing
18
2015-03-01T21:37:54.433Z
2,015
3
21
6
47,056
7
407
72
5
0
false
false
true
true
true
false
medium
28,799,512
How to retrieve key/value array from Bundle on Android
<p>I'm trying to retrieve data from "extra" key:</p> <pre><code>Bundle[ {from=1058706545539, extra={ "ty":"msg", "d":"sec":1425242647,"usec":763000}, "iL":"86777e87a574c3f068f6525e", "tU":"7e0a9dbbd1d6ee1795d64fdf", "iP":"4f26e5f78d042e2224688ed7", "iM":"dd83db95e764b103b4fec99e"}, message=Oi , ...
I'm trying to retrieve data from "extra" key: [CODE] If it was JSon I'd use JSONObject, I don't know how to retrieve the the whole "extra" on a HashMap structure. So that I can use something like that: [CODE] I receive this bundle from Push Notification.
android|bundle|push
0
2015-03-01T21:46:47.640Z
2,015
3
21
6
474
1
254
54
3
2
true
false
false
false
false
false
zero
28,799,587
PHPUnit on Android Device
<p>I have built a pretty decent dev environment on my android tablet but one of the things I'd like to accomplish is to get PHPUnit to work on it so I can run unit tests from it.</p> <p>I am using Palapa Web Server which comes with lighttpd 1.4.35 and php 5.5.15.</p> <p>When I try to <code>php phpunit.phar --version<...
I have built a pretty decent dev environment on my android tablet but one of the things I'd like to accomplish is to get PHPUnit to work on it so I can run unit tests from it. I am using Palapa Web Server which comes with lighttpd 1.4.35 and php 5.5.15. When I try to php phpunit.phar --version I get: Notice: Undefined ...
php|android|phpunit
1
2015-03-01T21:54:38.573Z
2,015
3
21
6
129
1
487
25
3
0
false
false
false
false
false
false
low
28,799,738
No suitable constructor found for LwjglApplication(TheGame,LwjglApplicationConfiguration)
<p>After a successful build Android Studio says when I try to start my libGDX project with DesktopLauncher:</p> <pre><code>Gradle: error: no suitable constructor found for LwjglApplication(TheGame,LwjglApplicationConfiguration) constructor LwjglApplication.LwjglApplication(ApplicationListener,LwjglApplicationConfigura...
After a successful build Android Studio says when I try to start my libGDX project with DesktopLauncher: [CODE] It is more than strange after a build with zero warning/error.
android|libgdx
0
2015-03-01T22:08:42.053Z
2,015
3
22
6
176
0
174
89
2
1
true
true
false
false
false
false
zero
28,799,784
How to draw AdMob Banner on Canvas?
<p>Is it possible to somehow draw AdMob AdView Banner over the custom view on canvas? Clearly shown in this figure</p> <p><a href="http://rghost.ru/8Tpt5bpFR/image.png" rel="nofollow">http://rghost.ru/8Tpt5bpFR/image.png</a> <a href="http://rghost.ru/88lvrGVfB/image.png" rel="nofollow">http://rghost.ru/88lvrGVfB/image...
Is it possible to somehow draw AdMob AdView Banner over the custom view on canvas? Clearly shown in this figure http://rghost.ru/8Tpt5bpFR/image.png http://rghost.ru/88lvrGVfB/image.png Draw in this place [CODE]
android|canvas|admob
0
2015-03-01T22:12:35.220Z
2,015
3
22
6
414
1
211
35
3
1
true
false
false
false
false
false
zero
28,799,857
Only works in Main Activity?
<p>So I have a code, that's only works in the MainActivity, and I don't know how to make it work, in the second activity.</p> <pre><code>import android.app.Activity; import android.content.res.Resources; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android...
So I have a code, that's only works in the MainActivity, and I don't know how to make it work, in the second activity. [CODE] When I start my app, in the first activity the text is changing(because it's a random text changing code), but when I press the button, that makes me go to the second activity, nothing happens, ...
android|android-activity|program-entry-point
0
2015-03-01T22:20:25.103Z
2,015
3
22
6
376
2
400
28
3
2
true
false
false
false
false
false
zero
28,799,896
The application I'm developing does not appear or open in my android device
<p>I am currently building an application in Android Studio. When I run my application and Android Studio installs it on my device through the USB, the application doesn't open and doesn't show up in the <strong>Apps</strong> list of my device. Which is strange because when I travel to <strong>Settings > Application Ma...
I am currently building an application in Android Studio. When I run my application and Android Studio installs it on my device through the USB, the application doesn't open and doesn't show up in the Apps list of my device. Which is strange because when I travel to Settings > Application Manager in the device, it show...
android|android-studio|android-emulator
0
2015-03-01T22:23:47.733Z
2,015
3
22
6
115
1
457
75
3
0
false
false
false
false
false
false
zero
28,799,958
Twice opening activity with an null value
<p>i have an activity with some buttons in which when you click on any of buttons First with Intent send a value to another activity that contains a list view is filled with database. And I want to use this value as a parameter for where command select for filling list view with special Content</p> <p>now i have a pro...
i have an activity with some buttons in which when you click on any of buttons First with Intent send a value to another activity that contains a list view is filled with database. And I want to use this value as a parameter for where command select for filling list view with special Content now i have a problem that w...
android|android-intent
0
2015-03-01T22:28:14.617Z
2,015
3
22
6
210
1
621
41
2
2
true
false
false
false
false
false
zero
28,799,983
How to receive simple text using InputStream in a Thread? Android
<p>I am running a server which writes a simple Welcome message to a new Client upon Successful connection! Now I am sure of it that my android device connects to the server but I am unable to receive the welcome text that the server sends. I am new to socket programming and I am looking for a unified solution to this. ...
I am running a server which writes a simple Welcome message to a new Client upon Successful connection! Now I am sure of it that my android device connects to the server but I am unable to receive the welcome text that the server sends. I am new to socket programming and I am looking for a unified solution to this. I w...
android|sockets|inputstream
-1
2015-03-01T22:30:16.487Z
2,015
3
22
6
581
2
884
65
3
3
true
false
false
false
false
true
negative
28,800,002
Why am I getting this bug?
<p>I am editing an android program. I am getting the following error:</p> <pre><code>cannot find symbol variable layout </code></pre> <p>It is pointing a line of Java code</p> <pre><code> setContentView(R.layout.splash); </code></pre> <p>Layout is underlined. I am assuming that this is referencing my splash...
I am editing an android program. I am getting the following error: [CODE] It is pointing a line of Java code [CODE] Layout is underlined. I am assuming that this is referencing my splash.xml file.That file is in the res/layout directory. Here's the code in full: [CODE]
android|android-layout
0
2015-03-01T22:31:43.843Z
2,015
3
22
6
58
1
269
26
2
3
true
false
false
false
false
false
zero
28,800,057
Looping through Methods & Threads
<p>On the startup of the activity I would like to loop through the below methods. I want to only move to the next method once the each method or thread had finished. Once the Check game method has finished I would like the loop to start again.</p> <p>How can I achieve this? </p> <p>Load game method () Runnable timer ...
On the startup of the activity I would like to loop through the below methods. I want to only move to the next method once the each method or thread had finished. Once the Check game method has finished I would like the loop to start again. How can I achieve this? Load game method () Runnable timer (Thread) Check game ...
java|multithreading|android-activity|android-asynctask
0
2015-03-01T22:37:26.750Z
2,015
3
22
6
110
2
329
33
4
0
false
false
false
false
false
false
zero
28,800,078
android dialog needs to be tapped twice. Why?
<p>I am running into a weird bug. Basically I have a edittext box that triggered a time control as below:</p> <pre><code>&lt;EditText android:id="@+id/editCourseTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@+id/editCourseDate" android:layo...
I am running into a weird bug. Basically I have a edittext box that triggered a time control as below: [CODE] And here is the code [CODE] the call [CODE] The code works, but it has an annoyance I need to tap the box twice to get the timepickerdiadlg to show up. Does anyone know why? I copy this code from another thread...
android|dialog|android-edittext
0
2015-03-01T22:39:37.657Z
2,015
3
22
6
124
0
376
45
3
3
true
true
false
false
false
false
zero
28,800,080
Eclipse Will Not Generate R.Java In Linux
<p>as stated in the title. I can not get Eclipse to generate an R.java file. It fails immediately after the creation of the project. I have read around and fixes have been stated as such: </p> <ol> <li>Clean Project</li> <li>fix android project</li> <li>make sure all res/ files are lower case</li> <li>make sure xml fi...
as stated in the title. I can not get Eclipse to generate an R.java file. It fails immediately after the creation of the project. I have read around and fixes have been stated as such: Clean Project fix android project make sure all res/ files are lower case make sure xml files are clean and no errors make sure Build T...
java|android|linux|eclipse
0
2015-03-01T22:39:42.323Z
2,015
3
22
6
61
1
1,049
41
4
0
false
false
false
false
false
false
zero
28,800,238
White bar appears behind progress indicator
<p>My loading circle works fine but has a white box behind it as seen <a href="http://gyazo.com/a5e5d750f8b5ac0bc362d7625beef420" rel="nofollow">here</a>. I have spent a few hours searching for solutions and all of the SO posts I've found suggest an implementation very similar to the one I've used. I also tried applyin...
My loading circle works fine but has a white box behind it as seen here . I have spent a few hours searching for solutions and all of the SO posts I've found suggest an implementation very similar to the one I've used. I also tried applying a custom theme to the dialog and setting transparency but this did nothing. I'm...
android|android-progressbar|indicator
1
2015-03-01T22:53:43.400Z
2,015
3
22
6
448
1
680
43
3
2
true
false
false
false
false
false
low
28,800,262
Android RecycleView: Adding dynamic views
<p>I have decided to upgrade my code to use RecyclerView now instead of the list I am using now.</p> <p>As I understand the following is how it normally goes:</p> <ul> <li>onCreateViewHolder - this inflates a view, and does the findviewbyid and returns it as a ViewHolder object for the view</li> <li>onBindViewHolder ...
I have decided to upgrade my code to use RecyclerView now instead of the list I am using now. As I understand the following is how it normally goes: onCreateViewHolder - this inflates a view, and does the findviewbyid and returns it as a ViewHolder object for the view onBindViewHolder - this assigns the view holder val...
android
0
2015-03-01T22:56:02.820Z
2,015
3
22
6
463
1
772
41
1
0
false
false
false
false
false
false
zero
28,800,273
Geoquery to populate a ListView/RecyclerView
<p>I'm developing an Android App with Firebase as a backend. So far it worked very smoothly and I loved it, but now I encountered a major roadblock. The app has to search for deals around a certain location and then populate a <code>ListView</code> (or a <code>RecyclerView</code>) accordingly. I've already included Geo...
I'm developing an Android App with Firebase as a backend. So far it worked very smoothly and I loved it, but now I encountered a major roadblock. The app has to search for deals around a certain location and then populate a ListView (or a RecyclerView ) accordingly. I've already included Geofire in my Firebase structur...
android|listview|firebase|android-recyclerview|geofire
2
2015-03-01T22:57:25.747Z
2,015
3
22
6
1,397
1
883
44
5
1
true
false
false
false
false
false
low
28,800,289
Android Studio on a Mac: log messages not shown
<p>Android Studio on my OS X Yosemite very often stops displaying log messages written by my app under development.</p> <p>If I go to the ADB logs tab I see a plenty of different error messages:</p> <p>1) Broken pipe:</p> <pre><code>ddmlib: Broken pipe java.io.IOException: Broken pipe </code></pre> <p>2) null</p> ...
Android Studio on my OS X Yosemite very often stops displaying log messages written by my app under development. If I go to the ADB logs tab I see a plenty of different error messages: 1) Broken pipe: [CODE] 2) null [CODE] 3) Closed connections [CODE] 4) Unauthorized device [CODE] 5) EOF [CODE] It would be funny if thi...
android|macos
0
2015-03-01T22:59:18.797Z
2,015
3
22
6
506
0
1,172
47
2
5
true
true
false
false
false
false
zero
28,800,387
Get friends using my app returns empty answer on android
<p>Using a new app im creating, right now still not in production, I try to get my friends who also use the app. I have one friends listed for now as administrator, and one as a tester, I would expect to see them both in the returned data in v2 of facebook graph, yet result remains empty, does anyone has any idea why...
Using a new app im creating, right now still not in production, I try to get my friends who also use the app. I have one friends listed for now as administrator, and one as a tester, I would expect to see them both in the returned data in v2 of facebook graph, yet result remains empty, does anyone has any idea why?
android|facebook|facebook-graph-api
0
2015-03-01T23:09:42.007Z
2,015
3
23
6
47
1
316
56
3
0
false
false
false
false
false
false
zero
28,800,399
Slider in Ionic Framework
<p>To make everything short, how to add a slider in Ionic Framework? I will greatly appreciate if you can provide me some code example</p> <p>I need something similar to this <a href="http://jqueryui.com/slider/" rel="nofollow">http://jqueryui.com/slider/</a></p> <p>Thank you in advance!</p>
To make everything short, how to add a slider in Ionic Framework? I will greatly appreciate if you can provide me some code example I need something similar to this http://jqueryui.com/slider/ Thank you in advance!
android|html|frameworks|ionic-framework
-1
2015-03-01T23:10:34.670Z
2,015
3
23
6
366
2
214
25
4
0
false
false
false
false
false
true
negative
28,800,440
Android - Play (mp3) from memory while streaming
<p>Sorry about the weird title, I couldn't think of anything better. In my Android App I want to stream an .mp3 file from an http server, which requires basic authentication. The task is to download the data and save it to the sdcard while playing. (Basicly streaming an mp3 from an http server but also saving the file)...
Sorry about the weird title, I couldn't think of anything better. In my Android App I want to stream an .mp3 file from an http server, which requires basic authentication. The task is to download the data and save it to the sdcard while playing. (Basicly streaming an mp3 from an http server but also saving the file) I ...
java|android|audio|stream|mp3
2
2015-03-01T23:15:48.600Z
2,015
3
23
6
451
0
812
48
5
0
false
true
false
false
false
false
low
28,800,449
Best approach for creating a reusable object to get users location?
<p>I have an app which currently consists of 2 activities. Inside the first activity there is a <code>Fragment</code> which itself contains a <code>MapFragment</code>. The other activity contains a <code>ViewPager</code> which holds two fragments, one of which is also a <code>Fragment</code> that itself holds a <code>M...
I have an app which currently consists of 2 activities. Inside the first activity there is a Fragment which itself contains a MapFragment . The other activity contains a ViewPager which holds two fragments, one of which is also a Fragment that itself holds a MapFragment . In both fragments that contain the MapFragment ...
android|android-fragments|location|google-play-services
0
2015-03-01T23:17:01.443Z
2,015
3
23
6
68
2
765
67
4
0
false
false
false
false
false
false
zero
28,800,451
Change Checkbox colorAccent at runtime programmatically
<p>I'm creating an ordinary Checkbox view:</p> <pre><code>&lt;CheckBox android:layout_width=&quot;wrap_content&quot; android:layout_height=&quot;wrap_content&quot;/&gt; </code></pre> <p><img src="https://i.stack.imgur.com/wDUWr.png" alt="Enter image description here" /></p> <p>This light green (#A5D6A7) is due ...
I'm creating an ordinary Checkbox view: [CODE] This light green (#A5D6A7) is due the accent color defined in the main style: [CODE] I already found that I can't change this style at runtime: How to set colorAccent in code? I want to change this color on a specific Checkbox, not globally over the app. Can I do it withou...
android|checkbox|colors|android-drawable|android-styles
15
2015-03-01T23:17:35.607Z
2,015
3
23
6
10,002
4
408
55
5
2
true
false
true
false
true
false
medium
28,800,453
MPAndroidChart compiling error with Proguard
<p>When I include the latest library (2.0.7) using gradle and try to compile I get a warning from proguard, so I can't complie any more:</p> <pre><code>Warning:com.github.mikephil.charting.charts.LineChart$DefaultFillFormatter: can't find referenced field 'boolean mStartAtZero' in program class com.github.mikephil.cha...
When I include the latest library (2.0.7) using gradle and try to compile I get a warning from proguard, so I can't complie any more: [CODE] According to docs this is often an inconsistency while compiling, and I've tried to clean my project and recompile several times, but with same problem. Probably it's some problem...
android|android-studio|gradle|proguard|mpandroidchart
1
2015-03-01T23:17:41.270Z
2,015
3
23
6
907
2
416
44
5
1
true
false
false
false
false
false
low
28,800,512
Working with fragments inside viewpager - android
<p>I have problem with position in my viewpager. I have container layout for my fragments that has button. Some fragments have picture, but some of them don't. I want to show button if fragment contains image. I know there is problem with my position that Container sends to fragment, but how to handle position in conta...
I have problem with position in my viewpager. I have container layout for my fragments that has button. Some fragments have picture, but some of them don't. I want to show button if fragment contains image. I know there is problem with my position that Container sends to fragment, but how to handle position in containe...
android|android-fragments|android-viewpager|fragment|android-fragmentactivity
0
2015-03-01T23:25:03.257Z
2,015
3
23
6
282
1
731
49
5
2
true
false
false
false
false
false
zero
28,800,649
Card view material ripple?
<p>I'm developing a material design interface. I have cards that I want to have the ripple effect when clicked. I've done what google says and nothing happens. Here's my code:</p> <pre><code>&lt;android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto" android...
I'm developing a material design interface. I have cards that I want to have the ripple effect when clicked. I've done what google says and nothing happens. Here's my code: [CODE]
android|material-design
2
2015-03-01T23:42:31.100Z
2,015
3
23
6
3,002
2
179
26
2
1
true
false
true
false
false
false
low
28,800,717
Call recording, really strange behaviour
<p>The task is to record a phone call.</p> <p>Everything else apart from the following code is working: incoming call event, outgoing call event, call rejected and so on, so my problem is during the audio recording.</p> <p>The code:</p> <pre class="lang-java prettyprint-override"><code>mediaRecorder = new MediaRecor...
The task is to record a phone call. Everything else apart from the following code is working: incoming call event, outgoing call event, call rejected and so on, so my problem is during the audio recording. The code: [CODE] Here comes the strange inexplicable part: Person A calls Person B. In Person A phone the recorded...
android|call|audio-recording
1
2015-03-01T23:50:59.153Z
2,015
3
23
6
132
0
1,126
40
3
3
true
true
false
false
false
false
low
28,800,735
AsyncTask onDraw method with time delay
<p>I want to make an activity where user at the beginning will see first statement then after 2 sec, there'll be second statement and at last there show up timer with progress drawn on canvas in onDraw method. </p> <p>Timer should only last 5 seconds, but when I add those two 2 sec breaks, user will see only last sec...
I want to make an activity where user at the beginning will see first statement then after 2 sec, there'll be second statement and at last there show up timer with progress drawn on canvas in onDraw method. Timer should only last 5 seconds, but when I add those two 2 sec breaks, user will see only last second (5-2-2). ...
android|android-asynctask|ondraw
0
2015-03-01T23:53:55.033Z
2,015
3
23
6
439
0
558
39
3
1
true
true
false
false
false
false
zero
28,800,754
DialogFragment mysterious Null Pointer Exception
<p>I cannot seem to make head or tail from the stack trace eclipse is giving me. The code used to work. I am not sure what I changed. But now when I launch the dialog fragment, the app crashes with the following error log. </p> <pre><code>FATAL EXCEPTION: main Process: com.company.appname, PID: 8962 java.lang.NullPo...
I cannot seem to make head or tail from the stack trace eclipse is giving me. The code used to work. I am not sure what I changed. But now when I launch the dialog fragment, the app crashes with the following error log. [CODE] My code is massive so I am not sure which portion to show. So maybe someone has seen this mys...
java|android|eclipse|fragment|android-dialogfragment
4
2015-03-01T23:56:26.320Z
2,015
3
23
6
1,393
2
807
48
5
2
true
false
false
false
false
false
low
28,800,799
Android: different titles, same listview
<p>I have 2 activities showing the same listview which is constructed though an adapter. My problem is that I want different titles in the ActionBar, I'm using AppCompat theme. </p> <pre><code>public class MyAdapter extends BaseAdapter implements ListAdapter { (...) } </code></pre> <p>How can I do the following comma...
I have 2 activities showing the same listview which is constructed though an adapter. My problem is that I want different titles in the ActionBar, I'm using AppCompat theme. [CODE] How can I do the following command to set the title of the activity, if to do so I have to extends the Class from ActionBar and on MyAdapte...
android|android-listview
0
2015-03-02T00:00:37.647Z
2,015
3
0
0
40
1
365
40
2
2
true
false
false
false
false
false
zero
28,800,846
Android sdk, Check if two or more files exist on sdcard
<p>So i have been looking a bit on the web and i found nothing really; I need a simple piece of code that will let me check if two files exist, If one of them does not, make a toast message error. Heres what i have tried (I thought it would work, lol)</p> <pre><code>if((file1 &amp;&amp; file2.exists())){ ... ...
So i have been looking a bit on the web and i found nothing really; I need a simple piece of code that will let me check if two files exist, If one of them does not, make a toast message error. Heres what i have tried (I thought it would work, lol) [CODE] RE-MAKE All i forgot was an extra ".exists()" on file1
java|android|android-studio
0
2015-03-02T00:06:43.063Z
2,015
3
0
0
75
2
310
55
3
1
true
false
false
false
false
false
zero
28,800,882
xamarin android webview no longer retrieves page served locally with httplistener
<p>We have a xamarin android app that contains a httplistener that serves up html, js, css and json calls, to a single page app running in a full screen webview. As of Xamarin 3.5 onwards the webview fails to retrieve this localhost address which we run on port 31316. Prior to this release this was functioning correctl...
We have a xamarin android app that contains a httplistener that serves up html, js, css and json calls, to a single page app running in a full screen webview. As of Xamarin 3.5 onwards the webview fails to retrieve this localhost address which we run on port 31316. Prior to this release this was functioning correctly. ...
android|webview|xamarin
5
2015-03-02T00:11:23.530Z
2,015
3
0
0
660
0
603
81
3
1
true
true
false
false
false
false
low
28,800,964
Android Beam json file
<p>I have a simple activity that launches a file chooser and then sends the file via Android beam like so:</p> <pre><code>@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode==0 &amp;&amp; resultCode==RESULT_OK) { adapter....
I have a simple activity that launches a file chooser and then sends the file via Android beam like so: [CODE] The activity is able to correctly beam images and .txt files. However, I get "Beam did not complete" when I beam .json files. I thought it was because, there's no application on the receiver that views json fi...
android|json|nfc|android-json|android-beam
3
2015-03-02T00:22:19.627Z
2,015
3
0
0
1,215
1
710
22
5
2
true
false
false
false
false
false
low
28,800,982
read content from url when incoming call
<p>I am trying to find out how to get string from url during incoming call, but it always ends with error "Unfortunatelly stopped". What am I doing wrong?</p> <pre><code>package com.example.detectincomingcall; import java.io.IOException; import org.apache.http.client.ClientProtocolException; import org.apache.http.c...
I am trying to find out how to get string from url during incoming call, but it always ends with error "Unfortunatelly stopped". What am I doing wrong? [CODE] my log file: [CODE]
java|android
0
2015-03-02T00:24:17.783Z
2,015
3
0
0
264
1
178
40
2
2
true
false
false
false
false
false
zero
28,800,993
How to port C library into into Android studio JNI folder
<p>I have a program, which I have compiled using the arm toolchain in NDK. Now I want to use it as a library; put it in the JNI folder and call the functions from my main activity. I want to know how to go about this efficiently and intelligently. I copied all the files, and folders over to the JNI folder. What do I do...
I have a program, which I have compiled using the arm toolchain in NDK. Now I want to use it as a library; put it in the JNI folder and call the functions from my main activity. I want to know how to go about this efficiently and intelligently. I copied all the files, and folders over to the JNI folder. What do I do ab...
android-ndk|java-native-interface|arm|cross-platform|embedded-linux
0
2015-03-02T00:25:34.413Z
2,015
3
0
0
845
1
1,564
57
5
2
true
false
false
false
false
false
zero
28,801,160
Turn on the flashlight in android Lollipop Programatically
<p>I have been trying to turn on Flashlight in android lollipop but the camera Api is deprecated and hence donot turn on the Flashlight. Has anyone tried doing that?</p>
I have been trying to turn on Flashlight in android lollipop but the camera Api is deprecated and hence donot turn on the Flashlight. Has anyone tried doing that?
android-5.0-lollipop|flashlight
3
2015-03-02T00:47:52.140Z
2,015
3
0
0
1,066
1
162
58
2
0
false
false
false
false
false
false
low
28,801,183
Is there a Slide Image Gallery for Xamarin Android?
<p>I am looking for a image gallery to use on Xamarin Android for a app i am creating but cant cant find any Gallery that slides left or right, Cant even find any blogs post on creating it to</p> <p>I found a this one for Android its Called Android Image Slider</p> <pre><code>https://github.com/daimajia/AndroidImageS...
I am looking for a image gallery to use on Xamarin Android for a app i am creating but cant cant find any Gallery that slides left or right, Cant even find any blogs post on creating it to I found a this one for Android its Called Android Image Slider [CODE] But I cant open it Xamarin Studio Also I am using the free ve...
xamarin|xamarin.android|xamarin-studio
1
2015-03-02T00:51:38.887Z
2,015
3
0
0
4,398
1
394
51
3
1
true
false
true
false
false
false
low
28,801,325
LruCache returning wrong bitmaps for specified key
<p>I am very new to Android development. </p> <p>I am running into issues getting the correct bitmap from my LruBitmapCache. I use the UUID to generate a unique Id, I don't use a URL because I am generating the bitmap on a canvas. (I'm copying <code>getDrawingCache()</code> from my view to a new bitmap (using copy) th...
I am very new to Android development. I am running into issues getting the correct bitmap from my LruBitmapCache. I use the UUID to generate a unique Id, I don't use a URL because I am generating the bitmap on a canvas. (I'm copying getDrawingCache() from my view to a new bitmap (using copy) then storing the copy into ...
android|bitmap|android-bitmap|android-lru-cache
0
2015-03-02T01:12:08.080Z
2,015
3
1
0
118
1
674
50
4
0
false
false
false
false
false
false
zero
28,801,387
Take Image from Camera and Gallery Dialog
<p>I want to make image chooser for Android to take an image from camera or gallery. I found sample code by creating a custom dialog, but want to make something like this:</p> <p><a href="https://dl.dropboxusercontent.com/u/38871046/media-20150302.png" rel="nofollow">Image chooser dialog in Splitwise</a></p> <p>How ...
I want to make image chooser for Android to take an image from camera or gallery. I found sample code by creating a custom dialog, but want to make something like this: Image chooser dialog in Splitwise How to make dialog like that? Can it compatible with API 10? *Note: Sorry I can't post images (not enough reputation)...
android|android-intent|android-camera|android-gallery
2
2015-03-02T01:23:14.837Z
2,015
3
1
0
487
0
346
41
4
0
false
true
false
false
false
false
low
28,801,412
How do I parse and display things from an XML in an Android application?
<p>The XML file I want to parse is</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;items&gt; &lt;item&gt; &lt;question&gt;Question?&lt;/question&gt; &lt;answer1&gt;Answer 1 is fun&lt;/answer1&gt; &lt;answer2&gt;Answer 2 is too&lt;/answer2&gt; &lt;answer3&gt;Answer 3 ...
The XML file I want to parse is [CODE] The code I have written so far may or may not be completely off. This is my first time writing a parser like this. I've been told there are many ways so please if there are other suggestions, feel free to let me know! :) [CODE] Any help would be amazing. I do know that this code i...
android|xml|parsing|xmlresourceparser
0
2015-03-02T01:28:17.510Z
2,015
3
1
0
49
2
554
72
4
2
true
false
false
false
false
false
zero
28,801,488
My program keeps crashing after my splash screen. Why?
<p>I am working on an android program. It shows the splash screen but then crashes before it gets to the main activity. These are the errors:</p> <pre><code>03-01 22:48:10.473 2657-2657/com.example.user.checkbox E/AndroidRuntime? FATAL EXCEPTION: main Process: com.example.user.checkbox, PID: 2657 java.lang....
I am working on an android program. It shows the splash screen but then crashes before it gets to the main activity. These are the errors: [CODE] This is the vicinity of the exception. The last line is where the exception happens. I don't get it, I declared adapter.: [CODE]
android
0
2015-03-02T01:40:04.810Z
2,015
3
1
0
251
1
274
54
1
2
true
false
false
false
false
false
zero
28,801,557
Android split Text / Numbers from SMS string
<p>im making a gps tracking program and i receive an sms message with the following content </p> <p>smsMessage="http://maps.google.com/maps?q=42.396068,13.45201,17 phone is outside the area"</p> <p>Could anybody be so kind and tell me how i can split out only the needed longitude and the latitude from the sms strin...
im making a gps tracking program and i receive an sms message with the following content smsMessage="http://maps.google.com/maps?q=42.396068,13.45201,17 phone is outside the area" Could anybody be so kind and tell me how i can split out only the needed longitude and the latitude from the sms string ? thanx in advance
android|string|sms|strip
1
2015-03-02T01:49:24.633Z
2,015
3
1
0
608
2
318
44
4
0
false
false
false
false
false
false
low
28,801,559
Profile query returns 0 rows
<p>I'm using ContactsContract.Profile.CONTENT_URI to attempt to get the user's profile info. It runs but returns zero rows.</p> <p>I suspect this is a permissions problem where the permission I'm setting for my app is not being seen by the provider. I have (among other permissions):</p> <pre><code>&lt;uses-permissi...
I'm using ContactsContract.Profile.CONTENT_URI to attempt to get the user's profile info. It runs but returns zero rows. I suspect this is a permissions problem where the permission I'm setting for my app is not being seen by the provider. I have (among other permissions): [CODE] I've tried removing both of these permi...
android|profile
1
2015-03-02T01:49:40.297Z
2,015
3
1
0
856
1
560
28
2
2
true
false
false
false
false
false
low