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,545,344
Text disappears in listview in android 2.3.6
<p>I'm using an inflated ListView in my project. The layout file is</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/background2" &gt; &lt;ListView a...
I'm using an inflated ListView in my project. The layout file is [CODE] And the inflated layout file is [CODE] The above code works fine when I'm using API level 11 or above, but below API level 11, it behaves in an awkward fashion, like the textView1 becomes totally invisible while textView2 is still visible. Also, wh...
android|listview|android-listview
0
2015-02-16T15:55:08.457Z
2,015
2
15
0
308
2
733
44
3
4
true
false
false
false
false
false
zero
28,545,346
Saving VCard contact via intent
<p>I want to save a contact data which is in <code>VCard</code> format in user's contacts via sending intent. Is there any way to do it?</p> <p><strong>NOTE</strong>: I don't want to save <code>VCard</code> data in a <code>.vcf</code> file and then give it's <code>uri</code> to ‍‍<code>intent</code> like the code belo...
I want to save a contact data which is in VCard format in user's contacts via sending intent. Is there any way to do it? NOTE : I don't want to save VCard data in a .vcf file and then give it's uri to ‍‍ intent like the code below. [CODE]
android|android-intent|vcf-vcard
1
2015-02-16T15:55:15.677Z
2,015
2
15
0
2,137
1
238
31
3
1
true
false
false
false
false
false
low
28,545,377
smartJqueryZoom plugin is not working for Android and iOS
<p>I am using smartJqueryZoom for Android and iOS, pinch zoom in it is working perfectly but I couldn't move the image once it is zoomed below is my code</p> <p>HTML:</p> <pre><code>&lt;div id="imagezoom" style = "margin-left:20%;margin- top:12%;width:80%;height:80%"&gt; </code></pre> <p>jQuery:</p> <pre><code> $(...
I am using smartJqueryZoom for Android and iOS, pinch zoom in it is working perfectly but I couldn't move the image once it is zoomed below is my code HTML: [CODE] jQuery: [CODE] I have also used touchMoveEnabled option in to true but still i have the same problem. Anyone please help me in fixing it. Or is there any go...
android|jquery|cordova|jquery-plugins|pinchzoom
0
2015-02-16T15:56:38.510Z
2,015
2
15
0
178
0
359
57
5
2
true
true
false
false
false
false
zero
28,545,410
Error inflating class android.widget.EditText due to android:background="@drawable/bg_login"
<p>I am having this issue only with Android L GenyMotion emulator. The following layout file throws an error : Error inflating class android.widget.EditText Now when I remove android:background="@drawable/bg_login" the error goes of. This is very strange. I tried a lot googling for the solution but in vain. This issue...
I am having this issue only with Android L GenyMotion emulator. The following layout file throws an error : Error inflating class android.widget.EditText Now when I remove android:background="@drawable/bg_login" the error goes of. This is very strange. I tried a lot googling for the solution but in vain. This issue doe...
android|android-edittext|android-relativelayout|layout-inflater|inflate-exception
0
2015-02-16T15:58:47.650Z
2,015
2
15
0
1,000
0
420
92
5
2
true
true
false
false
false
false
zero
28,545,471
What does a successful CTS testing look like
<p>Im sorry if this question is to much of a beginer question, if you know of a place where I would be able to have easier questions regarding CTS answered I would happily ask there. </p> <p>I have been running CTS on a device, and it came back with 7,000 tests failed, and a few that were not executed. </p> <p>Figu...
Im sorry if this question is to much of a beginer question, if you know of a place where I would be able to have easier questions regarding CTS answered I would happily ask there. I have been running CTS on a device, and it came back with 7,000 tests failed, and a few that were not executed. Figuring that this was beca...
android|cts
0
2015-02-16T16:02:00.190Z
2,015
2
16
0
849
1
602
44
2
0
false
false
false
false
false
false
zero
28,545,484
tablelayout in java code for dynamic UI android app
<p>i try to code a dynamicUI in tablelayout but layers are duplicate together.any body have sample javacode for tablelayout or can correct my codes.i write 2 layoutparams at first then tablelayout and tablerow after that imagebuttons then tablerow2 and in that imagebutton at the end i call all of imagebuttons.thanks</p...
i try to code a dynamicUI in tablelayout but layers are duplicate together.any body have sample javacode for tablelayout or can correct my codes.i write 2 layoutparams at first then tablelayout and tablerow after that imagebuttons then tablerow2 and in that imagebutton at the end i call all of imagebuttons.thanks [CODE...
java|android|android-layout
0
2015-02-16T16:02:37.787Z
2,015
2
16
0
209
1
321
51
3
1
true
false
false
false
false
false
zero
28,545,498
Bluetooth: How to connect to any device
<p>The Bluetooth tutorials i read all mentioned that i need to have the same UUID on both sides (Server and Client) to establish a connection between two devices. But what if i dont know the UUID of my Client and if i dont care?</p> <p>Background information: I have over 1000 microcontrollers with bluetooth. Each micr...
The Bluetooth tutorials i read all mentioned that i need to have the same UUID on both sides (Server and Client) to establish a connection between two devices. But what if i dont know the UUID of my Client and if i dont care? Background information: I have over 1000 microcontrollers with bluetooth. Each microcontroller...
android
0
2015-02-16T16:03:18.090Z
2,015
2
16
0
358
1
1,009
39
1
2
true
false
false
false
false
false
zero
28,545,565
Location of database file in device for alloy titanium application
<p>I am new to alloy mvc framework.I was working in projects using SQLite.I kept SQLite file in asset folder and did query works in application. An instance of SQLite file is created in simulator folder. My question is can we see database file in ios ,android device and where it is stored in device. ...
I am new to alloy mvc framework.I was working in projects using SQLite.I kept SQLite file in asset folder and did query works in application. An instance of SQLite file is created in simulator folder. My question is can we see database file in ios ,android device and where it is stored in device. Please suggest me .. T...
android|ios|titanium|titanium-alloy
0
2015-02-16T16:06:53.927Z
2,015
2
16
0
491
2
337
66
4
0
false
false
false
false
false
false
zero
28,545,623
Meteor geolocation package for android errors
<p>I am trying to fetch my location current location on android platform of Meteor. I followed these instructions <a href="https://github.com/meteor/mobile-packages/blob/master/packages/mdg:geolocation/README.md" rel="nofollow">mdg:geolocation</a> on web its is working perfectly, but on mobile platform (Android) when I...
I am trying to fetch my location current location on android platform of Meteor. I followed these instructions mdg:geolocation on web its is working perfectly, but on mobile platform (Android) when I try to run this command [CODE] it is giving me this error log. [CODE] I am using OS X Yosemite
android|cordova|meteor
2
2015-02-16T16:09:33.337Z
2,015
2
16
0
346
2
294
45
3
2
true
false
false
false
false
false
low
28,545,729
Android: Can not find local variable 'p' when using an array list
<p>I am making a simple find unknown game, and I don't want the A.I. to move through a wall the user has made! The walls are in an array list.</p> <p>Here is the error:</p> <pre><code>Android: Can not find local variable 'p' when using an array list ArrayList&lt;Point&gt; walls = new ArrayList&lt;Point&gt;(); clas...
I am making a simple find unknown game, and I don't want the A.I. to move through a wall the user has made! The walls are in an array list. Here is the error: [CODE] This is the method called to see if the ai is at the same co-ordinate. [CODE]
java|android
0
2015-02-16T16:14:50.660Z
2,015
2
16
0
261
0
243
65
2
2
true
true
false
false
false
false
zero
28,545,797
Unable to execute dex: GC overhead limit exceeded, Google Play Services. Freeze when launching
<p>I have encountered this problem after trying to implement Google Play Services in my application.</p> <p>I figured I did not give enough "power" to eclipse so I changed my eclipse.ini file. However it does not help even though I increase the value.</p> <p>My eclipse.ini:</p> <pre><code>-startup ../../../plugins/...
I have encountered this problem after trying to implement Google Play Services in my application. I figured I did not give enough "power" to eclipse so I changed my eclipse.ini file. However it does not help even though I increase the value. My eclipse.ini: [CODE] I have tried to reinstall my sdk, changed my BuildPath ...
java|android|eclipse|macos|google-play-services
0
2015-02-16T16:17:44.583Z
2,015
2
16
0
1,461
1
427
94
5
1
true
false
false
false
false
false
zero
28,545,804
Toolbar and ActionBar not shown in activity
<p>I use Material design firstly in my apps and my problem is when I create activity there is no action bar or toolbar but I have Material Navigation drawer why it not implemented automatically like in older versions Layout of activity:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/...
I use Material design firstly in my apps and my problem is when I create activity there is no action bar or toolbar but I have Material Navigation drawer why it not implemented automatically like in older versions Layout of activity: [CODE] Activity: package fragments; [CODE] } ` My theme: [CODE]
android
4
2015-02-16T16:18:14.343Z
2,015
2
16
0
6,663
3
297
43
1
3
true
false
true
false
false
false
low
28,545,816
Rss feed not loading
<p>I'm creating an app with a Rss reader for a news site, but the feed doesn't seem to be loading. Here is my code:</p> <p>Activity:</p> <pre><code>public class Tsf extends Activity{ private String finalUrl="http://feeds.tsf.pt/TSF-Ultimas"; private HandleXML obj; ArrayList&lt;String&gt; title,link; ListView list_ts...
I'm creating an app with a Rss reader for a news site, but the feed doesn't seem to be loading. Here is my code: Activity: [CODE] Handler: [CODE] I don't get any error message, but the feed is not loading. Here is the logcat: [CODE] I would appreciate any help.
android|rss-reader|android-xmlpullparser
1
2015-02-16T16:18:57.290Z
2,015
2
16
0
843
2
261
20
3
3
true
false
false
false
false
false
low
28,545,862
Android SeekBar automatically changes size and offsets the "thumb" so nothing lines up correctly
<p>So I'm trying to create a custom SeekBar. Before I thought what I wanted would be accomplishable with a ProgressBar so when I had it as a progress bar it worked fine, I was able to change the colors as I needed using custom drawables. The problem arose when I needed to incorporate a "thumb".</p> <p>Immediately afte...
So I'm trying to create a custom SeekBar. Before I thought what I wanted would be accomplishable with a ProgressBar so when I had it as a progress bar it worked fine, I was able to change the colors as I needed using custom drawables. The problem arose when I needed to incorporate a "thumb". Immediately after I changed...
android|xml|progress-bar|seekbar
1
2015-02-16T16:22:29.623Z
2,015
2
16
0
5,744
1
1,007
96
4
2
true
false
true
false
false
false
low
28,545,894
"java.lang.SecurityException: Permission Denial" Despite Permissions in Contact Access Android
<p>I am attempting to access and retrieve all of the phone numbers for a particular contact (not all contacts), and am continuously running into the same permissions error despite having properly added necessary permissions.</p> <ol> <li>I restarted Android Studio</li> <li>I checked the syntax of my declaration</li> <...
I am attempting to access and retrieve all of the phone numbers for a particular contact (not all contacts), and am continuously running into the same permissions error despite having properly added necessary permissions. I restarted Android Studio I checked the syntax of my declaration I checked for duplicate activity...
java|android|permissions|cursor|uri
-1
2015-02-16T16:24:02.833Z
2,015
2
16
0
1,304
1
890
94
5
4
true
false
false
false
false
true
negative
28,545,949
Android fragments created twice on orientation change and reset my variables the second time
<p>So I decide to post here after 1 week of search. I found and try lot of things to solve my problem but i think my problem is something different.</p> <p>I will try to explain my problem most clearly as possible. I have an application who have 3 fragments, and when i rotate my application <strong>all fragments are c...
So I decide to post here after 1 week of search. I found and try lot of things to solve my problem but i think my problem is something different. I will try to explain my problem most clearly as possible. I have an application who have 3 fragments, and when i rotate my application all fragments are create twice. The se...
android|android-activity|android-fragments|android-actionbar|fragment
-2
2015-02-16T16:26:53.343Z
2,015
2
16
0
1,079
1
3,509
92
5
15
true
false
false
false
false
true
negative
28,546,007
@javascriptinterface on Android lower then 4.2 version
<p>I use <a href="https://github.com/LivotovLabs/3DSView" rel="nofollow">D3SView</a> library in my app in payment process. It uses <code>@javascriptinterface</code> in one of functions. Can I use it on Android >= 2.3 ? <a href="https://github.com/LivotovLabs/3DSView/blob/master/3DSView/src/main/java/eu/livotov/labs/and...
I use D3SView library in my app in payment process. It uses @javascriptinterface in one of functions. Can I use it on Android >= 2.3 ? link to required class. code: [CODE] ... [CODE] How to make this code allowable for >= 2.3 android version?
android
0
2015-02-16T16:30:03.973Z
2,015
2
16
0
115
1
242
54
1
2
true
false
false
false
false
false
zero
28,546,072
Where pubish_stream permission?
<p>I'm making an app for Android. My app capture and save video to facebook. I find a cool library: Simple Facebook: <a href="https://github.com/sromku/android-simple-facebook/" rel="nofollow">https://github.com/sromku/android-simple-facebook/</a>. But when I try to publish video it say to me that I must to add permiss...
I'm making an app for Android. My app capture and save video to facebook. I find a cool library: Simple Facebook: https://github.com/sromku/android-simple-facebook/ . But when I try to publish video it say to me that I must to add permission publish_stream. In Facebook Developers I can't find this permission. Edited: N...
android|facebook|android-simple-facebook
0
2015-02-16T16:33:56.307Z
2,015
2
16
0
62
1
359
31
3
0
false
false
false
false
false
false
zero
28,546,079
Zoom animation not working in Android 5 Lollipop
<p>I have an <code>Activity</code> that has a handler. The handler does some work then launches an intent to another Activity. I use <code>overridePendingTransition</code> after I launch the intent and call <code>finish()</code>.</p> <p>In Android 4.2 the zoom animation works fine but in android 5 it doesn't. </p> <p...
I have an Activity that has a handler. The handler does some work then launches an intent to another Activity. I use overridePendingTransition after I launch the intent and call finish() . In Android 4.2 the zoom animation works fine but in android 5 it doesn't. Are there any differences between the two versions of And...
android|android-animation
0
2015-02-16T16:34:12.243Z
2,015
2
16
0
241
0
390
48
2
2
true
true
false
false
false
false
zero
28,546,101
Android: how-to save/store destructible terrains (Bitmap's state) in memory when device is in "sleep mode"?
<p>I'm coding an Android 4.0+ game where levels are 3200*640px destructible terrains (they are stored as Bitmaps in memory). </p> <p>When the game/the Activity is interrupted (=> player received a phone call, player hit the "Home" button, device is set in "sleep mode", etc...), I would like to keep/store the game's st...
I'm coding an Android 4.0+ game where levels are 3200*640px destructible terrains (they are stored as Bitmaps in memory). When the game/the Activity is interrupted (=> player received a phone call, player hit the "Home" button, device is set in "sleep mode", etc...), I would like to keep/store the game's state (= curre...
android|memory|android-activity|bitmap|save
0
2015-02-16T16:35:39.017Z
2,015
2
16
0
49
0
1,105
107
5
0
false
true
false
false
false
false
zero
28,546,122
disable android systemui button and other components are not showing
<p>I am trying different options to disable system bar permanently for my android app. Now, the most successfully solution is stop the android systemui service.</p> <pre><code>service call activity 42 s16 com.android.systemui </code></pre> <p>But, this cause serious issues in my app. I have 3 android UI components on...
I am trying different options to disable system bar permanently for my android app. Now, the most successfully solution is stop the android systemui service. [CODE] But, this cause serious issues in my app. I have 3 android UI components on screen, 2 webviews and one videoView. Upon disabling the UI service, my webview...
android|webview
1
2015-02-16T16:36:35.880Z
2,015
2
16
0
704
1
624
68
2
1
true
false
false
false
false
false
low
28,546,149
Goose NoClassDefFound Error
<p>I am trying to implement Goose-2.1.22 into one of my applications. However, when I try to run my app with the basic code they provided me I get this error:</p> <pre><code>02-16 11:19:55.048 29391-29391/test.package.test2 E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.NoClassDefFoundError: com.gravity.goose.Goos...
I am trying to implement Goose-2.1.22 into one of my applications. However, when I try to run my app with the basic code they provided me I get this error: [CODE] Here is the code that uses goose (method called from onCreate() ) [CODE] Any ideas how to fix my issue? Thanks everyone!
javascript|android|goose
0
2015-02-16T16:37:34.660Z
2,015
2
16
0
55
1
283
27
3
2
true
false
false
false
false
false
zero
28,546,249
android emulator camera not working on macbook air
<p>It is my first question on stack overflow, forgive me if i have missed guide.</p> <p>I have installed android studio 1.0.1 on my macbook air and run the avd.</p> <p>I have added front and backend camera as emulated.</p> <p>when i click default camera app of emulator, it shows me blurry screen , no picture view.</...
It is my first question on stack overflow, forgive me if i have missed guide. I have installed android studio 1.0.1 on my macbook air and run the avd. I have added front and backend camera as emulated. when i click default camera app of emulator, it shows me blurry screen , no picture view. First i have tried to search...
android|android-emulator
0
2015-02-16T16:42:48.033Z
2,015
2
16
0
2,970
1
944
50
2
0
false
false
true
false
false
false
zero
28,546,254
drag and drop - image returns to original location
<p>I use Android <code>Drag and Drop</code> to <code>drag</code> my image around the screen. When I <code>drop</code>, the image returns to its original location. But I want the image to stay in the location it was dropped in.</p> <p>My attempt: I saved the X and Y positions of the image at <code>ACTION_DROP</code>, t...
I use Android Drag and Drop to drag my image around the screen. When I drop , the image returns to its original location. But I want the image to stay in the location it was dropped in. My attempt: I saved the X and Y positions of the image at ACTION_DROP , then tried to set the new view position with those same X and ...
android|button|drag-and-drop|android-linearlayout
0
2015-02-16T16:43:12.330Z
2,015
2
16
0
106
1
427
50
4
1
true
false
false
false
false
false
zero
28,546,373
[skmaps][android]Pinch to zoom crashes app
<p>I've just started evaluating scobbler/scout for a project and I've run into a problem.</p> <p>I've set up a single activity to display a map using the Skobbler SDK 2.3.0 on Android, API Level 18 (IDE=Android Studio 1.0.2). The map displays and can be panned, but pinch to zoom always kills the app immediately with t...
I've just started evaluating scobbler/scout for a project and I've run into a problem. I've set up a single activity to display a map using the Skobbler SDK 2.3.0 on Android, API Level 18 (IDE=Android Studio 1.0.2). The map displays and can be panned, but pinch to zoom always kills the app immediately with the followin...
android|skmaps
1
2015-02-16T16:50:44.713Z
2,015
2
16
0
201
1
614
42
2
2
true
false
false
false
false
false
low
28,546,403
Rotating Images in and out of an ImageView
<p>Is there a way I can rotate a bunch of images in an ImageView? I've tried to search this but the only results I get are regarding rotating an image (i.e. 90 degrees) in an ImageView. This isn't what I need. I want to be able to rotate a handful of images (basically like a GIF). Is there anyway I can do this? Thanks<...
Is there a way I can rotate a bunch of images in an ImageView? I've tried to search this but the only results I get are regarding rotating an image (i.e. 90 degrees) in an ImageView. This isn't what I need. I want to be able to rotate a handful of images (basically like a GIF). Is there anyway I can do this? Thanks
java|android|image|animation|imageview
0
2015-02-16T16:51:51.650Z
2,015
2
16
0
36
0
316
42
5
0
false
true
false
false
false
false
zero
28,546,412
Xmpullparser Android nested tag
<p>I have problem with parsing my xml document, I need take values from section: coordinates. There is not problem with parsing and section.</p> <p>Below there is my xml document and part of code. Any sugestions? </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;kml xmlns="http://earth.google.com/kml...
I have problem with parsing my xml document, I need take values from section: coordinates. There is not problem with parsing and section. Below there is my xml document and part of code. Any sugestions? [CODE] Code: [CODE]
android|android-xmlpullparser
0
2015-02-16T16:52:24.410Z
2,015
2
16
0
102
1
222
31
2
2
true
false
false
false
false
false
zero
28,546,461
how to run locationlistener in background
<p>I would like to run a locationlistener on my app, that send after every 10m or every 5 seconds an new "Popup". Later I will send my data to the cloud.</p> <p>This is my GPSTracker class: </p> <pre><code>import android.app.AlertDialog; import android.app.Service; import android.content.Context; import android.conte...
I would like to run a locationlistener on my app, that send after every 10m or every 5 seconds an new "Popup". Later I will send my data to the cloud. This is my GPSTracker class: [CODE] For my activityclass I have made this: [CODE] I receive the data, this works. But now I want to run the data in the background so whe...
android|background|listener|locationlistener
1
2015-02-16T16:56:15.707Z
2,015
2
16
0
3,836
1
550
41
4
3
true
false
true
false
false
false
low
28,546,539
Android full screen without three dots
<p>I create empty app. I want set full screen without three dots(menu/search/back). <img src="https://i.stack.imgur.com/3U5JE.png" alt="enter image description here"></p> <p>Please help!</p>
I create empty app. I want set full screen without three dots(menu/search/back). Please help!
android|statusbar|navigationbar
-2
2015-02-16T16:59:48.197Z
2,015
2
16
0
192
2
93
38
3
0
false
false
false
false
false
true
negative
28,546,554
Change actionbar text padding
<p>Is there any way to change right padding of text in <code>ActionBar</code> ?</p> <p>Here my code : </p> <p><strong>Styles</strong></p> <pre><code>&lt;style name="ABTheme" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Menu"&gt; &lt;item name="android:textSize"&gt;14sp&lt;/item&gt; &lt;item na...
Is there any way to change right padding of text in ActionBar ? Here my code : Styles [CODE] Menu [CODE]
android|android-actionbar
0
2015-02-16T17:00:17.733Z
2,015
2
17
0
520
1
104
29
2
2
true
false
false
false
false
false
zero
28,546,703
How to code using android studio to send an email
<p>I'm planning to develop an android mobile application using android studio, where an user give email address and secret code. Then that secret code should be send to mentioned email address. Can any body share any code snippet in order to do this?</p>
I'm planning to develop an android mobile application using android studio, where an user give email address and secret code. Then that secret code should be send to mentioned email address. Can any body share any code snippet in order to do this?
android
18
2015-02-16T17:08:54.040Z
2,015
2
17
0
82,174
3
247
49
1
0
false
false
true
true
true
false
medium
28,546,769
Is it possible to update the UI from different thread besides the Main Thread in Android?
<p>I'm having some rough time trying to figure a way arround this problem. I have an Activity, but the UI is too slow to render the entire screen because it is running on the Main thread. I have two main sections to render, and wanted to use a separate thread to render one of those two sections. My questions are:</p> ...
I'm having some rough time trying to figure a way arround this problem. I have an Activity, but the UI is too slow to render the entire screen because it is running on the Main thread. I have two main sections to render, and wanted to use a separate thread to render one of those two sections. My questions are: Is it po...
android|multithreading|user-interface|java-native-interface
0
2015-02-16T17:12:36.430Z
2,015
2
17
0
313
1
493
89
4
0
false
false
false
false
false
false
zero
28,546,786
RuntimeException on Retrieving Contact Data Android
<p>As a part of a simple practice program I am working on, I would like to retrieve data from my cell phone's contacts, specifically the phone number of a selected contact, or all of them, if there is more than one.</p> <p>I begin by launching the Contacts application and allowing the selection of a contact. I have a ...
As a part of a simple practice program I am working on, I would like to retrieve data from my cell phone's contacts, specifically the phone number of a selected contact, or all of them, if there is more than one. I begin by launching the Contacts application and allowing the selection of a contact. I have a block that ...
java|android|cursor|android-contacts|runtimeexception
1
2015-02-16T17:13:20.933Z
2,015
2
17
0
164
1
2,149
51
5
4
true
false
false
false
false
false
low
28,546,803
Is it possible to integrate Dagger and AspectJ in an Android Studio project?
<p>I'm working in an Android project where I'm using Dagger for dependency injection. I don't know so much about Gradle, but as far as I understand, the Dagger annotations are processed by its compiler once the project is built. There's no problem in configuring it as the user guide says. Well, now I want to integrate ...
I'm working in an Android project where I'm using Dagger for dependency injection. I don't know so much about Gradle, but as far as I understand, the Dagger annotations are processed by its compiler once the project is built. There's no problem in configuring it as the user guide says. Well, now I want to integrate Asp...
android|android-studio|gradle|aspectj|dagger
7
2015-02-16T17:14:05.730Z
2,015
2
17
0
3,493
2
1,031
76
5
3
true
false
true
false
false
false
medium
28,546,849
Make a global timer
<p>I have 3 buttons. If I click on a button, I have to disable all the buttons until the countdown timer expires.</p> <p>I am trying to make a Global countdown timer.</p> <p>Could you tell how to make it working?</p>
I have 3 buttons. If I click on a button, I have to disable all the buttons until the countdown timer expires. I am trying to make a Global countdown timer. Could you tell how to make it working?
android|countdowntimer|timertask
0
2015-02-16T17:16:47.530Z
2,015
2
17
0
773
1
195
19
3
0
false
false
false
false
false
false
zero
28,546,898
Animate a TextView to slide off the screen
<p>I'm animating a TextView with this code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;set xmlns:android="http://schemas.android.com/apk/res/android" &gt; &lt;translate android:duration="1000" android:toYDelta="100%" android:fromYDelta="0%" /&gt; &lt;/set&gt; </code><...
I'm animating a TextView with this code: [CODE] and doing this: [CODE] But this code only makes the TextView animate about 1/4 of the screen length. What should I set the toYDelta to so that it ensures that the TextView is out of the screen? I know I could just set it to a really high number but is there a more efficie...
java|android|animation|textview
1
2015-02-16T17:20:03.200Z
2,015
2
17
0
1,196
1
361
42
4
2
true
false
false
false
false
false
low
28,546,973
Reconnecting from Airplane Mode with MQTT Android Service
<p>I am implementing the Dale Lane MQTT Android Service Example found here <a href="http://dalelane.co.uk/blog/?p=1599" rel="nofollow">http://dalelane.co.uk/blog/?p=1599</a>, the example is working pretty well for my specific purpose, but I am dealing with 1 issue that I cannot seem to resolve.</p> <p>After testing ra...
I am implementing the Dale Lane MQTT Android Service Example found here http://dalelane.co.uk/blog/?p=1599 , the example is working pretty well for my specific purpose, but I am dealing with 1 issue that I cannot seem to resolve. After testing rather extensively, I have found that the service does not reconnect after t...
java|android|service|mqtt
3
2015-02-16T17:24:54.977Z
2,015
2
17
0
3,535
1
1,131
57
4
3
true
false
true
false
false
false
low
28,547,010
Test a submodule in Gradle as fast as possible (without configuring rest of projects)
<p>I've got a module of an android app with all the logic and pojos so it can be tested quickly, the thing is that when I test that module Gradle spends most of the time configuring the 5 projects i have in the root application and are not related to the code i'm going to test.</p> <p>Can I avoid that ? </p> <p>I'm u...
I've got a module of an android app with all the logic and pojos so it can be tested quickly, the thing is that when I test that module Gradle spends most of the time configuring the 5 projects i have in the root application and are not related to the code i'm going to test. Can I avoid that ? I'm using: "gradle :core:...
java|android|gradle
0
2015-02-16T17:27:10.357Z
2,015
2
17
0
1,125
1
333
85
3
0
false
false
false
false
false
false
zero
28,547,024
MediaSession does not show background on lock screen
<p>I am using <code>MediaSession</code> on Lollipop to control playback. It appears to work because my Android Wear device allows me to control playback, however the phone lock screen isn't showing the image from <code>METADATA_KEY_ALBUM_ART_URI</code> and the background on Android Wear isn't showing either. I am using...
I am using MediaSession on Lollipop to control playback. It appears to work because my Android Wear device allows me to control playback, however the phone lock screen isn't showing the image from METADATA_KEY_ALBUM_ART_URI and the background on Android Wear isn't showing either. I am using my own custom notification (...
android|android-5.0-lollipop
3
2015-02-16T17:28:07.480Z
2,015
2
17
0
4,079
1
395
52
2
1
true
false
true
false
false
false
low
28,547,025
SMS Condition is showing for multiple time (SMS Broadcast Receiver)
<p>I want to send sms through sms manager (android). I also want to know the condition of that sms (sent or not, is delivered etc). For this I use this code</p> <pre><code>--sends an SMS message to another device--- private void sendSMS(String phoneNumber, String message) { String SENT = "SMS_SENT"; St...
I want to send sms through sms manager (android). I also want to know the condition of that sms (sent or not, is delivered etc). For this I use this code [CODE] From Here Android sms manager not sending sms It works fine for me. But I am facing some problem. As example, at first I send a message to 1234. it sent and de...
android|broadcastreceiver|smsmanager
0
2015-02-16T17:28:08.880Z
2,015
2
17
0
376
1
583
67
3
1
true
false
false
false
false
false
zero
28,547,046
Whats the best way to put some JSON in android app to prevent it from reverse engineering?
<p>One way I know is to put in assets but thats can't be proguarded and is easily available after decompiling. What are some other ways?</p> <p>Thanks in advance!</p>
One way I know is to put in assets but thats can't be proguarded and is easily available after decompiling. What are some other ways? Thanks in advance!
android|json
2
2015-02-16T17:29:24.153Z
2,015
2
17
0
262
2
152
90
2
0
false
false
false
false
false
false
low
28,547,108
Unable to add icons to action bar
<p>I have recently started a new project and created a custom action bar but for some reason it is not adding icons to it, they will appear on the overflow part but not on the actual bar! :(, really sorry if this seems simple I have just started learning android, I'll post my code below.</p> <p>menu_main.xml</p> <pre...
I have recently started a new project and created a custom action bar but for some reason it is not adding icons to it, they will appear on the overflow part but not on the actual bar! :(, really sorry if this seems simple I have just started learning android, I'll post my code below. menu_main.xml [CODE] part of my ma...
android|android-actionbar
1
2015-02-16T17:33:16.043Z
2,015
2
17
0
520
4
484
33
2
5
true
false
false
false
false
false
low
28,547,115
Bluetooth connect using device UUID
<p>I am trying to connect to a android device using bluetooth and the following code:</p> <pre><code>public ConnectThread(BluetoothDevice bluetoothDevice) { this.bluetoothDevice = bluetoothDevice; ParcelUuid[] uuids = this.bluetoothDevice.getUuids(); for(ParcelUuid parcelUuid : uuids) { Log.v("B...
I am trying to connect to a android device using bluetooth and the following code: [CODE] The output for the UUID's is the following: [CODE] So if i understand that correctly those are the UUID's supported by the device. But if thats true why am i not able to connect to the device using one of those UUID's in my case t...
android|bluetooth
0
2015-02-16T17:33:38.060Z
2,015
2
17
0
725
1
346
35
2
3
true
false
false
false
false
false
zero
28,547,130
KeyPoints opencv FAST detector android
<p>I'm trying to use Opencv FAST detector setting a threshold in Android. I found a similar solved problem <a href="https://stackoverflow.com/questions/20537280/keypoint-list-to-matofkeypoint">here</a>. I have listed the keypoints list after detect method as suggested, but still doesn't work for me. In my case I want t...
I'm trying to use Opencv FAST detector setting a threshold in Android. I found a similar solved problem here . I have listed the keypoints list after detect method as suggested, but still doesn't work for me. In my case I want to detect the key points on my camera frame: [CODE] Problem is that my listOfKeypoints remain...
java|android|performance|opencv
0
2015-02-16T17:34:45.093Z
2,015
2
17
0
1,274
1
433
38
4
1
true
false
false
false
false
false
zero
28,547,144
AdapterView received, when Item is clicked, hasn't the proper size
<p>In this activity I fill a ListView and I set a onClick method that it's called when we press one ListView item. This retrocalled method receives the AdapterView, that has not the same size that the real list (usually the last and the second last items don't exist on AdapterView).</p> <p>In side each ListView item I...
In this activity I fill a ListView and I set a onClick method that it's called when we press one ListView item. This retrocalled method receives the AdapterView, that has not the same size that the real list (usually the last and the second last items don't exist on AdapterView). In side each ListView item I have a Rad...
android|android-listview|onclicklistener|android-adapterview
1
2015-02-16T17:35:12.983Z
2,015
2
17
0
119
0
924
66
4
5
true
true
false
false
false
false
low
28,547,145
How to use different row layouts in Android listiview
<p>I have two layouts for listview.(one for separator, another one for list item) And I have two view holder classes for each layouts. How to use these different layouts properly in listview?</p> <p>Below is my <code>getView()</code> method of custom adapter.</p> <pre><code>@Override public View getView(int position...
I have two layouts for listview.(one for separator, another one for list item) And I have two view holder classes for each layouts. How to use these different layouts properly in listview? Below is my getView() method of custom adapter. [CODE] There are two separators(in the top of listview and the middle of listview) ...
android|android-listview
0
2015-02-16T17:35:22.723Z
2,015
2
17
0
36
1
530
53
2
2
true
false
false
false
false
false
zero
28,547,154
The project may be using a version of Gradle that does not contain the method 'compileSdkVersion()'
<p>I'm facing this issue when trying to run a project originally made on Eclipse ADT.</p> <pre><code>Error:(17, 0) Gradle DSL method not found: 'compileSdkVersion()' Possible causes:&lt;ul&gt;&lt;li&gt;The project 'TaxiAndroidOpen-master' may be using a version of Gradle that does not contain the method. &lt;a href="o...
I'm facing this issue when trying to run a project originally made on Eclipse ADT. [CODE] I already converted this to Android Studio gradle system. But I cannot run it, nor compile it, because of this error, here's the gradle generated: [CODE] I've found some other posts here on SO, with similar errors, but no one has ...
android|eclipse|android-studio|gradle
19
2015-02-16T17:36:09.070Z
2,015
2
17
0
96,848
4
465
99
4
3
true
false
true
true
true
false
medium
28,547,203
Module Dependency - Android Studio
<p>I've 2 modules under my project M1, M2</p> <pre><code>Project - M1 - M2 </code></pre> <p>Earlier, I had M1 as my primary application. However, there was a need for new application M2 that shared lot of common stuff with M1. So, I created a new module M2 with M1 as dependency.</p> <p>To achieve this, I've modi...
I've 2 modules under my project M1, M2 [CODE] Earlier, I had M1 as my primary application. However, there was a need for new application M2 that shared lot of common stuff with M1. So, I created a new module M2 with M1 as dependency. To achieve this, I've modified build.gradle of M1 and M2 as follows: M2: [CODE] M1: (C...
android|gradle
5
2015-02-16T17:39:42.400Z
2,015
2
17
0
3,942
1
439
34
2
4
true
false
true
false
false
false
low
28,547,243
Multiplying a TextView and an EditText together and displaying in a Textview
<p>I have a dynamic Textview which a number is added depending on a spinner. (id:Textview3)</p> <p>I have an EditText that allows an integer input. (id:editText)</p> <p>I'm looking to add these 2 values together and display it into a TextView.(id:textView4) </p> <p>context: It's a food application adding an item of ...
I have a dynamic Textview which a number is added depending on a spinner. (id:Textview3) I have an EditText that allows an integer input. (id:editText) I'm looking to add these 2 values together and display it into a TextView.(id:textView4) context: It's a food application adding an item of food depending on spinner se...
java|android|android-studio
0
2015-02-16T17:42:00.067Z
2,015
2
17
0
298
0
447
76
3
1
true
true
false
false
false
false
zero
28,547,286
Send Whatsapp Message From Another Android App
<p>Is it possible to send someone whatsapp Message with significant number from an android app. For example you'll write a phone number and a message into a textView. Then you'll touch the send button. Whatsapp will send message for you.</p> <p>Sorry for bad English.</p> <p>Thanks for your help.</p>
Is it possible to send someone whatsapp Message with significant number from an android app. For example you'll write a phone number and a message into a textView. Then you'll touch the send button. Whatsapp will send message for you. Sorry for bad English. Thanks for your help.
android
-1
2015-02-16T17:45:07.573Z
2,015
2
17
0
6,022
1
279
46
1
0
false
false
true
false
false
true
negative
28,547,434
Which method should I use (fastest) to select element?
<p>Well there are a lot of different methods to select elements between Drivers. I would like to know which one is the fastest and the most suitable for native apps (iOS and Android) .</p> <p>With the Appium Driver class there is :</p> <pre><code>findElementByAccessibilityId(String using) </code></pre> <p>With the M...
Well there are a lot of different methods to select elements between Drivers. I would like to know which one is the fastest and the most suitable for native apps (iOS and Android) . With the Appium Driver class there is : [CODE] With the Mobile class there is : [CODE] With Android and iOS driver class there are : [CODE...
java|android|ios|selector|appium
2
2015-02-16T17:53:17.317Z
2,015
2
17
0
3,240
3
754
54
5
4
true
false
true
false
false
false
low
28,547,548
how to open new activity through custom dialog button
<pre><code>public void next(){ hand.removeCallbacks(run); final Dialog d =new Dialog(First.this); d.requestWindowFeature(Window.FEATURE_NO_TITLE); d.setContentView(R.layout.next_level); d.getWindow().setBackgroundDrawable(new ColorDrawable(Color.RED)); d.setCancelable(false); W...
[CODE] i want to open new activity through custom dialog button when i click on button the app close. anybody help me Thanks in advance
android|eclipse
0
2015-02-16T17:59:38.660Z
2,015
2
17
0
293
2
135
53
2
1
true
false
false
false
false
false
zero
28,547,649
Viewing pdf files in Android Webview from url
<p>I'm trying to open a pdf file in a Android WebView from this url:</p> <p><a href="http://bijsluiters.fagg-afmps.be/registrationSearchServlet?key=BE-TU441865&amp;leafletType=leafletNL" rel="nofollow">http://bijsluiters.fagg-afmps.be/registrationSearchServlet?key=BE-TU441865&amp;leafletType=leafletNL</a></p> <p>When...
I'm trying to open a pdf file in a Android WebView from this url: http://bijsluiters.fagg-afmps.be/registrationSearchServlet?key=BE-TU441865&leafletType=leafletNL When i searched for information online on how to achieve this, i found that you need to extend the url with this in front of it: " http://docs.google.com/gvi...
android|url|pdf|webview
2
2015-02-16T18:06:12.383Z
2,015
2
18
0
9,033
1
714
45
4
1
true
false
true
false
false
false
low
28,547,806
howler.js not working in Android 4.4.4 native browser
<p>I am using howler.js for playing audio in one of my project, I am able to play audio file using howler.js in android native browser for first time. After page refresh audio does not play.</p> <p>But works fine in google chrome after page refresh also. Any one else faced this issue ?</p>
I am using howler.js for playing audio in one of my project, I am able to play audio file using howler.js in android native browser for first time. After page refresh audio does not play. But works fine in google chrome after page refresh also. Any one else faced this issue ?
html5-audio|android-4.4-kitkat|howler.js
0
2015-02-16T18:16:15.837Z
2,015
2
18
0
1,225
2
276
53
3
0
false
false
false
false
false
false
zero
28,547,812
AlarmManager or CalendarProvider, What should be used for an app like Keep or Evernote?
<p>I am developing an android application just like Google Keep and Evernote. Now I want to add many reminders or alarms one time and repeated too. I have both options and I am confused.</p>
I am developing an android application just like Google Keep and Evernote. Now I want to add many reminders or alarms one time and repeated too. I have both options and I am confused.
android|alarmmanager|android-alarms|android-calendar|repeatingalarm
0
2015-02-16T18:16:53.710Z
2,015
2
18
0
112
2
183
87
5
0
false
false
false
false
false
false
zero
28,547,820
How can I change the action bar colour with animation?
<p>Whenever the colour scheme changes on the server it should also change on the app. So far I've managed to make the action bar change its colour. The only problem is that when the notification is received, the colour changes instantaneously. Is there a way to animate a transition from the old colour to the new one?</...
Whenever the colour scheme changes on the server it should also change on the app. So far I've managed to make the action bar change its colour. The only problem is that when the notification is received, the colour changes instantaneously. Is there a way to animate a transition from the old colour to the new one? Than...
android|android-actionbar|android-animation
1
2015-02-16T18:17:16.533Z
2,015
2
18
0
3,244
1
323
54
3
0
false
false
true
false
false
false
low
28,547,851
Android Multiple Intents - One Form
<p>Good afternoon,</p> <p>I am trying to create a basic menu in my andorid application which contains 5 buttons each bringing you to another form. I am trying to create the java to carry out this action but appear to be running into the following error with each of my buttons</p> <p>"EXAMPLE cannot be resolved as a v...
Good afternoon, I am trying to create a basic menu in my andorid application which contains 5 buttons each bringing you to another form. I am trying to create the java to carry out this action but appear to be running into the following error with each of my buttons "EXAMPLE cannot be resolved as a variable" Please hel...
java|android|button|android-intent|case
-1
2015-02-16T18:19:11.333Z
2,015
2
18
0
198
5
489
35
5
2
true
false
false
false
false
true
negative
28,547,906
Change Wifi state on Android only if user changed
<p>I have a program that scans and lists the phone's wifi periodically. With android version API >= 18 I can easily get those without turning on the wifi.</p> <p>The problem, when the version is less than 18 is when the user:</p> <ul> <li>Set wifi off: I have to turn wifi on, scan and then turn off again.</li> <li>Se...
I have a program that scans and lists the phone's wifi periodically. With android version API >= 18 I can easily get those without turning on the wifi. The problem, when the version is less than 18 is when the user: Set wifi off: I have to turn wifi on, scan and then turn off again. Set wifi on: I don't need to turn it...
android
1
2015-02-16T18:23:00.320Z
2,015
2
18
0
254
1
483
49
1
0
false
false
false
false
false
false
low
28,547,988
How to get a paragraph from Parse.com and display it into a textView for every user that installs this application
<p>I've got the basic concept of android programming using Parse.com however, I can't seem to get something back to display it into a textView. This textView should display the same text for every user that installs this application (for testing purposes). I've been through Parse.com's documentation and cant find nothi...
I've got the basic concept of android programming using Parse.com however, I can't seem to get something back to display it into a textView. This textView should display the same text for every user that installs this application (for testing purposes). I've been through Parse.com's documentation and cant find nothing ...
java|android|parse-platform
-3
2015-02-16T18:28:11.497Z
2,015
2
18
0
74
1
381
114
3
1
true
false
false
false
false
true
negative
28,548,051
How to open video file with custom title
<p>I want to open video file and set the previewed title in video player with a different title than the file name (which is used by default).</p> <pre><code> String videoFile = "Video file url / path"; Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(v...
I want to open video file and set the previewed title in video player with a different title than the file name (which is used by default). [CODE]
android
1
2015-02-16T18:32:38.483Z
2,015
2
18
0
150
1
146
40
1
1
true
false
false
false
false
false
low
28,548,083
Android: In ViewPagerAdapter how to get getBaseContext()
<pre><code>public class ViewPagerAdapter extends PagerAdapter Toast.makeText(getBaseContext(), paramString, Toast.LENGTH_SHORT).show(); </code></pre> <p>I want to use the value from<code>getBaseContext()</code> value in the toast message.</p>
[CODE] I want to use the value from getBaseContext() value in the toast message.
android|toast
-1
2015-02-16T18:34:46.543Z
2,015
2
18
0
718
2
80
56
2
1
true
false
false
false
false
true
negative
28,548,109
Android TableRow with two lines
<p>I need to implement a table in an Android App organized as follows:</p> <p>&lt; Fixed Header with the names of the columns ></p> <p>&lt; Scrollable Table with rows ></p> <p>Each row should contain two lines:</p> <ul> <li>the first line contains a long text description</li> <li>the second line contains the values...
I need to implement a table in an Android App organized as follows: < Fixed Header with the names of the columns > < Scrollable Table with rows > Each row should contain two lines: the first line contains a long text description the second line contains the values of the columns whose names are in the header For exampl...
android
0
2015-02-16T18:35:59.280Z
2,015
2
18
0
86
0
809
31
1
1
true
true
false
false
false
false
zero
28,548,190
Android activities pile up in backstack causing OutOfMemory error
<p>I have an application that allows a user to visit user profiles from a photo gallery (think of Instagram where you can visit a profile of a user from an image, or visit a profile of a user that left a comment on the image, etc).</p> <p><strong>PROBLEM:</strong></p> <p>If a user continues to visit profiles and phot...
I have an application that allows a user to visit user profiles from a photo gallery (think of Instagram where you can visit a profile of a user from an image, or visit a profile of a user that left a comment on the image, etc). PROBLEM: If a user continues to visit profiles and photo galleries and repeats this cycle a...
android|performance|android-activity|memory-management
3
2015-02-16T18:42:13.947Z
2,015
2
18
0
326
1
2,289
65
4
0
false
false
false
false
false
false
low
28,548,319
Custom capture layout zxing barcode scanner
<p>I'm trying to have a custom layout to take not the fullscreen of the app but when i modify someting to the layout it crashes</p> <p>I use this library : <a href="https://github.com/journeyapps/zxing-android-embedded#adding-aar-dependency-with-gradle" rel="nofollow">https://github.com/journeyapps/zxing-android-embed...
I'm trying to have a custom layout to take not the fullscreen of the app but when i modify someting to the layout it crashes I use this library : https://github.com/journeyapps/zxing-android-embedded#adding-aar-dependency-with-gradle the custom layout: [CODE]
android
0
2015-02-16T18:50:01.697Z
2,015
2
18
0
1,539
1
259
43
1
1
true
false
false
false
false
false
zero
28,548,330
Texture loading: Everything at once OR un-/loading the needed assets?
<p>We've been developing quite a huge game for android on the basis of AndEngine. So we have a lot of assets to load, especially textures. </p> <p>At the moment everything (sound, textures etc) for every screen (menu, shop, etc etc) is loaded when the app starts (while showing a progress bar). This way the user only h...
We've been developing quite a huge game for android on the basis of AndEngine. So we have a lot of assets to load, especially textures. At the moment everything (sound, textures etc) for every screen (menu, shop, etc etc) is loaded when the app starts (while showing a progress bar). This way the user only has to wait o...
java|android|opengl-es|opengl-es-2.0|andengine
0
2015-02-16T18:50:37.653Z
2,015
2
18
0
159
2
677
69
5
0
false
false
false
false
false
false
zero
28,548,419
Creating SQL like table and sharing them in Android
<p>I am developing an app on Android platform where I need to create a SQL like table that contains multiple records,and that is synced and shared with the other users.</p> <p>What is the easiest way to implement this functionality. Which API should I be using?</p>
I am developing an app on Android platform where I need to create a SQL like table that contains multiple records,and that is synced and shared with the other users. What is the easiest way to implement this functionality. Which API should I be using?
android|sql|api|google-api|sync
1
2015-02-16T18:56:10.290Z
2,015
2
18
0
47
0
251
51
5
0
false
true
false
false
false
false
low
28,548,459
Image Downloading in SDCard
<p>I am downloading image from url in sdcard but it is returning FileNotFound Exception however it is showing an image on browser. I don't know why? please suggest me any solution regarding the same.</p> <p>Code:</p> <pre><code>public String getImageDownloaded(String url){ String filepath = ""; try ...
I am downloading image from url in sdcard but it is returning FileNotFound Exception however it is showing an image on browser. I don't know why? please suggest me any solution regarding the same. Code: [CODE] Thanks in advance. EDIT: I solved this by removing urlConnection.setRequestMethod("GET"); urlConnection.setDoO...
android
0
2015-02-16T18:58:45.900Z
2,015
2
18
0
27
1
434
27
1
1
true
false
false
false
false
false
zero
28,548,475
Can't load image from raw to imageview
<p>I want to load image using setImageResource, from raw folder to imageview, But I get Expected resource of type drawable error.</p> <p>I'm using android studio, Before that when I was using Eclipse everything was fine. I don't want to use drawable folder.</p> <p><img src="https://i.stack.imgur.com/Tz3vg.png" alt="E...
I want to load image using setImageResource, from raw folder to imageview, But I get Expected resource of type drawable error. I'm using android studio, Before that when I was using Eclipse everything was fine. I don't want to use drawable folder. raw folder: Any suggestion? Thanks
android|android-studio
1
2015-02-16T18:59:26.673Z
2,015
2
18
0
5,818
2
282
38
2
0
false
false
true
false
false
false
low
28,548,492
Get the IP Adresses of other apps connected to the internet in Android?
<p>I would like to get the IP addresses of different android apps which are connected to the internet. E.g. Google Play services is connected to 173.194.39.8. Or Internet app is connected to xxx.xxx.xx.x. I know that it is possible. But I am not sure how I can receive these IP addresses. How can I get them? Do I need ...
I would like to get the IP addresses of different android apps which are connected to the internet. E.g. Google Play services is connected to 173.194.39.8. Or Internet app is connected to xxx.xxx.xx.x. I know that it is possible. But I am not sure how I can receive these IP addresses. How can I get them? Do I need root...
android|ip-address|sniffer
-1
2015-02-16T19:00:30.610Z
2,015
2
19
0
6,931
2
347
71
3
0
false
false
true
false
false
true
negative
28,548,555
Android Studio - I can't see files created with FileOutputStream on my actual device
<p>So the files that I'm creating are working fine and showing up exactly how they should on an emulator, I just can't get them to export anywhere where I can see them on my actual device. These files need to be accessible outside the application but I can't seem to make that happen.</p> <p>This is how I declare the f...
So the files that I'm creating are working fine and showing up exactly how they should on an emulator, I just can't get them to export anywhere where I can see them on my actual device. These files need to be accessible outside the application but I can't seem to make that happen. This is how I declare the file variabl...
java|android|android-studio|fileoutputstream
0
2015-02-16T19:04:48.063Z
2,015
2
19
0
1,602
1
723
84
4
2
true
false
false
false
false
false
zero
28,548,576
Android Bluetooth Wiimote
<p>I'm new to Bluetooth development, and my knowledge is pretty much all accumulated from developers.android.com. I am very familiar with IP TCP sockets, and it looks like Bluetooth takes on the same structure.</p> <p>What I am looking for, is once a connection to the WIIMote is made, how do I parse data from it? Is t...
I'm new to Bluetooth development, and my knowledge is pretty much all accumulated from developers.android.com. I am very familiar with IP TCP sockets, and it looks like Bluetooth takes on the same structure. What I am looking for, is once a connection to the WIIMote is made, how do I parse data from it? Is there a stan...
android|bluetooth|wiimote|wii
0
2015-02-16T19:06:16.163Z
2,015
2
19
0
507
0
547
25
4
0
false
true
false
false
false
false
zero
28,548,638
Execute Selenium WebDriver script on android phone
<p>I have a <code>Selenium</code> script to automate the web site on any browser. Now, I want to execute this script on <code>emulator</code> or mobile device. I have tried to execute it by many ways but not get the success. </p> <pre><code>WebDriver driver = new AndroidDriver(); </code></pre> <p><strong>Throwing exc...
I have a Selenium script to automate the web site on any browser. Now, I want to execute this script on emulator or mobile device. I have tried to execute it by many ways but not get the success. [CODE] Throwing exception Unable to start session Possible causes are invalid address of the remote server or browser start-...
android|selenium|selenium-webdriver
1
2015-02-16T19:11:03.373Z
2,015
2
19
0
5,903
1
459
50
3
1
true
false
true
false
false
false
low
28,548,653
Android custom url scheme - empty host
<p>I want to create a custom url scheme and the url should look like:</p> <p>zf-moments://p1234567890</p> <p>I define it in manifest as:</p> <pre><code>&lt;data android:host="*" android:scheme="zf-moments" /&gt; </code></pre> <p>The problem is my activity is started on every link cli...
I want to create a custom url scheme and the url should look like: zf-moments://p1234567890 I define it in manifest as: [CODE] The problem is my activity is started on every link click. I guess the problem is with host but I want the host to be any. Probably the host is checked 1st, then the scheme. How to define the m...
android|android-manifest|url-scheme
1
2015-02-16T19:11:48.690Z
2,015
2
19
0
786
0
379
38
3
1
true
true
false
false
false
false
low
28,548,850
Using callbacks but code runs on wrong object
<p>I've implemented a callback for running async (using concurrent) HTTP calls (using net) and when they are done they call the complete callback implemented in the caller which is a fragment to update the gui. In the code calling the complete routine I wrap it in a handler and looper (using main looper) so the comple...
I've implemented a callback for running async (using concurrent) HTTP calls (using net) and when they are done they call the complete callback implemented in the caller which is a fragment to update the gui. In the code calling the complete routine I wrap it in a handler and looper (using main looper) so the complete c...
java|android|asynchronous|concurrency|fragment
-1
2015-02-16T19:24:14.437Z
2,015
2
19
0
72
1
2,423
45
5
0
false
false
false
false
false
true
negative
28,548,859
Xamarin.Forms IMediaPicker WinPhone
<p>I working on an app that will run on Android and Windows Phone 8.0. This app must to be able to take photos. I found an easy way to do that by using IMediaPicker. However, it only works on Android. On WinPhone the code below returns null.</p> <pre><code>mediaPicker = DependencyService.Get&lt;IMediaPicker&gt;(); </c...
I working on an app that will run on Android and Windows Phone 8.0. This app must to be able to take photos. I found an easy way to do that by using IMediaPicker. However, it only works on Android. On WinPhone the code below returns null. [CODE] How can I get IMediaPicker on WinPhone? Any example? Thanks in advance!
android|windows-phone-8|camera|xamarin
0
2015-02-16T19:24:57.450Z
2,015
2
19
0
419
1
317
35
4
1
true
false
false
false
false
false
zero
28,548,889
android cut string from specefic char till char
<p>I have a simple question about cutting the string in android developing.</p> <p>Imagine i have a string something like <strong>:</strong></p> <pre><code>#badword!next@Word%bad2 &lt;--&gt; </code></pre> <p>And i want to cut it to have this <strong>:</strong></p> <pre><code>Word </code></pre> <p>I m...
I have a simple question about cutting the string in android developing. Imagine i have a string something like : [CODE] And i want to cut it to have this : [CODE] I mean, Cut str from begin till this char @ and after that get everything till you see % char. How can i do that with android functions? Thanks.
java|android|string
0
2015-02-16T19:26:52.757Z
2,015
2
19
0
166
1
308
47
3
2
true
false
false
false
false
false
zero
28,548,892
ExpandableListView with multiple layouts
<p>I apologize for my English but translated with google. I need help for my application, I'm using a ExpandableListView with 3 different layouts but I'm having problems that I have not found an answer on various forums. Basically if the method getChildView () check if the convertView is null, I offsets all layouts or ...
I apologize for my English but translated with google. I need help for my application, I'm using a ExpandableListView with 3 different layouts but I'm having problems that I have not found an answer on various forums. Basically if the method getChildView () check if the convertView is null, I offsets all layouts or eve...
android|android-layout|expandablelistview|expandablelistadapter
4
2015-02-16T19:27:07.050Z
2,015
2
19
0
3,445
1
772
40
4
1
true
false
true
false
false
false
low
28,548,944
Populate Multicolumn Listview using my custom class object - Android
<p>how can i populate / Inflate list view using my array list of custom objects</p> <p>for example </p> <pre><code> class Student{ private int id; private int name; private int age; } //for example ArrayList&lt;Student&gt; myListItems = new ArrayList&lt;Student&gt;(); </code></pre> <p...
how can i populate / Inflate list view using my array list of custom objects for example [CODE] my goal is to print on screen like -------- id -------- Name -------- Age -------- 1 -------- bla bla -------- 90 . . . so on... Please suggest me any easy and optimized way to do this
java|android|android-layout|android-fragments|layout-inflater
0
2015-02-16T19:29:40.207Z
2,015
2
19
0
332
1
280
68
5
1
true
false
false
false
false
false
zero
28,548,981
Files saved to Cache dir are always MODE_PRIVATE?
<p>There are two options to save to internal storage:</p> <ol> <li><p>files dir, which is a persistence folder which <strong>doesn't</strong> get deleted when storage space is low:</p> <p>outputStream = openFileOutput(filename, Context.MODE_PRIVATE); outputStream.write(string.getBytes()); outputStream.close();</p...
There are two options to save to internal storage: files dir, which is a persistence folder which doesn't get deleted when storage space is low: outputStream = openFileOutput(filename, Context.MODE_PRIVATE); outputStream.write(string.getBytes()); outputStream.close(); cache dir, which is a persistence folder which gets...
android|file|caching
1
2015-02-16T19:31:40.380Z
2,015
2
19
0
905
1
620
49
3
0
false
false
false
false
false
false
low
28,548,987
udp in android example
<p>i am using the below code to send text message between two android devices but i could not receive the packet at the receiver side<br> the sender:</p> <pre><code> String messageStr="Hello Android!"; Log.d("note","message prepaered"); int server_port = 12345; try{ Log.d(...
i am using the below code to send text message between two android devices but i could not receive the packet at the receiver side the sender: [CODE] the receiver : [CODE] thanks in advance for help
java|android|udp
2
2015-02-16T19:32:05.620Z
2,015
2
19
0
389
1
198
22
3
2
true
false
false
false
false
false
low
28,549,022
Json parse much time
<p>I am developing a map application and I parse one json file and after I take some data from this file I use the data to parse another json twenty times and I do this in one asynctask and it takes too long if I dont connect to internet on wifi(with mobil network).What is the best approach to reduce the time elapsed?C...
I am developing a map application and I parse one json file and after I take some data from this file I use the data to parse another json twenty times and I do this in one asynctask and it takes too long if I dont connect to internet on wifi(with mobil network).What is the best approach to reduce the time elapsed?Can ...
android|json
0
2015-02-16T19:33:38.577Z
2,015
2
19
0
38
0
332
20
2
0
false
true
false
false
false
false
zero
28,549,038
how to get the existed wireless network characteristics and the activity executed once only
<p><strong>Hello, I create an activity to get the existed wireless network characteristics. The next code execute and give me the desired result. But this activity execute repeatedly. Have you an idea how to get the existed wireless network characteristics and the activity executed once only.</strong></p> <pre><code>...
Hello, I create an activity to get the existed wireless network characteristics. The next code execute and give me the desired result. But this activity execute repeatedly. Have you an idea how to get the existed wireless network characteristics and the activity executed once only. [CODE]
java|android
1
2015-02-16T19:34:54.377Z
2,015
2
19
0
28
0
289
91
2
1
true
true
false
false
false
false
low
28,549,060
how to get my app user details if user with in beacon area
<p>I want to make an app using beacons like displaying other users to current user with in beacon range,Is it possible thing ?i have tried to connecting android app with beacon currently able to get beacon information with in android app but next what to do.Some one guide me how to proceed for maintaining users and oth...
I want to make an app using beacons like displaying other users to current user with in beacon range,Is it possible thing ?i have tried to connecting android app with beacon currently able to get beacon information with in android app but next what to do.Some one guide me how to proceed for maintaining users and other ...
android|ibeacon-android
0
2015-02-16T19:36:35.953Z
2,015
2
19
0
110
1
355
58
2
0
false
false
false
false
false
false
zero
28,549,069
newMyFriendsRequest Facebook returns only 25 friends
<p>I am making a call to fb to retrieve friend list from android app. I have got a list of around 35 people on the app all who have given "user_friends" permission. But I am not able to retrieve more than 25 friends whatever I do.</p> <p>Following is my code:</p> <pre><code>Session activeSession = Session.getActiveSe...
I am making a call to fb to retrieve friend list from android app. I have got a list of around 35 people on the app all who have given "user_friends" permission. But I am not able to retrieve more than 25 friends whatever I do. Following is my code: [CODE] What am I missing?
android|facebook
1
2015-02-16T19:37:15.890Z
2,015
2
19
0
1,125
1
275
52
2
1
true
false
false
false
false
false
low
28,549,157
Preview Image to be uploaded can't be shown on the page in Android browser
<p>I want to preview an image prior to upload it, and for that I have the javascript code below:</p> <pre><code>function readURL(input) { if(input.files &amp;&amp; input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#blah').attr('src', e.target.result); ...
I want to preview an image prior to upload it, and for that I have the javascript code below: [CODE] It seems it works properly in pc and ipad but not android phone. Normal usage is that when I click photo upload image (#file_input_image), the "browse" windows comes, I choose the uploaded image (click ok), then preview...
javascript|android|jquery|image
1
2015-02-16T19:43:24.587Z
2,015
2
19
0
106
0
771
74
4
1
true
true
false
false
false
false
low
28,549,213
Android animation - only half of image fading
<p>I have a few images in a <code>RelativeLayout</code>:</p> <p><img src="https://i.stack.imgur.com/n86uC.jpg" alt="enter image description here"></p> <p>but this is how the images fade:</p> <p><img src="https://i.stack.imgur.com/BlCo7.jpg" alt="enter image description here"></p> <p>When the <code>fade</code> is co...
I have a few images in a RelativeLayout : but this is how the images fade: When the fade is complete, the images return to their normal appearance. I've been stuck on this for a while, and I do not know what is causing my images to fade like this. I tried using clearAnimation() but that did not work. I added android:fi...
android|animation|android-relativelayout|fade
0
2015-02-16T19:47:06.650Z
2,015
2
19
0
330
0
819
45
4
3
true
true
false
false
false
false
zero
28,549,270
Android webview not displaying/parsing html tags
<p>I have a Webview which depending on what the user clicks in an activity displays different html with tags, however the tags are not being parsed (ie the webview just displays the raw text) or doesnt display anything at all.</p> <p>The webview is set with:</p> <pre><code>((WebView)routeInfoMenu.findViewById(R.id.ro...
I have a Webview which depending on what the user clicks in an activity displays different html with tags, however the tags are not being parsed (ie the webview just displays the raw text) or doesnt display anything at all. The webview is set with: [CODE] the "outeDesc" contents for example: [CODE] The xml layout: [COD...
android|webview
1
2015-02-16T19:51:20.507Z
2,015
2
19
0
616
1
322
48
2
3
true
false
false
false
false
false
low
28,549,278
KotterKnife - cannot use bindView(R.id.example_id) for some classes
<p>I am getting the below error when trying to use KotterKnife - but only for some classes. What's going on? </p> <pre><code>e: /Users/user/dev/git/to14/android/src/main/kotlin/com.example/adapters/ChapterListAdapter.kt: (59, 34): Unresolved reference. None of the following candidates is applicable because of receiver...
I am getting the below error when trying to use KotterKnife - but only for some classes. What's going on? [CODE]
android|kotlin|butterknife
3
2015-02-16T19:51:35.703Z
2,015
2
19
0
2,224
1
112
67
3
1
true
false
false
false
false
false
low
28,549,315
Login Example in Android using POST method using REST API
<p>I am working on my First Android application where we have our own REST API, url will be like. "www.abc.com/abc/def/" . For login activity i need to do httppost by passing 3 parameters as identifier, email and password. Then after getting the http response, i need to show the dialogbox whether Invalid Credentials or...
I am working on my First Android application where we have our own REST API, url will be like. "www.abc.com/abc/def/" . For login activity i need to do httppost by passing 3 parameters as identifier, email and password. Then after getting the http response, i need to show the dialogbox whether Invalid Credentials or Sw...
android|json|android-asynctask
5
2015-02-16T19:54:30.510Z
2,015
2
19
0
30,158
2
404
57
3
0
false
false
true
true
false
false
low
28,549,376
Handle Onclick event with a view visibility gone/visible
<p>I explain my problem.</p> <p>I have a view in which there is two button and two editText. If I touch the button1, I want to display the edidText1. If I touch the button2, I want to display the edidText2. </p> <p>In my layout, edidText1 has the visibility visible, edidText2 has the visibility gone.</p> <p><strong...
I explain my problem. I have a view in which there is two button and two editText. If I touch the button1, I want to display the edidText1. If I touch the button2, I want to display the edidText2. In my layout, edidText1 has the visibility visible, edidText2 has the visibility gone. My_Layout.xml [CODE] In my onCreate ...
android|view|visibility
0
2015-02-16T19:59:08.190Z
2,015
2
19
0
5,229
2
774
56
3
2
true
false
true
false
false
false
zero
28,549,378
Android - Context menu no longer highlighting selected items in ListView
<p>I have an app that displays a list of articles, which when clicked on changes its background color to green. The <code>ListView</code> is expanded by <code>ViewPager</code>. The color change occurs so that the user knows which articles has been read. </p> <p>It is also remembered, so that the next time the user ...
I have an app that displays a list of articles, which when clicked on changes its background color to green. The ListView is expanded by ViewPager . The color change occurs so that the user knows which articles has been read. It is also remembered, so that the next time the user loads up the same list, items that have ...
android|listview|android-listview
0
2015-02-16T19:59:12.973Z
2,015
2
19
0
562
1
881
72
3
2
true
false
false
false
false
false
zero
28,549,420
Loading html file to webview on android from assets folder using Android Studio
<p>I'm using Android Studio/Gradle.</p> <p>app\src\main\android_asset folder has the file called chart.html..</p> <p>I'm trying to load this file to my webview like this:</p> <pre><code>WebView view = new WebView(this); view.getSettings().setJavaScriptEnabled(true); view.loadUrl("file:///android_asset/chart.html"); ...
I'm using Android Studio/Gradle. app\src\main\android_asset folder has the file called chart.html.. I'm trying to load this file to my webview like this: [CODE] But I always get the error: could not be loaded because ERR_FILE_NOT_FOUND. What am I missing here?
java|android|webview|android-studio|gradle
27
2015-02-16T20:02:38.290Z
2,015
2
20
0
55,614
3
260
79
5
1
true
false
true
true
true
false
high
28,549,429
How can i retain the state of fragment when i change from a tab
<p><strong>Recently i create an application that execute an async task, my app has a toolbar that contains an sliding tabs, when i change my tab from first tab to second tab my async task execute over and over again, how can i avoid that?, how can i save the state of my fragment? i tried to use</strong> </p> <pre><cod...
Recently i create an application that execute an async task, my app has a toolbar that contains an sliding tabs, when i change my tab from first tab to second tab my async task execute over and over again, how can i avoid that?, how can i save the state of my fragment? i tried to use [CODE]
android|android-asynctask|fragment|savestate
0
2015-02-16T20:02:58.253Z
2,015
2
20
0
102
1
291
63
4
1
true
false
false
false
false
false
zero
28,549,640
unwanted border around images?
<p>On my samsung galaxy 3 there is an unwanted border around images. You can see an example in the picture <a href="http://granthoneymoon.com/Screenshots.png" rel="nofollow">here</a>.</p> <p>You can see the blank images used as separators have a border around them. This border does not show up on the desktop PC or any...
On my samsung galaxy 3 there is an unwanted border around images. You can see an example in the picture here . You can see the blank images used as separators have a border around them. This border does not show up on the desktop PC or any other broswer. I can work around it, of course, by using an empty div instead of...
android|html|css|border
0
2015-02-16T20:19:02.870Z
2,015
2
20
0
192
3
680
30
4
2
true
false
false
false
false
false
zero
28,549,662
Groovy CompileStatic on Android messes up Groovy Truth
<p>In Groovy it is possible to test collections for null and empty simply by placing the variable by itself inside if like:</p> <pre><code>def collection = [ 'test' ] if(!collection) { //Collection is either null or empty, handle exceptional business here } </code></pre> <p>However upon placing <code>@CompileStatic...
In Groovy it is possible to test collections for null and empty simply by placing the variable by itself inside if like: [CODE] However upon placing @CompileStatic on the class which contains code like this, it stops working (but only on Android) with an error: [CODE] This does not seem to occur when running the deskto...
android|groovy|libgdx|truthiness
7
2015-02-16T20:20:16.673Z
2,015
2
20
0
346
1
1,026
54
4
3
true
false
false
false
false
false
medium
28,549,679
Using the Material Design Switch Toggle on previous versions
<p>I am creating a material design app while using the AppCompat support library to support devices running froyo and up. I have came across a challenge, since i am creating a material design app, i need to use the material design elements. Is there any way to use the <a href="http://www.google.com/design/spec/componen...
I am creating a material design app while using the AppCompat support library to support devices running froyo and up. I have came across a challenge, since i am creating a material design app, i need to use the material design elements. Is there any way to use the Material Design Switch on devices that are not running...
android|android-5.0-lollipop|android-2.2-froyo|android-appcompat|material-design
2
2015-02-16T20:21:18.253Z
2,015
2
20
0
1,493
1
330
60
5
0
false
false
false
false
false
false
low
28,549,692
Remove white background from custom button android
<pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item android:state_pressed="true" &gt; &lt;shape&gt; &lt;solid android:color="#000066" /&gt; &lt;stroke android:width="2dp" and...
[CODE] This is the code I use to style some buttons , but they still appear with that ugly background (white) like this: http://prntscr.com/65yzgv How can I get rid of this white background?
java|android|user-interface|android-styles
1
2015-02-16T20:22:43.427Z
2,015
2
20
0
817
3
190
50
4
1
true
false
false
false
false
false
low
28,549,730
Android eclipse plugin
<p>I am looking into using android plugin in eclipse.<br> I can't understand the instructions: </p> <blockquote> <p>Once Eclipse restarts, you must specify the location of your Android SDK directory:</p> <p>In the "Welcome to Android Development" window that appears, select Use existing SDKs. <strong>Brows...
I am looking into using android plugin in eclipse. I can't understand the instructions: Once Eclipse restarts, you must specify the location of your Android SDK directory: In the "Welcome to Android Development" window that appears, select Use existing SDKs. Browse and select the location of the Android SDK directory y...
java|android|eclipse|ide
0
2015-02-16T20:25:29.723Z
2,015
2
20
0
84
1
399
22
4
0
false
false
false
false
false
false
zero
28,549,731
Failing to Display Search Icon In Action Bar
<p>I'm trying to display the Search Icon in the top right of my Actionbar. See Code below for the PublicVideos.java that extends an ActionBarActivity</p> <p>The getoverflow manages to display the overflow menu, but it does not display the search icon. I have added the different sizes search icons in their respective d...
I'm trying to display the Search Icon in the top right of my Actionbar. See Code below for the PublicVideos.java that extends an ActionBarActivity The getoverflow manages to display the overflow menu, but it does not display the search icon. I have added the different sizes search icons in their respective drawables fo...
android
1
2015-02-16T20:25:30.183Z
2,015
2
20
0
118
2
364
44
1
2
true
false
false
false
false
false
low
28,549,747
Duplicate Resources
<p>I am trying to build my Android app and am recieving this error:</p> <pre><code>Error:Error: Duplicate resources: /Users/Mike/Documents/beerPortfolio/beerportfoliov3/BeerPprtfolio/src/main/res/values/dimens_orange.xml:dimen/tab_host_default_height, /Users/Mike/Documents/beerPortfolio/beerportfoliov3/BeerPprtfolio/s...
I am trying to build my Android app and am recieving this error: [CODE] And also this error: [CODE] This is after trying to import a custom theme from Android Holo Colors.
android|android-xml|android-resources|android-theme
-2
2015-02-16T20:26:47.340Z
2,015
2
20
0
1,492
1
171
19
4
2
true
false
false
false
false
true
negative