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
37,994,244
Android GLSurfaceView Saving bitmap causes exception
<p>I've modified <a href="https://github.com/googlesamples/android-MediaEffects" rel="nofollow">this project</a>, which uses GLSurfaceView and Effects to show a ViewPager with some of the effects applied to an image.</p> <p>Additionally, I created a overlay bitmap, that is put over every image after the effect has be...
I've modified this project , which uses GLSurfaceView and Effects to show a ViewPager with some of the effects applied to an image. Additionally, I created a overlay bitmap, that is put over every image after the effect has been applied. Up this point, the app is working fine. But now I have to save the displayed image...
android|exception|bitmap|glsurfaceview
0
2016-06-23T14:16:20.660Z
2,016
6
14
3
303
1
1,160
52
4
5
true
false
false
false
false
false
zero
37,995,628
How to implement Material Design Choreographing surface animations
<p>I wonder how to implement the Choreographing surface animations (like <a href="https://material.google.com/motion/choreography.html#choreography-creation">https://material.google.com/motion/choreography.html#choreography-creation</a> in Choreographic surface section).</p> <p>I actually used both Alpha animation and...
I wonder how to implement the Choreographing surface animations (like https://material.google.com/motion/choreography.html#choreography-creation in Choreographic surface section). I actually used both Alpha animation and Translate animation but it seems like it is not exactly what we can see on the material design site...
android|animation|material-design
12
2016-06-23T15:16:12.900Z
2,016
6
15
3
559
1
373
66
3
0
false
false
false
false
true
false
medium
37,891,304
converting a drawable to a bitmap giving me an error
<p>i want to convert a drawable from an object to a bitmap, but when i try to use this </p> <pre><code> Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), cardWriter.getCardImage()); </code></pre> <p>it gives me an error wrong second argument expecting 'int' found 'drawable' but everything i...
i want to convert a drawable from an object to a bitmap, but when i try to use this [CODE] it gives me an error wrong second argument expecting 'int' found 'drawable' but everything i read says it should take a drawable. When i begin to write cardWriter.getCardImage() android studios code completion says its a drawable...
android|bitmap|android-context
0
2016-06-17T22:35:18.877Z
2,016
6
22
4
815
1
521
52
3
3
true
false
false
false
false
false
zero
37,941,530
How to make a video full screen using an Exoplayer without stretching it
<p>I'm using an ExoPlayer to show videos, currently I just maintain the aspect ratio as default but this isn't ideal as I want the videos full screen.</p> <pre><code> for (Listener listener : mListeners) { listener.onVideoSizeChanged(width, height, pixelWidthHeightRatio); } </code></pre> <p>I've tr...
I'm using an ExoPlayer to show videos, currently I just maintain the aspect ratio as default but this isn't ideal as I want the videos full screen. [CODE] I've tried setting the video to take the entire width of the screen however this just stretches and distorts the video. Any idea how to scale the video up while main...
android|android-video-player|exoplayer
4
2016-06-21T10:09:36.390Z
2,016
6
10
1
1,839
1
348
72
3
1
true
false
false
false
false
false
low
37,709,156
How to change the `blank gray squares` in OSMdroid maps when the map cannot be loaded?
<p>I want to change the "raw" squares to a png file stating "you should either download offline maps or go online" when the maps cannot be loaded in osmdroid. How can I achieve this? I couldn't find a file in the library that has this asset</p>
I want to change the "raw" squares to a png file stating "you should either download offline maps or go online" when the maps cannot be loaded in osmdroid. How can I achieve this? I couldn't find a file in the library that has this asset
java|android|maps|osmdroid
0
2016-06-08T17:30:28.943Z
2,016
6
17
2
48
1
237
86
4
0
false
false
false
false
false
false
zero
37,729,509
How to parse JavaScript's DataObject from JSON with Android?
<p>I have this field in the JSON that I receive from the server:</p> <pre><code>/Date(1459461600000)/ </code></pre> <p>How can I cast the string?</p>
I have this field in the JSON that I receive from the server: [CODE] How can I cast the string?
android|json|date|casting
0
2016-06-09T14:56:36.473Z
2,016
6
14
3
48
1
95
60
4
1
true
false
false
false
false
false
zero
37,769,869
Regex Help: Excluding characters
<p>I've been working on a scripting language used specifically for Tiled Map Editor. Anyways, I've a string <code>"[1]{x: 0, y: 0}"</code>. What I want to do is remove everything except for whatever number is in the brackets (<code>[...]</code>) using regex with the function <code>replaceAll("regex", "")</code>, if pos...
I've been working on a scripting language used specifically for Tiled Map Editor. Anyways, I've a string "[1]{x: 0, y: 0}" . What I want to do is remove everything except for whatever number is in the brackets ( [...] ) using regex with the function replaceAll("regex", "") , if possible.
java|android|regex
0
2016-06-12T01:13:10.270Z
2,016
6
1
6
48
1
288
32
3
0
false
false
false
false
false
false
zero
37,786,481
Android video is rotated when play from web server
<p>I'm playing video from web server, the video is playing on videoview nicely, but some samsung mobile playing the video on 90 degree rotation. But the same video playing without ration on others devices.</p> <pre><code>public void playVideo(String videoPath) { try { vidFull.setOnPreparedListener(new Medi...
I'm playing video from web server, the video is playing on videoview nicely, but some samsung mobile playing the video on 90 degree rotation. But the same video playing without ration on others devices. [CODE] Please help, thanks in advance.
android|android-video-player|android-videoview
0
2016-06-13T09:44:13.223Z
2,016
6
9
0
48
1
241
50
3
1
true
false
false
false
false
false
zero
37,811,081
Handling Direct Update with navigation to native page in IBM Mobile first
<p>I am developing a project, in which i need to call a native page in wlCommonInit()</p> <pre><code>function wlCommonInit(){ WL.NativePage.show(nativePageClassName, backFromNativePage, params); } </code></pre> <p>I want my project to receive the <strong>direct update</strong> with <strong>persession</strong> mod...
I am developing a project, in which i need to call a native page in wlCommonInit() [CODE] I want my project to receive the direct update with persession mode. So to connect with the Mobile First Server, I have called WL.Client.connect() [CODE] More over I want to handle the direct update so I have added the required co...
javascript|android|ios|ibm-mobilefirst
0
2016-06-14T11:44:40.113Z
2,016
6
11
1
48
1
524
73
4
3
true
false
false
false
false
false
zero
37,823,011
How to create a view that can be aligned form its middle?
<p>I created a custom view that is a simple textview under a vertical line. The line is in the center of the view. This is the XML code :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/vertBarLayout" ...
I created a custom view that is a simple textview under a vertical line. The line is in the center of the view. This is the XML code : [CODE] The text width can change, and so the important part for alignement is the vertical line. How can I set the position of this view from the vertical line ? If this cannot be, is t...
android|view|alignment
1
2016-06-14T22:14:52.050Z
2,016
6
22
1
48
1
374
57
3
1
true
false
false
false
false
false
low
37,894,454
Android ListView Views Not Being Conditioned
<p>I am using a Custom Array Adapter to populate my Chat Screen. To this, I am using a condition to see who is the sender, and depending on that, I am assigning the design (Whether red(Received Message) or blue(Sent Message).</p> <p>However, when I first send the message, it does not check the condition and applies th...
I am using a Custom Array Adapter to populate my Chat Screen. To this, I am using a condition to see who is the sender, and depending on that, I am assigning the design (Whether red(Received Message) or blue(Sent Message). However, when I first send the message, it does not check the condition and applies the default l...
android|listview|arraylist
0
2016-06-18T07:27:26.370Z
2,016
6
7
5
48
1
1,171
44
3
1
true
false
false
false
false
false
zero
37,900,103
empty json when I encode an array with few dozen of objects from server
<h2>I have some problems with communication from server to my android app. When I send a json in which there is an array with few dozen of data, something goes wrong.<br></h2> <p>This is what the server returns when there aren't record that satisfies my conditions:<br> It is displayed with <code>Log.e(TAG, json.toStri...
I have some problems with communication from server to my android app. When I send a json in which there is an array with few dozen of data, something goes wrong. This is what the server returns when there aren't record that satisfies my conditions: It is displayed with Log.e(TAG, json.toString()); {"comuni":[]} This i...
php|android|arrays|json
-1
2016-06-18T18:04:41.547Z
2,016
6
18
5
48
1
1,130
71
4
4
true
false
false
false
false
true
negative
37,970,818
Can we add button inside contact picker intent?
<p>I want to use the contact picker intent in my app. I also want to have functionality of adding a contact from the same intent. I searched for if we can combine the contact picker intent and the insert intent but it seems not possible. So Can we add a button inside the contact picker intent. How can we do it? Thank y...
I want to use the contact picker intent in my app. I also want to have functionality of adding a contact from the same intent. I searched for if we can combine the contact picker intent and the insert intent but it seems not possible. So Can we add a button inside the contact picker intent. How can we do it? Thank you....
android|android-intent|android-contacts|contactpicker
0
2016-06-22T14:19:39.363Z
2,016
6
14
2
48
1
321
47
4
0
false
false
false
false
false
false
zero
38,025,799
Add 100% Filled image asset in android studio
<p>i am try to add some icon PNG images to android studio as image asset.</p> <p>but its showing as little transparent. (see image)</p> <p>how to add image asset as full filled as image asset in android studio? any idea? </p> <p><a href="http://i.stack.imgur.com/mCoTF.png" rel="nofollow">see this image</a></p>
i am try to add some icon PNG images to android studio as image asset. but its showing as little transparent. (see image) how to add image asset as full filled as image asset in android studio? any idea? see this image
android-studio
1
2016-06-25T06:43:12.677Z
2,016
6
6
5
48
1
218
45
1
0
false
false
false
false
false
false
low
38,039,186
How can i rotate image and video if it was captured in landscape mode?
<ul> <li>I have an ImageView and VideoView on my screen. </li> <li>My Activity is always in a portrait mode (and i can't rotate it because of another elements).</li> </ul> <p>How can i rotate image/video if it was captured in landscape mode?</p> <p>Show like on this image <img src="https://i.imgur.com/fH080lD.png" al...
I have an ImageView and VideoView on my screen. My Activity is always in a portrait mode (and i can't rotate it because of another elements). How can i rotate image/video if it was captured in landscape mode? Show like on this image instead of
android|imageview
0
2016-06-26T13:54:30.033Z
2,016
6
13
6
48
1
243
70
2
0
false
false
false
false
false
false
zero
38,045,206
setDataSource from passed string not detected
<p>I created a listview which contain a url such as abc:554/user=admin&amp;password=&amp;channel=1</p> <p>When I click the listview,the url would be passed onto the next class and use it for setDataSource.But the problem I am having is that setDataSource does not detect the url.I have tried to hardcode the url and use...
I created a listview which contain a url such as abc:554/user=admin&password=&channel=1 When I click the listview,the url would be passed onto the next class and use it for setDataSource.But the problem I am having is that setDataSource does not detect the url.I have tried to hardcode the url and use Toast to display t...
string|media-player|android-mediaplayer|rtsp
0
2016-06-27T02:47:29.027Z
2,016
6
2
0
48
1
520
45
4
2
true
false
false
false
false
false
zero
37,830,680
Getting wrong option menu on particular position in listview
<p>I have listview : As shown in image below,when user press downarrow option menu is pop-up there will be multiple post(i.e like Facebook), option-menu pop-up with different option If user is owner of that post then menu option will be Edit post,delete post if user is not owner than menu option will be Spam post I hav...
I have listview : As shown in image below,when user press downarrow option menu is pop-up there will be multiple post(i.e like Facebook), option-menu pop-up with different option If user is owner of that post then menu option will be Edit post,delete post if user is not owner than menu option will be Spam post I have 2...
android|listview|listviewitem|optionmenu
0
2016-06-15T08:57:46.047Z
2,016
6
8
2
304
1
601
60
4
3
true
false
false
false
false
false
zero
37,835,298
AppCompat - Activity.startSupportActionMode not working on pre-ICS devices
<p>This is how it look's in Android 4.4: <a href="https://i.stack.imgur.com/GH0so.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GH0so.png" alt="enter image description here"></a></p> <p>And in Android 3.2, it look's like this: <a href="https://i.stack.imgur.com/VLCIx.png" rel="nofollow noreferrer"...
This is how it look's in Android 4.4: And in Android 3.2, it look's like this: The two buttons is working in 3.2, but not appearing. I tried to set actionModeBackground to @android:color/white in my theme, but nothing changes in the ActionMode. My code: [CODE] R.menu.action_mode_test: [CODE] Active theme: [CODE]
android
1
2016-06-15T12:19:47.940Z
2,016
6
12
2
304
1
313
74
1
3
true
false
false
false
false
false
low
37,871,664
Updating MasterDetailPage's Header on Android using Prism for Xamarin Forms
<p>I have a MasterDetailPage (called RootPage) and ContentPage (called MainPage).ContentPage's Title property is set to 'This is main page' and I am navigating using NavigationService with the following code:</p> <pre><code>await navigationService.NavigateAsync("RootPage/MainPage"); </code></pre> <p>What I expect to ...
I have a MasterDetailPage (called RootPage) and ContentPage (called MainPage).ContentPage's Title property is set to 'This is main page' and I am navigating using NavigationService with the following code: [CODE] What I expect to see is ContentPage's Title in the MasterDetail's header, but it says 'MainActivity' everyt...
android|navigation|xamarin.forms|prism
0
2016-06-17T01:16:15.077Z
2,016
6
1
4
304
1
439
75
4
1
true
false
false
false
false
false
zero
37,981,072
How to achieve text poping into the toolbar when scrolling, like in the Twitter app
<p>Looking into making a text transition/animation into the toolbar as can be seen in the Twitter app below: When the username goes behind the toolbar it "pops" into the toolbar.</p> <p>Alternatively, making the text scroll behind the toolbar and stay there.</p> <p><img src="https://media.giphy.com/media/10hvFvF9I84H...
Looking into making a text transition/animation into the toolbar as can be seen in the Twitter app below: When the username goes behind the toolbar it "pops" into the toolbar. Alternatively, making the text scroll behind the toolbar and stay there.
android|android-toolbar|android-coordinatorlayout|android-collapsingtoolbarlayout
1
2016-06-23T01:57:16.027Z
2,016
6
1
3
304
1
248
83
4
0
false
false
false
false
false
false
low
37,608,955
Android override web view when http error occurs
<p>The web view that I am connecting to is capable of handling all request errors, but if a server error occurs, such as a 500 error, there is nothing I can do on the server side to make it gracefully handle the error. I want to add some code within the app so that if a fatal error occurs the app can handle it and give...
The web view that I am connecting to is capable of handling all request errors, but if a server error occurs, such as a 500 error, there is nothing I can do on the server side to make it gracefully handle the error. I want to add some code within the app so that if a fatal error occurs the app can handle it and give a ...
android|http
0
2016-06-03T07:54:42.083Z
2,016
6
7
4
560
1
739
48
2
1
true
false
false
false
false
false
zero
37,770,222
how do I Install android on Alcatel one touch fire that runs firefox-os?
<p>I have an Alcatel One Touch Fire, it runs Firefox OS. Actually the OS very buggy and the project is death. I'd like to install Android on it. how? Thanks</p>
I have an Alcatel One Touch Fire, it runs Firefox OS. Actually the OS very buggy and the project is death. I'd like to install Android on it. how? Thanks
android|smartphone|firefox-os|rom|alcatel-ot
-1
2016-06-12T02:41:56.247Z
2,016
6
2
6
1,584
1
153
72
5
0
false
false
false
false
false
true
negative
37,707,554
Cordova pruning error for android config.xml
<p>When I run <code>cordova build android</code> I get the following error:</p> <p><code>Error: Pruning at selector "widget" from "/Library/WebServer/Documents/app/app-name/platforms/android/res/xml/config.xml" went bad.</code></p> <p>I have tried reinstalling the Android platform several times, but no luck.</p> <p>...
When I run cordova build android I get the following error: Error: Pruning at selector "widget" from "/Library/WebServer/Documents/app/app-name/platforms/android/res/xml/config.xml" went bad. I have tried reinstalling the Android platform several times, but no luck. I am using Cordova 6.1.1, Android 5.1.1 and have upda...
android|xml|cordova|build|widget
4
2016-06-08T16:03:50.220Z
2,016
6
16
2
1,840
1
447
44
5
0
false
false
false
false
false
false
low
37,883,249
Android: How to add multiple edit text value to array
<p>I have three Edit Text on my activity and i will like to add each value to array if the Edit Text not empty.</p> <p>Here is what i want: EditText 1, EditText 2, EditText 3<br/></p> <pre><code>public static ArrayList&lt;String&gt; arrayValue = new ArrayList&lt;String&gt;(); public static ArrayList&lt;String&gt; ar...
I have three Edit Text on my activity and i will like to add each value to array if the Edit Text not empty. Here is what i want: EditText 1, EditText 2, EditText 3 [CODE] if edittext 1 not empty then [CODE] then finally: print the result this way: [CODE] so at the end of the day i want my result to look like this: [CO...
java|android|xamarin.android
1
2016-06-17T13:45:33.417Z
2,016
6
13
4
2,096
1
390
53
3
4
true
false
false
false
false
false
low
37,986,812
error retrieving information from server [df-dic-02] in android
<p><strong>I am doing in-app purchases first time. So please Guide me some good solution. I tried to delete and add playstore account clearing data etc. but nothing worked for me. So please give some good suggestions. Here is my problem.</strong></p> <p>I'm working with in-app purchase using third party API [link][1]<...
I am doing in-app purchases first time. So please Guide me some good solution. I tried to delete and add playstore account clearing data etc. but nothing worked for me. So please give some good suggestions. Here is my problem. I'm working with in-app purchase using third party API [link][1] [1]: https://github.com/anjl...
android|google-play|in-app-purchase|in-app-billing
0
2016-06-23T08:58:17.007Z
2,016
6
8
3
2,864
1
503
63
4
1
true
false
true
false
false
false
zero
38,033,916
retrofit 2 duplicate request
<p>can someone help me? im using retrofit 2 to send data with post method, but i'ts send 3 times.</p> <p>Here my service generator :</p> <pre><code>public class ServiceGenerators { private static final String TAG = ServiceGenerators.class.getSimpleName(); //private static HttpLoggingInterceptor loggingInterce...
can someone help me? im using retrofit 2 to send data with post method, but i'ts send 3 times. Here my service generator : [CODE] Kejadian service [CODE] here my process: [CODE] My log 06-26 06:27:39.640 17813-18294/ E/ServiceGenerators: http//myurl/api/kejadian 06-26 06:27:39.640 17813-18294 I/System: core_booster, ge...
android|http-post|retrofit2
0
2016-06-25T23:40:34.123Z
2,016
6
23
5
3,120
1
698
28
3
3
true
false
true
false
false
false
zero
37,662,066
Ifinite Scroll View for games in android studio
<p>i want to do a game in android studio but my problem is that i dont know how to do a scroll view. I search in the internet but i dont understand or it doesnt work for me. Someone can help me? i am very new in programing</p>
i want to do a game in android studio but my problem is that i dont know how to do a scroll view. I search in the internet but i dont understand or it doesnt work for me. Someone can help me? i am very new in programing
android|infinite-scroll
0
2016-06-06T16:06:59.927Z
2,016
6
16
0
49
1
219
47
2
0
false
false
false
false
false
false
zero
37,664,448
Image getting captured only in first fragment
<p>I have two fragments, in which i use <code>webview</code> to display some sites. In those sites, there are some images which i want to share and save, for this purpose, i am creating canvas using bitmap to save images to localstorage. </p> <p>But image is only getting created in fragment A, if i trigger to save ima...
I have two fragments, in which i use webview to display some sites. In those sites, there are some images which i want to share and save, for this purpose, i am creating canvas using bitmap to save images to localstorage. But image is only getting created in fragment A, if i trigger to save image from fragment B, the l...
android|image|android-fragments|canvas
0
2016-06-06T18:29:26.303Z
2,016
6
18
0
49
1
949
45
4
2
true
false
false
false
false
false
zero
37,700,980
Can a <MediaFile> starts reading before completion of video generation?
<p>We're putting up a test with an ad server:</p> <ul> <li>the basics of our app is that we generate a customized video ad depending on one user's input</li> <li>this video has a pre-defined URL on our server (CDN)</li> <li>this URL is stored in our VAST tag that we update on the fly</li> </ul> <p>The video is correc...
We're putting up a test with an ad server: the basics of our app is that we generate a customized video ad depending on one user's input this video has a pre-defined URL on our server (CDN) this URL is stored in our VAST tag that we update on the fly The video is correctly displayed on mobile device, but not instantly....
android|video|vast
0
2016-06-08T11:17:06.573Z
2,016
6
11
2
49
1
901
71
3
1
true
false
false
false
false
false
zero
37,748,339
setContentView only large layout
<p>My code:</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN); super.onCreate(savedInstanceState); setContentView(R.layout.activity_items); } </code></pre> <p>I have these layouts:</p> <ul> <li>activity_it...
My code: [CODE] I have these layouts: activity_items.xml activity_items.xml (large) When I run avd, I need that setContentView to use the large activity_items , but it uses the normal activity_items . How to do it?
android|android-activity|layout
-1
2016-06-10T12:29:42.427Z
2,016
6
12
4
49
1
214
32
3
1
true
false
false
false
false
true
negative
37,792,041
A button which allows an image to be shown in Android Studio
<p>I am building my application using Android Studio, this app can upload an image from raspberry to my emulator. It works fine. What I want to do now is uploading this image and showing it directly to the user without searching it in the gallery. I thought about creating another class and setting this image as a backg...
I am building my application using Android Studio, this app can upload an image from raspberry to my emulator. It works fine. What I want to do now is uploading this image and showing it directly to the user without searching it in the gallery. I thought about creating another class and setting this image as a backgrou...
java|android
1
2016-06-13T14:14:46.553Z
2,016
6
14
0
49
1
495
60
2
0
false
false
false
false
false
false
low
37,814,363
Adding a menu to an activity than a fragment
<p>I have a <code>MainActivity</code> along with a fragment. I have a refresh menu option that will refresh the data (Using <code>AsyncTask</code>). Is there any difference in inflating the refresh menu option in the fragment than in the MainActivity?</p> <p><strong>Note</strong>: This is in context with Udacity's Dev...
I have a MainActivity along with a fragment. I have a refresh menu option that will refresh the data (Using AsyncTask ). Is there any difference in inflating the refresh menu option in the fragment than in the MainActivity? Note : This is in context with Udacity's Developing Android Apps, Lesson 2.
java|android|android-fragments|menu
0
2016-06-14T14:06:59.310Z
2,016
6
14
1
49
1
299
44
4
0
false
false
false
false
false
false
zero
37,815,310
PreferenceCompatFragment null pointer when setting OnSharedPreferenceChangeListener
<p>I'm using mentioned <code>PreferenceCompatFragment</code> in my code but I have a problem with setting listener on changing settings.</p> <p>I have made an implementation of <code>OnSharedPreferenceChangeListener</code> in my <code>Activity</code> so I have tried to set mentioned listener in a moment when Fragment ...
I'm using mentioned PreferenceCompatFragment in my code but I have a problem with setting listener on changing settings. I have made an implementation of OnSharedPreferenceChangeListener in my Activity so I have tried to set mentioned listener in a moment when Fragment will be attached to view/container but all time I'...
android|sharedpreferences|settings|support-preference
0
2016-06-14T14:47:02.007Z
2,016
6
14
1
49
1
534
83
4
0
false
false
false
false
false
false
zero
37,844,146
Share Resources Among Multiple Android Source Sets
<p>I am currently working on an Android project with multiple source sets. </p> <p>My question is concerned with string resources.</p> <p>The majority of the string resources are in the <code>main/res/values</code> directory. </p> <p>There is an alternative source set called <code>foo</code> which overrides some of ...
I am currently working on an Android project with multiple source sets. My question is concerned with string resources. The majority of the string resources are in the main/res/values directory. There is an alternative source set called foo which overrides some of the string resources in main/res/values . This works ju...
android|android-resources
0
2016-06-15T19:27:02.550Z
2,016
6
19
2
49
1
1,204
50
2
0
false
false
false
false
false
false
zero
37,850,790
How to create a custom maplayer in which we can increase zoom levels more than 21
<pre><code>googleMap.setMapType(GoogleMap.MAP_TYPE_NONE); </code></pre> <p>Here <strong>MAP_TYPE_NONE</strong> is one of the google default map type, if I can create one map layer like that, it would help me increasing the zoom levels. </p> <p>Since I heard that we can increase zoom levels by creating our own custom...
[CODE] Here MAP_TYPE_NONE is one of the google default map type, if I can create one map layer like that, it would help me increasing the zoom levels. Since I heard that we can increase zoom levels by creating our own custom map layer, so please help in creating custom layer with max zoom levels?
android|google-maps
1
2016-06-16T05:45:48.110Z
2,016
6
5
3
49
1
297
81
2
1
true
false
false
false
false
false
low
37,929,664
Custom colours not showing with android.Theme.Material
<p>In my values-v21 folder I have the following style.xml, where I customise Theme.Material: </p> <pre><code>&lt;resources&gt; &lt;style name="AppTheme" parent="android:Theme.Material"&gt; &lt;item name="colorPrimary"&gt;#880E4F&lt;/item&gt; &lt;item name="colorPrimaryDark"&gt;#E91E63&lt;/item&gt; ...
In my values-v21 folder I have the following style.xml, where I customise Theme.Material: [CODE] However, I cannot see any of those colours when I run my app on Android API 23. I do call the theme in my android manifest: android:theme="@style/AppTheme" . I have tried the same with my standard values folder (=>API 21 or...
android|android-layout|material-design
0
2016-06-20T18:45:54.970Z
2,016
6
18
0
49
1
359
54
3
1
true
false
false
false
false
false
zero
37,940,772
How can I correctly put an image at the top of an ImageView having a specified height?
<p>I am absolutly a beginner in Android development and I have some problem positioning an image into an <strong>ImageView</strong> element of my layout. So I have the following situation, I have this <strong>fragment</strong> layout:</p> <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/andr...
I am absolutly a beginner in Android development and I have some problem positioning an image into an ImageView element of my layout. So I have the following situation, I have this fragment layout: [CODE] So, as you can see in the previous code snippet I am setting a background image into an ImageView having an height ...
java|android|android-layout|android-imageview|android-image
0
2016-06-21T09:38:17.817Z
2,016
6
9
1
49
1
943
86
5
3
true
false
false
false
false
false
zero
37,968,065
EventBot: subscribing activity is not reached by Event
<p><strong>Problem:</strong><br> For some communication scenarios I am using <a href="https://github.com/greenrobot/EventBus" rel="nofollow noreferrer">EventBus</a>. I have got an event that is already successfully fired and subscribed by different components in my app. Now I need an <code>activity</code> to subscribe...
Problem: For some communication scenarios I am using EventBus . I have got an event that is already successfully fired and subscribed by different components in my app. Now I need an activity to subscribe that event. Unfortunately it is not reached. Question: How can I achieve that the activity does subscribe the event...
android|interface|callback|fragment|event-bus
0
2016-06-22T12:30:19.617Z
2,016
6
12
2
49
1
516
54
5
2
true
false
false
false
false
false
zero
37,978,635
Amazon SNS Push Service - used for friends request in android app
<p>I have a question concerning the design of my app. I have different users, which I want to socially bound as friends. This requires a proper notification for the other user as well as accepting the request.</p> <p>My question is how to do it with AWS? I have users stored in Cognito Identity Pool. Should I use push ...
I have a question concerning the design of my app. I have different users, which I want to socially bound as friends. This requires a proper notification for the other user as well as accepting the request. My question is how to do it with AWS? I have users stored in Cognito Identity Pool. Should I use push notificatio...
android|amazon-web-services
0
2016-06-22T21:33:16.700Z
2,016
6
21
2
49
1
664
65
2
0
false
false
false
false
false
false
zero
37,985,976
Parse Push Notification does not work if app not in background or foreground.
<p>All worked fine with parse push notification. When I am trying to implement a custom push notifier it works only if my app is in foreground or background.</p> <p>Specifically on Lollipop this happens.</p> <p>Looking forward for your help. </p>
All worked fine with parse push notification. When I am trying to implement a custom push notifier it works only if my app is in foreground or background. Specifically on Lollipop this happens. Looking forward for your help.
android|parse-platform
0
2016-06-23T08:22:34.720Z
2,016
6
8
3
49
1
224
77
2
0
false
false
false
false
false
false
zero
38,001,304
Get values of checkboxes and parse them corresponding to GSON-model
<p>I got a large amount (18) of Checkboxes in my Activity and I have to parse their name (if checked) to JSON and send them to the server. I got a GSON-model to do the parsing, but how do I get the particular values from the checked Checkboxes and how do I save them to the ArrayList? Is there any quick way to do this?...
I got a large amount (18) of Checkboxes in my Activity and I have to parse their name (if checked) to JSON and send them to the server. I got a GSON-model to do the parsing, but how do I get the particular values from the checked Checkboxes and how do I save them to the ArrayList? Is there any quick way to do this? Tha...
android|list|checkbox
-1
2016-06-23T20:32:54.207Z
2,016
6
20
3
49
1
334
67
3
0
false
false
false
false
false
true
negative
38,015,701
How can I post a marker onto Google Maps from a separate fragment?
<p>I'm trying to post a marker onto a map from a separate fragment. So when you tap a button, the fragment manager will take you to the map fragment and then show you your newly placed marker. But I'm having some (nullPointer) issues.</p> <p>I'm getting a null pointer because I'm trying to add a marker before the map ...
I'm trying to post a marker onto a map from a separate fragment. So when you tap a button, the fragment manager will take you to the map fragment and then show you your newly placed marker. But I'm having some (nullPointer) issues. I'm getting a null pointer because I'm trying to add a marker before the map loads. I've...
android|google-maps|android-fragments
1
2016-06-24T14:22:43.603Z
2,016
6
14
4
49
1
1,328
66
3
3
true
false
false
false
false
false
low
38,027,174
tts not playing when call riniging?
<p>when mobile is connected to earpiece and i am playing tts at call ringing it doesn't work.but as call ends it starts working i have tried setmode(mode_in_call) but it doesnt work. tts voice not routing to earpiece what can be problem. this is little bit part of problem </p> <pre><code>if (audio.isWiredHeadsetOn()) ...
when mobile is connected to earpiece and i am playing tts at call ringing it doesn't work.but as call ends it starts working i have tried setmode(mode_in_call) but it doesnt work. tts voice not routing to earpiece what can be problem. this is little bit part of problem [CODE]
android|text-to-speech|telephony
0
2016-06-25T09:53:56.953Z
2,016
6
9
5
49
1
276
35
3
1
true
false
false
false
false
false
zero
37,664,661
Loading contacts and saving to realm taking a very long time
<p>In my app, I am attempting to save all contacts in the local store upon opening. My code works great when there aren't too many contacts to access. Though, when there are 100+ contacts, it takes forever to save them all. I am using Realm-- a DB framework, to turn each contact into a model object. This is the async t...
In my app, I am attempting to save all contacts in the local store upon opening. My code works great when there aren't too many contacts to access. Though, when there are 100+ contacts, it takes forever to save them all. I am using Realm-- a DB framework, to turn each contact into a model object. This is the async task...
android|optimization|android-asynctask|realm|contacts
0
2016-06-06T18:41:04.490Z
2,016
6
18
0
817
1
657
60
5
2
true
false
false
false
false
false
zero
37,957,791
Extract Address from String - Equivalent to NSDataDetector in iOS
<p>In iOS there's a class named <code>NSDataDetector</code> that, for example, let's you pass a text and it will detect if that text contains things like postal addresses, dates, links...</p> <p>In my case, I'm interested in finding a similar tool for Android that let will detect an address inside a text. I've playing...
In iOS there's a class named NSDataDetector that, for example, let's you pass a text and it will detect if that text contains things like postal addresses, dates, links... In my case, I'm interested in finding a similar tool for Android that let will detect an address inside a text. I've playing around with the Geocode...
java|android|google-geocoder|street-address|nsdatadetector
8
2016-06-22T03:01:56.167Z
2,016
6
3
2
1,073
1
710
65
5
0
false
false
false
false
false
false
medium
37,697,835
Testing Activity and specific fragment with espresso
<p>My Activity is hosting two Fragments. In onCreate() I am determine which fragment will be shown. </p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.Layout...
My Activity is hosting two Fragments. In onCreate() I am determine which fragment will be shown. [CODE] loadFragment() take care of transaction and commiting fragment... This is my test Class: [CODE] } How can I tell in test Class which Fragment should be shown?
android|android-fragments|testing|android-espresso
5
2016-06-08T08:59:05.043Z
2,016
6
8
2
3,121
1
262
52
4
2
true
false
true
false
false
false
low
37,624,326
Online screenshot tool focusing mobile, tablet, notebook resolution?
<p>I have developed a small HTML5/jQuery site. This site is deployed online. For documenting purposes <em>(github..)</em> I need a Website which:</p> <p>must have</p> <ul> <li>take screenshots </li> <li>is configurable to support the three screen resolutions mentioned above.</li> </ul> <p>nice to have</p> <ul> <li>...
I have developed a small HTML5/jQuery site. This site is deployed online. For documenting purposes (github..) I need a Website which: must have take screenshots is configurable to support the three screen resolutions mentioned above. nice to have embedding the screeny in smartphone, tablet and (notebook) graphical fram...
android|iphone|screenshot|tablet
-1
2016-06-03T22:25:24.687Z
2,016
6
22
4
50
1
496
68
4
0
false
false
false
false
false
true
negative
37,664,628
Formatting an input String array
<p>I'm trying to send an array of Strings to my server using Retrofit. If my method is:</p> <pre><code>@FormUrlEncoded @Post("postData") Call&lt;Response&gt; postData(@Field("data") String[] data); </code></pre> <p>And my input is:</p> <pre><code>new String[]{"data1", "data2"} </code></pre> <p>Retrofit converts it ...
I'm trying to send an array of Strings to my server using Retrofit. If my method is: [CODE] And my input is: [CODE] Retrofit converts it to: [CODE] My question is: how do I get Retrofit to convert my array to this instead: [CODE] I am using Retrofit 2.0.2.
java|android|retrofit|retrofit2
0
2016-06-06T18:39:39.093Z
2,016
6
18
0
50
1
256
32
4
4
true
false
false
false
false
false
zero
37,691,742
Where does predefined TextViews reside in Android SDK?
<p>I am following an Udacity course (<a href="https://classroom.udacity.com/courses/ud258" rel="nofollow">How to use a Content Provider</a>). There is a piece of code which caught me in surprise. </p> <p>Here is the class definition: </p> <pre><code>public class MainActivity extends ActionBarActivity { private s...
I am following an Udacity course ( How to use a Content Provider ). There is a piece of code which caught me in surprise. Here is the class definition: [CODE] and here is the layout file: [CODE] Now, this works perfectly, even though I did not declared any TextViews named text1 and text2. When I right click on, say, te...
android|android-studio|textview
0
2016-06-08T01:04:22.610Z
2,016
6
1
2
50
1
815
54
3
2
true
false
false
false
false
false
zero
37,723,200
Android app closes when cleared from the running app list. How to make it restart
<p>I want to restart my app when it is cleared from the running apps list. How do i do so? this is the incomplete code for my service</p> <pre><code>public class MyService extends Service { Handler handler = new Handler(); final double specifiedlimit=0.001; int f = 0; @Override public void onCreate() { super.onC...
I want to restart my app when it is cleared from the running apps list. How do i do so? this is the incomplete code for my service [CODE]
android
0
2016-06-09T10:20:22.177Z
2,016
6
10
3
50
1
137
81
1
1
true
false
false
false
false
false
zero
37,753,136
Worklight 6.2 access disabled French Android issue
<p>I'm trying to remote disable the application on my android platform. I provided the EN message with the URL and uploaded the csv file for FR.</p> <p>CSV content:</p> <pre><code>fr,Une nouvelle version de l’application mobile de SRC de company est maintenant à votre disposition. La taille du fichier est de 8 Mo. Ve...
I'm trying to remote disable the application on my android platform. I provided the EN message with the URL and uploaded the csv file for FR. CSV content: [CODE] However, when I launch my device which is in FR, I'm still getting the EN message. I'm not sure what is the issue as I know this is a WL console functionality...
android|ibm-mobilefirst|mobile-application|worklight-server
0
2016-06-10T16:31:52.833Z
2,016
6
16
4
50
1
483
50
4
2
true
false
false
false
false
false
zero
37,805,584
How to align Imageview and description using textviews as shown in the picture
<p>Could you please help me to place an <code>ImageView</code> and also 'Description' having Headline1 and text, Headline2 and some text.</p> <p>I tried to do but I am not able to do exactly as shown in the picture:</p> <p><img src="https://i.stack.imgur.com/4oJ4u.png" alt="my_picture" /></p> <p>If the description is ...
Could you please help me to place an ImageView and also 'Description' having Headline1 and text, Headline2 and some text. I tried to do but I am not able to do exactly as shown in the picture: If the description is more, need to have a scroll bar. It should work for all the screen sizes. Here's my code: [CODE] I tried ...
java|android-layout
0
2016-06-14T07:27:46.500Z
2,016
6
7
1
50
1
498
78
2
1
true
false
false
false
false
false
zero
37,807,054
ImageView's size can't adapt with image from net in GridView
<p><img src="https://i.stack.imgur.com/cQOD4.png" alt="Image File"></p> <p>I have a question , it make me tired whole day. Why <code>ImageView</code>'s background is show when load net picture into <code>ImageView</code> in <code>GridView</code>? <code>ImageView</code>'s size can't wrap_content.</p> <p>How could I fi...
I have a question , it make me tired whole day. Why ImageView 's background is show when load net picture into ImageView in GridView ? ImageView 's size can't wrap_content. How could I fix it? Make ImageView 's size adapt picture size (don't change the piacture size) thanks advance. A .Main XML [CODE] B.GridView Item X...
android|android-layout|gridview|imageview|adapter
1
2016-06-14T08:43:42.550Z
2,016
6
8
1
50
1
398
60
5
4
true
false
false
false
false
false
low
37,908,608
I can't use any method inside subscribe method otto
<p>My app show <code>fragment(1)</code>. After that user choose one of another <code>fragments(2-10)</code> for press <code>button</code>. After that, <code>fragment(2-10)</code> send data to activity and open activity -that works well-. Finally, activity edit the data and send it to <code>fragment(1)</code> -here is ...
My app show fragment(1) . After that user choose one of another fragments(2-10) for press button . After that, fragment(2-10) send data to activity and open activity -that works well-. Finally, activity edit the data and send it to fragment(1) -here is problem- . So I use otto. I use the same way except I didn't use Fr...
android|android-fragments|android-studio|event-bus|otto
1
2016-06-19T15:02:27.863Z
2,016
6
15
6
50
1
557
51
5
1
true
false
false
false
false
false
low
37,945,218
What is the use of ad events?
<p>I have developed an application and I am looking forward to launching it. I have placed one banner ad from Admob in my layout. I have tested it using a test ad . It is working fine. But, I would like to know how the banner ad will respond to events(like click) once I upload my app using real ads. I have not implemen...
I have developed an application and I am looking forward to launching it. I have placed one banner ad from Admob in my layout. I have tested it using a test ad . It is working fine. But, I would like to know how the banner ad will respond to events(like click) once I upload my app using real ads. I have not implemented...
android|event-handling|admob|banner-ads
0
2016-06-21T13:02:05.073Z
2,016
6
13
1
50
1
516
29
4
0
false
false
false
false
false
false
zero
37,952,861
How Android Photo Framing apps work
<p>So I've got a weird one here. having googled and tried different tutorials on photo framing apps, I have come up really short of an idea of how to even begin. So far, my app is almost ready, save for the part where the user takes a picture and this picture is automatically framed and labeled with with text stored in...
So I've got a weird one here. having googled and tried different tutorials on photo framing apps, I have come up really short of an idea of how to even begin. So far, my app is almost ready, save for the part where the user takes a picture and this picture is automatically framed and labeled with with text stored in th...
android
0
2016-06-21T19:19:21.257Z
2,016
6
19
1
50
1
656
35
1
0
false
false
false
false
false
false
zero
37,959,094
Unable to play videos from server in android application
<p>Hello everyone i want to store some videos on a server and then play it in an android application and i have following questions. 1)which server should i use to store videos? 2)how to play the videos one after another in an android application? Thanks</p>
Hello everyone i want to store some videos on a server and then play it in an android application and i have following questions. 1)which server should i use to store videos? 2)how to play the videos one after another in an android application? Thanks
android|android-studio|video
0
2016-06-22T05:17:02.217Z
2,016
6
5
2
50
1
251
56
3
0
false
false
false
false
false
false
zero
38,035,835
Replacing sqlite database in android
<p>I want to replace previous database with new database. To do that I am </p> <ol> <li>Checking for previous user_version of database.</li> <li>Deleting old database.</li> <li>Copying new database from assets.</li> <li>Changing user_version of new database.</li> <li>Verifying new user_version which in my case is 1.</...
I want to replace previous database with new database. To do that I am Checking for previous user_version of database. Deleting old database. Copying new database from assets. Changing user_version of new database. Verifying new user_version which in my case is 1. But when I restart the application user_version changed...
android|database|sqlite
0
2016-06-26T06:34:21.550Z
2,016
6
6
6
50
1
493
36
3
2
true
false
false
false
false
false
zero
37,630,698
How to show backendless push notification in an activity?
<p>I am using backendless push notification in my app following the way as described in backendless. I have implemented an receiver that extends bacendless service. Now I see that, the notification comes on notification bar and shows only the portion of message that is available in one line. Even clicking on that notif...
I am using backendless push notification in my app following the way as described in backendless. I have implemented an receiver that extends bacendless service. Now I see that, the notification comes on notification bar and shows only the portion of message that is available in one line. Even clicking on that notifica...
android|push-notification|backendless
1
2016-06-04T13:18:59.360Z
2,016
6
13
5
306
1
613
57
3
0
false
false
false
false
false
false
low
37,713,922
no exports were found that match the constraint contractname microsoft.visualstudio.portable library Android Portable Project
<p>I want to include a Class Library portable like image bellow:</p> <p><a href="https://i.stack.imgur.com/Zfoso.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zfoso.png" alt="enter image description here"></a></p> <p>However, I'm getting following error:</p> <pre><code>no exports were found that...
I want to include a Class Library portable like image bellow: However, I'm getting following error: [CODE] I tried to delete a folder below but error keeps happening: [CODE]
c#|android|xamarin|visual-studio-2015
2
2016-06-08T22:21:56.997Z
2,016
6
22
2
562
1
173
125
4
2
true
false
false
false
false
false
low
37,719,597
ANDROID TabLayout with small icons
<p>I want to use tabLayout using only icons - </p> <pre><code> tabLayout = (TabLayout) findViewById(R.id.tabs); tabLayout.addTab(tabLayout.newTab().setIcon(R.drawable.ic_undo_black_48dp)); tabLayout.addTab(tabLayout.newTab().setIcon(R.drawable.ic_redo_black_48dp)); </code></pre> <p>but the problem...
I want to use tabLayout using only icons - [CODE] but the problem is the tab bar that i get shows small icons with a lot of space around it and if I use a linearLayout on imageViews it shows the right size. The above one is of tabLayout and the bottom is the Linear Layout and both are using same drawables. How do i fix...
android|android-tablayout
0
2016-06-09T07:33:56.690Z
2,016
6
7
3
562
1
339
34
2
1
true
false
false
false
false
false
zero
37,819,347
ActivityRecognitionService (Google API) is not working properly
<p>I have developed my application using this tutorial: <a href="http://code.tutsplus.com/tutorials/how-to-recognize-user-activity-with-activity-recognition--cms-25851" rel="nofollow">http://code.tutsplus.com/tutorials/how-to-recognize-user-activity-with-activity-recognition--cms-25851</a></p> <p>Even though I request...
I have developed my application using this tutorial: http://code.tutsplus.com/tutorials/how-to-recognize-user-activity-with-activity-recognition--cms-25851 Even though I request updates every 3 seconds (or for a change, 5 seconds, 10 seconds etc); the timing of the generated values is highly inconsistent. At times it w...
android|api|google-api
0
2016-06-14T18:16:17.220Z
2,016
6
18
1
562
1
693
63
3
2
true
false
false
false
false
false
zero
37,727,262
Directions API for Android with traveling time
<p>On our website we we plot two points on a map, and the google direction api neatly gives us the traveling time. If we change the from or to address some new calculation are performed, and the new traveling time is displayed on the site.</p> <p>We are trying to create the same kind of setup in Android, but I see tha...
On our website we we plot two points on a map, and the google direction api neatly gives us the traveling time. If we change the from or to address some new calculation are performed, and the new traveling time is displayed on the site. We are trying to create the same kind of setup in Android, but I see that there is ...
android|google-maps
0
2016-06-09T13:23:11.857Z
2,016
6
13
3
818
1
730
46
2
0
false
false
false
false
false
false
zero
37,743,937
Get Exif data using Uri
<p>I want to get <code>Exif</code> data for an image that I pick from Android gallery or similar apps like Google Photos. Here are the methods that I am using for getting image file from <code>Uri</code>:</p> <pre><code>public static String getActualPathFromUri(@NonNull Context context, @NonNull Uri selectedImageUri) ...
I want to get Exif data for an image that I pick from Android gallery or similar apps like Google Photos. Here are the methods that I am using for getting image file from Uri : [CODE] The reason I am opting for Bitmap from the Uri instead of getting system filename is because the method is fragmented for different vers...
android|bitmap|uri|exif
4
2016-06-10T08:52:00.443Z
2,016
6
8
4
1,842
1
1,268
23
4
1
true
false
false
false
false
false
low
37,634,563
FCM (Firebase Cloud Messaging) how to send to all Phones?
<p>I have created a small App that's able to receive Push Notifications from the FCM Console.</p> <p>What i want to do now is to send a Push-Notifications to all Android Phones that got the app Installed using the API. And this is where i got completely lost. Is there no way to send it to all Phones without collecting...
I have created a small App that's able to receive Push Notifications from the FCM Console. What i want to do now is to send a Push-Notifications to all Android Phones that got the app Installed using the API. And this is where i got completely lost. Is there no way to send it to all Phones without collecting all the re...
android|push-notification|google-api|firebase|firebase-cloud-messaging
10
2016-06-04T20:10:44Z
-1
-1
-1
-1
7,474
1
411
57
5
0
false
false
true
false
true
false
medium
37,744,400
Post Data Form login values through Url for generation of Token
<p>I have a question on the post the login values through service URL(<a href="http://test.azurewebsites.net/token" rel="nofollow">http://test.azurewebsites.net/token</a>) in this format. Username=username.com&amp;password=password&amp;grant_type=password for generation of token .How can i do this one,if you have any i...
I have a question on the post the login values through service URL( http://test.azurewebsites.net/token ) in this format. Username=username.com&password=password&grant_type=password for generation of token .How can i do this one,if you have any idea please help me.
java|android|json|xml
-3
2016-06-10T09:14:52.883Z
2,016
6
9
4
51
1
265
63
4
0
false
false
false
false
false
true
negative
37,841,889
android is it standard to make buttons text and other views text larger in tablet size?
<p>Is it standard to make buttons text and other views text larger in tablet size? I make dimens.xml for different device sizes and make different text sizes for different device sizes. for examle in normal dimens file:</p> <pre><code>&lt;dimen name="small_text_mobile"&gt;14dp&lt;/dimen&gt; </code></pre> <p>and for l...
Is it standard to make buttons text and other views text larger in tablet size? I make dimens.xml for different device sizes and make different text sizes for different device sizes. for examle in normal dimens file: [CODE] and for large size dimens file: [CODE] and use this dimens for my textViews and buttons , extra....
android|user-interface|user-experience
0
2016-06-15T17:21:46.573Z
2,016
6
17
2
51
1
456
87
3
2
true
false
false
false
false
false
zero
37,986,114
Is it advisable to create a repository for the Android SDK for use on build server
<p>We are using Bamboo to build our Android projects. The problem is that the server does not have the latest Android sdk installed. The server also has no internet access. Is it a bad idea to create a source control repository with the SDK that we can check out as part of the build?</p>
We are using Bamboo to build our Android projects. The problem is that the server does not have the latest Android sdk installed. The server also has no internet access. Is it a bad idea to create a source control repository with the SDK that we can check out as part of the build?
android|continuous-integration|bamboo
0
2016-06-23T08:28:46.893Z
2,016
6
8
3
51
1
281
82
3
0
false
false
false
false
false
false
zero
38,003,042
How to get all package displayed only in apps screen
<p>I tried to get all installed apk by :</p> <pre><code>public ArrayList&lt;InfoObject&gt; getInstalledApps(boolean getSysPackages) { ArrayList&lt;InfoObject&gt; res = new ArrayList&lt;InfoObject&gt;(); List&lt;PackageInfo&gt; packs = mContext.getPackageManager().getInstalledPackages(0); for(int i=0;i&lt;p...
I tried to get all installed apk by : [CODE] It works fine !! But without ApplicationInfo.FLAG_SYSTEM , I show only my installed apk (facebook, skype) with ApplicationInfo.FLAG_SYSTEM , I show all apk (facebook, skype) and all system apk. My issue is that from system apk how to filter only application are exist on my a...
android|filter|apk|system
3
2016-06-23T22:38:47.637Z
2,016
6
22
3
51
1
441
52
4
1
true
false
false
false
false
false
low
37,703,287
Unavailable to use camera in Android
<p>It's my first question but I will try to explain the problem properly. I am tring to use ZBar (Barcode reader) in my android app. I don't want to use another barcode reader installed on the phone but implement ZBar into my code. I tried tips from <a href="http://semycolon.blogspot.no/2014/12/first-android-app-step-8...
It's my first question but I will try to explain the problem properly. I am tring to use ZBar (Barcode reader) in my android app. I don't want to use another barcode reader installed on the phone but implement ZBar into my code. I tried tips from here on how this could be done. The problem is I can't use hardware.Camer...
android|camera|barcode|barcode-scanner|zbar
-1
2016-06-08T13:01:39.537Z
2,016
6
13
2
307
1
359
36
5
0
false
false
false
false
false
true
negative
37,892,367
Integrating greenDAO and Jackson
<p>I am working on a project with an Android side and a backend, and for the JSON parsing I am using Jackson library on both sides. Using Play 2.0 for the backend, Ebean is Jackson annotations friendly, but the problem is with GreenDAO, since GreenDAO uses code generation, I have to type again all the annotations every...
I am working on a project with an Android side and a backend, and for the JSON parsing I am using Jackson library on both sides. Using Play 2.0 for the backend, Ebean is Jackson annotations friendly, but the problem is with GreenDAO, since GreenDAO uses code generation, I have to type again all the annotations every ti...
android|jackson|greendao|greendao-generator
0
2016-06-18T01:14:38.020Z
2,016
6
1
5
307
1
456
32
4
0
false
false
false
false
false
false
zero
38,005,329
MvvmCross MvxTabActivity is obsolete Xamarin.Android
<p>I am updating my game which uses the <code>MvxTabActivity</code> class. I noticed it's being deprecated with a message <code>MvxTabActivity is obsolete: Tab Activity is obsolete. Use ViewPager + Indicator or any other Activity with Toolbar support</code></p> <p>I've searched online but couldn't find a recent docume...
I am updating my game which uses the MvxTabActivity class. I noticed it's being deprecated with a message MvxTabActivity is obsolete: Tab Activity is obsolete. Use ViewPager + Indicator or any other Activity with Toolbar support I've searched online but couldn't find a recent documentation about how to use ViewPager + ...
xamarin|android-viewpager|xamarin.android|mvvmcross
0
2016-06-24T03:52:14.440Z
2,016
6
3
4
307
1
376
52
4
0
false
false
false
false
false
false
zero
37,676,887
Launch an app's info screen in settings onclick
<p>I am trying to open my app in </p> <pre><code>settings-&gt; applications-&gt; user apps-&gt; MyApp1 </code></pre> <p>i am using this snippet, it works fine, however, it fails at handling exceptions. Like when app isn't installed, in that case it should show a toast instead of shutting the whole app!</p> <pre><cod...
I am trying to open my app in [CODE] i am using this snippet, it works fine, however, it fails at handling exceptions. Like when app isn't installed, in that case it should show a toast instead of shutting the whole app! [CODE]
android|settings
0
2016-06-07T10:30:31.723Z
2,016
6
10
1
563
1
227
47
2
2
true
false
false
false
false
false
zero
37,968,555
Android OpenCV poor performance with JNI
<p>I have a huge problem with OpenCV 3.10 under Android. I am developing an App which does TemplateMatching of an Camera Preview. The first approach has been to use the OpenCV Java Wrapper which worked okay. One Processing cycle took about 3.6s. To speed this up i redeveloped the code in C++. For some reason since of t...
I have a huge problem with OpenCV 3.10 under Android. I am developing an App which does TemplateMatching of an Camera Preview. The first approach has been to use the OpenCV Java Wrapper which worked okay. One Processing cycle took about 3.6s. To speed this up i redeveloped the code in C++. For some reason since of that...
android|performance|opencv|android-ndk|java-native-interface
1
2016-06-22T12:49:56.790Z
2,016
6
12
2
1,331
1
1,229
40
5
3
true
false
false
false
false
false
low
37,905,701
How to detect if Buetooth is connected?
<p>I am using this code to get notified whenever a bluetooth device is connected or disconnected, however, it does not check whether the bluetooth device is connected as an audio device or not</p> <pre><code>// ... IntentFilter filter1 = new IntentFilter( BluetoothDevice.ACTION_ACL_CONNECTED); Inte...
I am using this code to get notified whenever a bluetooth device is connected or disconnected, however, it does not check whether the bluetooth device is connected as an audio device or not [CODE] how do i detect A2DP, btA2dp audio devices?
android|bluetooth
1
2016-06-19T09:20:00.900Z
2,016
6
9
6
1,587
1
240
39
2
1
true
false
false
false
false
false
low
37,742,097
Cannot not launch avd in emulator
<p>When I try to launch emulator in Android studio,the error shows that 'Cannot launch AVD in emulator' The screenshot is given below</p> <p><img src="https://i.stack.imgur.com/QLV2t.png" alt="Exception"> </p>
When I try to launch emulator in Android studio,the error shows that 'Cannot launch AVD in emulator' The screenshot is given below
android
3
2016-06-10T07:13:09.273Z
2,016
6
7
4
3,891
1
130
33
1
0
false
false
true
false
false
false
low
37,902,950
Asynchronously Load Image from URL into ImageView in Xamarin Android
<p>I have a ListView of multiple items and each item in the list should have an image associated with it. I have created an Array Adapter to hold each list item and have the url of the image I wish to load.</p> <p>I am trying to asynchronously load the image using a web request and have it set the image and update it ...
I have a ListView of multiple items and each item in the list should have an image associated with it. I have created an Array Adapter to hold each list item and have the url of the image I wish to load. I am trying to asynchronously load the image using a web request and have it set the image and update it in the view...
c#|listview|xamarin|imageview|xamarin.android
3
2016-06-19T00:46:33.057Z
2,016
6
0
6
7,987
1
755
68
5
3
true
false
true
false
false
false
low
37,632,461
Should Listener be registered inside (convertview==null) or outside the conditional block? [ANDROID]
<p>When we place the listener during <code>convertview==null</code>, doesn't it mean that we won't be able to create a new listener for the corresponding inflated views when the views ran out of creatable amount? Also, is it possible to declare the variable of a view <code>position</code> in an adapter instead of in a ...
When we place the listener during convertview==null , doesn't it mean that we won't be able to create a new listener for the corresponding inflated views when the views ran out of creatable amount? Also, is it possible to declare the variable of a view position in an adapter instead of in a Viewholder class? Example co...
java|android|user-interface
0
2016-06-04T16:21:28.407Z
2,016
6
16
5
52
1
349
100
3
1
true
false
false
false
false
false
zero
37,656,058
Android Watch fullscreen FAB like the DismissOverlay
<p>There is the DismissOverlayView, which you can implement to give the user an alternative way to exit the application on an android watch. This View implements something, that looks like a fullscreen FAB. Now I would like to know, how I could implement the same View with another button icon/color/behaviour. Since you...
There is the DismissOverlayView, which you can implement to give the user an alternative way to exit the application on an android watch. This View implements something, that looks like a fullscreen FAB. Now I would like to know, how I could implement the same View with another button icon/color/behaviour. Since you ca...
java|android|xml|layout|watch
0
2016-06-06T11:18:59.833Z
2,016
6
11
0
52
1
919
52
5
2
true
false
false
false
false
false
zero
37,725,507
What do debug and packageName fields actually do?
<p>I was looking through Google documentation about WindowManager.LayoutParams (<a href="https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html" rel="nofollow">https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html</a>) and found there 2 fields : packagename a...
I was looking through Google documentation about WindowManager.LayoutParams ( https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html ) and found there 2 fields : packagename and debug. Can someone explain me how to work with them? Something like this,right? [CODE] Then where should see "de...
android|debugging
1
2016-06-09T12:04:55.520Z
2,016
6
12
3
52
1
425
49
2
1
true
false
false
false
false
false
low
37,736,327
Android Updade RecyclerView data
<p>i'm trying to reload data for <code>recyclerView</code> for below code. but it doesnt work correctly for example with:</p> <pre><code>realm = Realm.getDefaultInstance(); long count = Utils.getLocalContactsList(getContentResolver(), realm); if (count &gt; 0) { results = realm.where(ContactLists.class).findAll();...
i'm trying to reload data for recyclerView for below code. but it doesnt work correctly for example with: [CODE] i can fill recyclerView and that work fine, but after fetch some data from webservice and update database i must be reload recyclerView, but this part of my code dont work fine: [CODE] problem is this lines:...
android
0
2016-06-09T21:16:36.870Z
2,016
6
21
3
52
1
359
32
1
4
true
false
false
false
false
false
zero
37,737,138
android - Java throwing me FileNotFound exception HttpURLConnection
<p>I have a class with a static function to make a POST request to a web server. So far it was working for every request I've made, however I added a new .php file and it throws me a FileNotFound exception at the function call for the new script. I tested it through browser and Postman and the script works.</p> <p>The...
I have a class with a static function to make a POST request to a web server. So far it was working for every request I've made, however I added a new .php file and it throws me a FileNotFound exception at the function call for the new script. I tested it through browser and Postman and the script works. The class/func...
java|android|http
0
2016-06-09T22:21:27.920Z
2,016
6
22
3
52
1
666
67
3
3
true
false
false
false
false
false
zero
37,767,629
Buttons in Custom Dialog won't respond
<p>I'm trying to create a custom dialog for the settings of my application, the problem is, that the custom buttons, EditText &amp; the spinner don't respond to user activity. I hope someone can help. Here is my Code:</p> <pre><code>public class SettingsDialog extends DialogFragment { private EditText editText; priva...
I'm trying to create a custom dialog for the settings of my application, the problem is, that the custom buttons, EditText & the spinner don't respond to user activity. I hope someone can help. Here is my Code: [CODE] } and my xml for the dialog: [CODE] Thanks in advice
android
0
2016-06-11T19:14:33.447Z
2,016
6
19
5
52
1
270
38
1
2
true
false
false
false
false
false
zero
37,774,577
Android view animation applies to few elements in recyclerview instead of one by onClick event
<p>I'm trying to realize the item-click feature animation that makes alpha value to became 0f for each items in recyclerview, but I'm facing some problems:</p> <ol> <li>When I click on item it disappears (expected), but then, if I scroll down a little, I can found another one item that also disappeared (not expected)....
I'm trying to realize the item-click feature animation that makes alpha value to became 0f for each items in recyclerview, but I'm facing some problems: When I click on item it disappears (expected), but then, if I scroll down a little, I can found another one item that also disappeared (not expected). And another stra...
android|view|android-recyclerview|android-animation|listadapter
0
2016-06-12T13:05:07.663Z
2,016
6
13
6
52
1
714
94
5
2
true
false
false
false
false
false
zero
37,822,445
Where does the curve fitting formula come from?
<p>I have been investigating quite a bit of formulas to estimate the distance based on RSSI and txPower and almost all of them are based on path loss models. Some of them are quite accurate and they seem to agree with the theory, but I didn't find any theory that relates to the curve fit formula and I don't understand ...
I have been investigating quite a bit of formulas to estimate the distance based on RSSI and txPower and almost all of them are based on path loss models. Some of them are quite accurate and they seem to agree with the theory, but I didn't find any theory that relates to the curve fit formula and I don't understand how...
ibeacon-android|altbeacon
0
2016-06-14T21:28:45.647Z
2,016
6
21
1
52
1
517
47
2
0
false
false
false
false
false
false
zero
37,824,863
How to change colour when user wants another colour in the app?
<p>Hi i made an android app and i was thinking, how to implement on a click of a button it changes the whole app to another colour like from white to black. Is there a way that could be possible or am i just up for the impossible.</p> <p>Thanks</p>
Hi i made an android app and i was thinking, how to implement on a click of a button it changes the whole app to another colour like from white to black. Is there a way that could be possible or am i just up for the impossible. Thanks
java|android
3
2016-06-15T01:57:03.410Z
2,016
6
1
2
52
1
234
63
2
0
false
false
false
false
false
false
low
37,846,252
ontouchlistener isn't working
<p>My image is moving weirdly and pausing at random moments while I need it to be continuous. It stops and then works. Please post if you can make it more efficient. Also look if there is a way to shorten the code.</p> <pre><code>import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android...
My image is moving weirdly and pausing at random moments while I need it to be continuous. It stops and then works. Please post if you can make it more efficient. Also look if there is a way to shorten the code. [CODE]
java|android|ontouchlistener
1
2016-06-15T21:40:50.867Z
2,016
6
21
2
52
1
218
29
3
1
true
false
false
false
false
false
low
37,868,047
Force compatibility mode while targeting higher API - Android
<p>I help friend with fixing some bugs in application. Developer that send previous version set <code>targetSdkViersion</code> to 23 and Google Developer Console shows error that I cant lower it 19. Problem is, than our app works well with this build configuration without any changes in code:</p> <pre><code>compileSdk...
I help friend with fixing some bugs in application. Developer that send previous version set targetSdkViersion to 23 and Google Developer Console shows error that I cant lower it 19. Problem is, than our app works well with this build configuration without any changes in code: [CODE] ... [CODE] It uses Youtube API and ...
android|google-maps-android-api-2|android-youtube-api
0
2016-06-16T19:39:45.650Z
2,016
6
19
3
52
1
431
61
3
2
true
false
false
false
false
false
zero
37,871,398
Error when creating a method which auto-decrease value upon longPress
<p>I'm trying to make a custom number picker but i am getting a android.view.ViewRootImpl$CalledFromWrongThreadException when trying to auto decrease value.</p> <p>my_number.xml :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
I'm trying to make a custom number picker but i am getting a android.view.ViewRootImpl$CalledFromWrongThreadException when trying to auto decrease value. my_number.xml : [CODE] my CustomNumberPicker class: [CODE] What am i doing wrong and how can i fix this.
java|android|xml
2
2016-06-17T00:33:28.373Z
2,016
6
0
4
52
1
258
69
3
2
true
false
false
false
false
false
low
38,028,581
Recreate a random array to set into Gridview after using OnItemClickListener
<p>I'm trying to make a simple game using a random array and put it in gridview. But after click on item of gridview, i can't generate a new array because next random array must be inside the OnItemClickListener- can't setAdapter like outside OnCreate method.I need anysolution from you guys. Here is my code:</p> <pre...
I'm trying to make a simple game using a random array and put it in gridview. But after click on item of gridview, i can't generate a new array because next random array must be inside the OnItemClickListener- can't setAdapter like outside OnCreate method.I need anysolution from you guys. Here is my code: [CODE]
android|gridview|arraylist|random|onitemclicklistener
0
2016-06-25T12:34:11.780Z
2,016
6
12
5
52
1
313
76
5
1
true
false
false
false
false
false
zero
37,640,596
duplicate view upon data change?
<p>My CardView duplicate elements upon data change, the vardView is within a tab, and the way i declared that tab fragment as following;</p> <p>in the onCreateView, i declared all the necessary firebase links and value events listeners to retrieve the required data related to the elements displayed on the cards.</p> ...
My CardView duplicate elements upon data change, the vardView is within a tab, and the way i declared that tab fragment as following; in the onCreateView, i declared all the necessary firebase links and value events listeners to retrieve the required data related to the elements displayed on the cards. [CODE] right aft...
android-studio|android-recyclerview|android-cardview
1
2016-06-05T09:57:25.547Z
2,016
6
9
6
308
1
1,022
32
3
3
true
false
false
false
false
false
low
37,798,270
Failed to highlight a selected item on RecyclerView
<p>I've a master-details app that has split view screen using Fragments. The master screen is a list containing RecyclerView. Here's the layout XML.</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent...
I've a master-details app that has split view screen using Fragments. The master screen is a list containing RecyclerView. Here's the layout XML. [CODE] And the item row layout xml is as follows. [CODE] On the adapter class, I created a variable to hold position of selected item [CODE] When I click an item on the list,...
android|android-recyclerview
0
2016-06-13T20:07:18.087Z
2,016
6
20
0
308
1
466
51
2
3
true
false
false
false
false
false
zero
37,987,838
Android Espresso - Single list with same items (AmbiguousViewMatcherException)
<p>Trying to do learn Android Espresso test development.</p> <p>I have a list which has two of the same items (same resource ID's, same text, only one list).</p> <p>Currently I am doing this (probably very wrong):</p> <pre><code>DataInteraction dataInteraction = onData(anything()).inAdapterView(withText("Test1")); ...
Trying to do learn Android Espresso test development. I have a list which has two of the same items (same resource ID's, same text, only one list). Currently I am doing this (probably very wrong): [CODE] This results is the exception: [CODE] Layout is like this: [CODE] The list is type: [CODE] It contains classes of ty...
android-espresso
0
2016-06-23T09:39:57.360Z
2,016
6
9
3
308
1
448
78
1
5
true
false
false
false
false
false
zero
38,020,986
How to prevent users from deleting all data under certain path in Firebase database with security rules?
<p>I have a VERY simple data structure:</p> <pre><code>{ "article-favorites" : { "-KKEIhw6SZ9W0tjyj_qO" : { "xn19qiJXmJMDEMzqwB8IQHbHzAG3" : true }, "-KKOd-3pUTrM01L5XIXC" : { "YJnErzTYGoWw6xCO2mQfmP0ftVt1" : true, "xn19qiJXmJMDEMzqwB8IQHbHzAG3" : true }, "-KKPxI9Z40e0Lq8Oa00L" ...
I have a VERY simple data structure: [CODE] Where the first key is article id, the second is user id. These are my rules: [CODE] The problem with these rules is that user will never be allowed to favorite an article because he will not be allowed to create a new article_id entry. But then again if I add write rule to a...
android|firebase|firebase-realtime-database
3
2016-06-24T19:42:26.737Z
2,016
6
19
4
564
1
558
104
3
2
true
false
false
false
false
false
low
37,745,057
Wrong build variant
<p>I have 2 modules in my app, one for the API, one for the app. In the API module I define 2 API endpoint depending if the API is compiled in <code>debug</code> or <code>release</code> mode:</p> <pre><code>buildTypes { all { buildConfigField "String", "API_DEVICE_TYPE", "\"android-phone\"" } debu...
I have 2 modules in my app, one for the API, one for the app. In the API module I define 2 API endpoint depending if the API is compiled in debug or release mode: [CODE] In Android Studio's Build variant panel I selected the debug variant for both app and API module. But when I press play/clean/rebuild/remove all build...
android|android-studio|android-gradle-plugin|android-studio-2.2
0
2016-06-10T09:46:25.107Z
2,016
6
9
4
820
1
492
19
4
1
true
false
false
false
false
false
zero
37,936,889
Allow file access only on android app and disable browser access using .htaccess or javascript..?
<p>Can I disable direct url access using .htacces or Javascript..?</p> <p>Assume my URL is <a href="http://example.com/js/example.js" rel="nofollow">http://example.com/js/example.js</a></p> <p>I need to access Javascript file in Android app but I do not need to allow anyone to view that file in a browser whether anyo...
Can I disable direct url access using .htacces or Javascript..? Assume my URL is http://example.com/js/example.js I need to access Javascript file in Android app but I do not need to allow anyone to view that file in a browser whether anyone have the JS link. Can I do this..?
javascript|android|.htaccess
1
2016-06-21T06:19:20.307Z
2,016
6
6
1
820
1
276
97
3
0
false
false
false
false
false
false
low
37,721,767
Add specific repository to build file
<p><strong>Problem:</strong> I would like to include that <a href="https://android-arsenal.com/details/1/2835" rel="nofollow noreferrer">library</a> to my project. When I add the dependency I get: </p> <blockquote> <p>Failed to resolve: com.github.glomadrian:loadingballs1.1</p> </blockquote> <p><strong>Question:</s...
Problem: I would like to include that library to my project. When I add the dependency I get: Failed to resolve: com.github.glomadrian:loadingballs1.1 Question: How do I have to change my gradle file to solve the problem? I think it has something to do with adding the repository maven. If it is like that, where do I ha...
android|android-studio|gradle|dependencies
0
2016-06-09T09:20:18.910Z
2,016
6
9
3
2,356
1
677
37
4
3
true
false
false
false
false
false
zero
37,648,630
Eclipse icon and start screen does not change after ADT installed
<p>I am a starter of Android developing, and I have installed ADT from adt bundle(down load at: <a href="https://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip" rel="nofollow noreferrer">https://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip</a>), after unziped, the eclipse icon in eclipse d...
I am a starter of Android developing, and I have installed ADT from adt bundle(down load at: https://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip ), after unziped, the eclipse icon in eclipse doesn't change to ADT icon, and the start screen is also general eclipse's. How can change the icon and start sc...
android|eclipse|adt
0
2016-06-06T02:01:56.937Z
2,016
6
2
0
53
1
371
65
3
0
false
false
false
false
false
false
zero
37,790,675
Android Studio deletes appengine-generated folder
<p>Android Studio 2.1.2 deletes <code>appengine-generated</code> folder each rerun of the backend module. Making the local debug pretty tiresome (I think it didn't happen in previous versions, but not sure). </p> <p>How can I make the local DB not to be deleted? </p>
Android Studio 2.1.2 deletes appengine-generated folder each rerun of the backend module. Making the local debug pretty tiresome (I think it didn't happen in previous versions, but not sure). How can I make the local DB not to be deleted?
google-app-engine|android-studio|localhost|google-cloud-datastore
1
2016-06-13T13:07:49.080Z
2,016
6
13
0
53
1
238
49
4
0
false
false
false
false
false
false
low
37,795,219
Interconnect desktop application and android application with one cloud db possible?
<p>Me and my team are developing an android application that needs to be connected into a desktop application via cloud db. Is it possible? And what cloud db should we use? Any other additional information would be much appreciated. Android App - Will be developed using Android Studio(Java) Desktop Application - Visual...
Me and my team are developing an android application that needs to be connected into a desktop application via cloud db. Is it possible? And what cloud db should we use? Any other additional information would be much appreciated. Android App - Will be developed using Android Studio(Java) Desktop Application - Visual St...
c#|android|database|azure-cloud-services
-1
2016-06-13T16:53:14.027Z
2,016
6
16
0
53
1
328
84
4
0
false
false
false
false
false
true
negative