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,577,975
Application closing Android
<p>I'm creating a small android project. I'm new to java and android. When trying to open another activity in android application after 5 seconds of initial launch, instead of opening activity mentioned in intent, my application is getting closed.</p> <p>My java code for opening another intent looks as follows for the...
I'm creating a small android project. I'm new to java and android. When trying to open another activity in android application after 5 seconds of initial launch, instead of opening activity mentioned in intent, my application is getting closed. My java code for opening another intent looks as follows for the activity t...
java|android|android-intent|android-activity|error-handling
-8
2015-02-18T07:10:41.100Z
2,015
2
7
2
78
2
339
27
5
1
true
false
false
false
false
true
negative
28,578,005
I would like to pass my autocompletetexxtview text to IntentService class
<p>I have a class that extends IntentService based on <a href="http://developer.android.com/training/location/display-address.html" rel="nofollow">this</a>. I would appreciate any help.</p> <pre><code>//This is the method in my main activity that throws exception. I wanted this to call the IntentService by passing the...
I have a class that extends IntentService based on this . I would appreciate any help. [CODE] This is logcat piece, this is in response to the request I got to provide the full logcat details [CODE]
android|intentservice
0
2015-02-18T07:12:55.513Z
2,015
2
7
2
75
1
198
73
2
2
true
false
false
false
false
false
zero
28,578,022
Does notifydatasetchanged call onCreateViewHolder when using RecyclerView
<p>I want to use a toggle to toggle between two different views but using the same <code>RecyclerView</code>. Basically, once you toggle, I want the <code>RecyclerView</code> adapter to recall <code>onCreateViewHolder()</code> but this time it will use a different layout item file. </p> <p>Does <code>notifydatasetchan...
I want to use a toggle to toggle between two different views but using the same RecyclerView . Basically, once you toggle, I want the RecyclerView adapter to recall onCreateViewHolder() but this time it will use a different layout item file. Does notifydatasetchanged() cause the adapter to rebuild itself? Or is there a...
android|android-adapter|android-recyclerview|notifydatasetchanged
28
2015-02-18T07:13:30.330Z
2,015
2
7
2
20,419
6
331
73
4
0
false
false
true
true
true
false
high
28,578,153
displaying SQLite database as application is running in android
<p>i have created a database using <code>SQliteCursor</code> in android. but non of my queries work and it always give me no such table exception.so i want to see the database to check if it is even created?! so here is my question:how can i see my created database with code as the program is running??? </p> <p>I saw...
i have created a database using SQliteCursor in android. but non of my queries work and it always give me no such table exception.so i want to see the database to check if it is even created?! so here is my question:how can i see my created database with code as the program is running??? I saw so many answers but they ...
android|database|sqlite
-1
2015-02-18T07:23:48.263Z
2,015
2
7
2
82
2
467
63
3
0
false
false
false
false
false
true
negative
28,578,205
Android Virtual Device Machine has stopped
<p>I am beginner in Android development, so I am watching tutorial and follow the steps, but the program does not go well.</p> <p>I imported <code>v7 appcompat</code> in my project. (But there was problem with v21 file, but I changed from 19 to 21 in project.properties, so that is fixed.)</p> <p>However, when I exte...
I am beginner in Android development, so I am watching tutorial and follow the steps, but the program does not go well. I imported v7 appcompat in my project. (But there was problem with v21 file, but I changed from 19 to 21 in project.properties, so that is fixed.) However, when I extend Activity class in my Java file...
android
0
2015-02-18T07:27:17.317Z
2,015
2
7
2
171
2
570
42
1
3
true
false
false
false
false
false
zero
28,578,221
Proguard returned with error code 1. See console java.io.IOException
<p>While exporting my Android Application from Eclipse IDE, I am getting errors as below:</p> <pre><code>Proguard returned with error code 1. See console Warning: library class android.net.http.AndroidHttpClient extends or implements program class org.apache.http.client.HttpClient You should check if you need t...
While exporting my Android Application from Eclipse IDE, I am getting errors as below: [CODE] project.properties [CODE] proguard-project [CODE] I have added dontwarn and dontnote statements to proguard confing file with that I resolved few warnings but Not able to solve remaining issue.Please help me to solve this.Than...
android|eclipse|httpclient|proguard|androidhttpclient
2
2015-02-18T07:28:26.820Z
2,015
2
7
2
6,101
5
327
68
5
3
true
false
true
false
false
false
low
28,578,313
Not getting the number In Dual Sim Android Phone Programatically
<p>I need to get number of Sim one while having dual sim android phone and not getting this by following code. I am getting everything exact the same as it is but not getting the sim number</p> <p>In My manifest file</p> <pre><code> uses-permission android:name="android.permission.READ_PHONE_STATE" </code></pr...
I need to get number of Sim one while having dual sim android phone and not getting this by following code. I am getting everything exact the same as it is but not getting the sim number In My manifest file [CODE] My main activity [CODE] Please help with the example code
android|telephonymanager
0
2015-02-18T07:33:47.023Z
2,015
2
7
2
3,227
1
271
64
2
2
true
false
true
false
false
false
zero
28,578,318
How to find Latitude and Longitude from Address
<p>I am using Address to get Latitude and Longitude of that location, but it always returns null...</p> <p>I am passing address like this: <code>1701 Amphitheatre Pkwy Mountain View CA 94043</code></p> <pre><code>Geocoder geocoder = new Geocoder(MainActivity.this, Locale.getDefault()); try { ...
I am using Address to get Latitude and Longitude of that location, but it always returns null... I am passing address like this: 1701 Amphitheatre Pkwy Mountain View CA 94043 [CODE] and Log says [CODE] Manifest permissions : [CODE]
android|google-geocoder
0
2015-02-18T07:34:35.583Z
2,015
2
7
2
482
3
231
47
2
3
true
false
false
false
false
false
zero
28,578,348
Google Glass (Not installed)
<p>I am new to Android Studio and google-Glass.</p> <p>I am trying to create a knew project that will use google-glass but my problem is when I have to Check/select glass it is Disabled and I do not know how to fix this problem. </p> <p>See the Image below.</p> <p><img src="https://i.stack.imgur.com/QI9mZ.png" alt="...
I am new to Android Studio and google-Glass. I am trying to create a knew project that will use google-glass but my problem is when I have to Check/select glass it is Disabled and I do not know how to fix this problem. See the Image below. and here is my SDK that shows that i have installed APK 19. and with the Image b...
android-studio|google-glass|google-gdk
3
2015-02-18T07:36:48.773Z
2,015
2
7
2
2,504
2
474
28
3
0
false
false
false
false
false
false
low
28,578,358
How can we get the id of the view that was touched in onTouchListener in Android when the user is moving the finger on the views?
<p>I am not able to get the second view id where the finger is moved. I tried to print the id where the pointer is using the following in the on touch listener.</p> <pre><code> case MotionEvent.ACTION_MOVE: int pointerCount = event.getPointerCount(); for (int i = 0; i &lt; pointerCount; i++)...
I am not able to get the second view id where the finger is moved. I tried to print the id where the pointer is using the following in the on touch listener. [CODE] Here event is my MotionEvent and v is the View. I am able to get the X and Y positions of the touch, but i want to know which view is being crossed. I get ...
android|view|ontouchlistener|motionevent|ontouch
3
2015-02-18T07:37:20.090Z
2,015
2
7
2
3,358
1
670
129
5
1
true
false
true
false
false
false
low
28,578,449
Get notified when EditText changes in ListView
<p>I have a <code>ListView</code> with multiple <code>EditText</code> views. I want to get notified when text in any if these <code>EditText</code> views changes, so that I can save it before the view is scrolled off screen. I first tried implementing <code>OnKeyListener</code>, but figured out that it does not always ...
I have a ListView with multiple EditText views. I want to get notified when text in any if these EditText views changes, so that I can save it before the view is scrolled off screen. I first tried implementing OnKeyListener , but figured out that it does not always work for soft keyboards. I then implemented TextWatche...
android|android-edittext
0
2015-02-18T07:42:19.137Z
2,015
2
7
2
456
1
594
46
2
0
false
false
false
false
false
false
zero
28,578,461
How to make an app that syncs via internet for Android
<p>I need a bit of help phrased in easy to understand terms. I've tried asking this question on multiple forums, but keep getting answers back that assume some knowledge even though I specified that I have only rudimentary skills in Android building and Java.</p> <p>The user Skynet was very helpful when I asked my ini...
I need a bit of help phrased in easy to understand terms. I've tried asking this question on multiple forums, but keep getting answers back that assume some knowledge even though I specified that I have only rudimentary skills in Android building and Java. The user Skynet was very helpful when I asked my initial questi...
android
-1
2015-02-18T07:43:13.990Z
2,015
2
7
2
75
2
1,131
54
1
2
true
false
false
false
false
true
negative
28,578,474
How to Refresh ExpandableList Without Setting Custom Adapter All Over Again
<p>I have a custom adapter which extends <code>BaseExpandableListAdapter</code>. That adapter uses LinkedHashMap> variable type as source. When a new data comes, i call .setAdapter method to refresh expandable list which is very unefficient and bad coding. When i update that linkedhashmap and call notifydatasetchanged...
I have a custom adapter which extends BaseExpandableListAdapter . That adapter uses LinkedHashMap> variable type as source. When a new data comes, i call .setAdapter method to refresh expandable list which is very unefficient and bad coding. When i update that linkedhashmap and call notifydatasetchanged and notifydatas...
android|android-arrayadapter|expandablelistview|baseadapter
0
2015-02-18T07:44:23.993Z
2,015
2
7
2
52
1
422
75
4
1
true
false
false
false
false
false
zero
28,578,508
Android - Javascript: how to execute jquery in webview
<p>I'm building an app which load a webpage in a webview. In that webpage, i need to programmatically click on some links using Jquery. Now, i know how to execute a Javascript code on the webview programmatically (see below):</p> <pre><code>WebSettings myBrowserSettings = myBrowser.getSettings(); myBrowserSettings.set...
I'm building an app which load a webpage in a webview. In that webpage, i need to programmatically click on some links using Jquery. Now, i know how to execute a Javascript code on the webview programmatically (see below): [CODE] But now, I need to know how implement a Jquery function in my webview; i'm looking for the...
javascript|android|jquery|webview
6
2015-02-18T07:47:14.783Z
2,015
2
7
2
5,725
2
438
54
4
3
true
false
true
false
false
false
medium
28,578,653
GridLayout matches parent by resizing the last column and row only (AndroidStudio)
<p>I have a <code>GridLayout</code> of 4 columns and 5 rows. If set to <code>wrap_content</code> for <code>layout_width</code> and <code>layout_height</code>, all cells are of equal size, as they should be. When I set it to <code>match_parent</code>, however, all cells except those in the last row and column stay the s...
I have a GridLayout of 4 columns and 5 rows. If set to wrap_content for layout_width and layout_height , all cells are of equal size, as they should be. When I set it to match_parent , however, all cells except those in the last row and column stay the same size, with the last row increasing dramatically in height to f...
android|android-studio|grid-layout|android-gridlayout
1
2015-02-18T07:57:14.860Z
2,015
2
7
2
1,154
2
634
82
4
0
false
false
false
false
false
false
low
28,578,701
How to create android shape background programmatically?
<p>How to create this shape programmatically?</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:padding="10dp" android:shape="rectangle"&gt; &lt;solid android:color="#e67e22"/&gt; &lt;corners android:topLef...
How to create this shape programmatically? [CODE] I've tried this simple function which gets corners, colors and sets that to shape: [CODE] But I got this error: The method getDrawable() is undefined for the type LinearLayout
android|android-layout
69
2015-02-18T08:00:24.103Z
2,015
2
8
2
59,617
5
225
56
2
2
true
false
true
true
true
false
high
28,578,716
How to Draw Images Dynamically on Android?
<p>is it a good way to draw image(just some lines), that refresh dynamically, has transparent background and is located between other views? For now I am using surface view, but for transparent background it's need setZOrderOnTop(true) and it looks ugly</p>
is it a good way to draw image(just some lines), that refresh dynamically, has transparent background and is located between other views? For now I am using surface view, but for transparent background it's need setZOrderOnTop(true) and it looks ugly
android|surfaceview
0
2015-02-18T08:01:59.703Z
2,015
2
8
2
256
1
250
42
2
0
false
false
false
false
false
false
zero
28,578,741
Adb not found in ANDROID_HOME Windows 7 x64
<p>I've just started to learn <code>SDK UIAutomator tool, but instantly got stuck. When I run simple code on</code>Python`:</p> <pre><code>from uiautomator import device as d d.info </code></pre> <p>I get following traceback:</p> <pre><code>"Adb not found in $ANDROID_HOME path: %s." % os.environ["ANDROID_HOME"]) OS...
I've just started to learn SDK UIAutomator tool, but instantly got stuck. When I run simple code on Python`: [CODE] I get following traceback: [CODE] I've added both /tools and /platform-tools to system variables- problem occurred, then I created User variable ANDROID_HOME and put C:\Program Files...\platform-tools to ...
android|python|windows|sdk|adb
2
2015-02-18T08:03:36.743Z
2,015
2
8
2
1,572
1
626
43
5
3
true
false
false
false
false
false
low
28,578,755
dont get expected result using method `compareTo()` and `equals()`
<p>I need to compare two dates. which I read one of them from my database that its type is <code>String</code>. so first i convert <code>String</code> to <code>Date</code> in the specific format that i need, then I get the second <code>Date</code> from system again in the format that I want. my problem is even when the...
I need to compare two dates. which I read one of them from my database that its type is String . so first i convert String to Date in the specific format that i need, then I get the second Date from system again in the format that I want. my problem is even when they are same i get unexpected result. my code is: [CODE]...
android|date|equals|compareto
0
2015-02-18T08:04:47.043Z
2,015
2
8
2
71
2
433
66
4
1
true
false
false
false
false
false
zero
28,578,760
onServiceConnected is not called after bindService after 3 or 4 launch of application
<p>I am facing a weird issue .On launch of my app I am connecting Activity to service.Service connection is getting established successfully and works fine in Samsung galaxy S5 and other devices too.But in other devices like Moto E , Moto G etc it works only 2 or 3 time after 3 or 4 launch it dose not works at all. c...
I am facing a weird issue .On launch of my app I am connecting Activity to service.Service connection is getting established successfully and works fine in Samsung galaxy S5 and other devices too.But in other devices like Moto E , Moto G etc it works only 2 or 3 time after 3 or 4 launch it dose not works at all. commun...
android|android-service|bindservice|onserviceconnected
-3
2015-02-18T08:04:58.643Z
2,015
2
8
2
1,466
1
732
85
4
2
true
false
false
false
false
true
negative
28,578,771
How to use the deviceCheck task to run tests on remote devices
<p>On <a href="http://tools.android.com/tech-docs/new-build-system/user-guide">http://tools.android.com/tech-docs/new-build-system/user-guide</a>, the following tasks are defined:</p> <blockquote> <ul> <li><strong>assemble</strong> The task to assemble the output(s) of the project </li> <li><strong>check</strong...
On http://tools.android.com/tech-docs/new-build-system/user-guide , the following tasks are defined: assemble The task to assemble the output(s) of the project check The task to run all the checks. connectedCheck Runs checks that requires a connected device or emulator. they will run on all connected devices in paralle...
android|jenkins|android-studio|gradle|android-espresso
11
2015-02-18T08:06:16.500Z
2,015
2
8
2
1,163
1
797
62
5
0
false
false
false
false
true
false
medium
28,578,790
SendKeys taking to much time to enter text in Android App Automation Using TestNG,AVD Simulator,Appium Server
<p>Here In my case , to enter text in <code>Text Field</code> I am using <code>driver.clear</code> to clear <code>Text Field</code> and then <code>driver.sendKeys</code> to enter text in <code>Text Field</code>.</p> <p>But its taking too much time for <code>WebDriver(Selenium)</code> and <code>Appium Server</code> wit...
Here In my case , to enter text in Text Field I am using driver.clear to clear Text Field and then driver.sendKeys to enter text in Text Field . But its taking too much time for WebDriver(Selenium) and Appium Server with real device and Android Virtual Device also.
android|selenium-webdriver|automation|appium
1
2015-02-18T08:07:29.180Z
2,015
2
8
2
1,116
2
265
109
4
0
false
false
false
false
false
false
low
28,578,830
Why is NDK throwing Undefined Reference error on Build?
<p>I've got this error while I'm trying to build an library with ndk: </p> <blockquote> <p>$ /cygdrive/d/android-ndk-r10d/ndk-build.cmd [armeabi] SharedLibrary : libgame.so</p> <p>jni/core/src/coreApplication.cpp:9: error: undefined reference to 'CCoreMessaging::CCoreMessaging()'</p> <p>jni/core/src/cor...
I've got this error while I'm trying to build an library with ndk: $ /cygdrive/d/android-ndk-r10d/ndk-build.cmd [armeabi] SharedLibrary : libgame.so jni/core/src/coreApplication.cpp:9: error: undefined reference to 'CCoreMessaging::CCoreMessaging()' jni/core/src/coreApplication.cpp:11: error: undefined reference to 'CC...
c++|c|android-ndk
3
2015-02-18T08:10:41.663Z
2,015
2
8
2
7,089
2
1,481
55
3
8
true
false
true
false
false
false
low
28,578,853
C# How to save an images to SD card?
<p>I'm using Xamarin for Android. I load an image and put it in ImageView, then I edit the image. Next I want to save that image to SD card. </p> <p>Anyone know how to save the image into SD card because I only can find it in Java Android. I already try to convert the code from Java to C# but still get an error.</p> ...
I'm using Xamarin for Android. I load an image and put it in ImageView, then I edit the image. Next I want to save that image to SD card. Anyone know how to save the image into SD card because I only can find it in Java Android. I already try to convert the code from Java to C# but still get an error. Any help, thanks ...
c#|android|image|xamarin
1
2015-02-18T08:13:09.547Z
2,015
2
8
2
1,822
2
534
36
4
1
true
false
false
false
false
false
low
28,579,012
Automatically changing toolbar title on activity change
<p>I just migrated to toolbar in my navigation drawer app , now I just cant figure out that how to change the toolbar title according to the current on screen activity or navigation drawer item selected </p>
I just migrated to toolbar in my navigation drawer app , now I just cant figure out that how to change the toolbar title according to the current on screen activity or navigation drawer item selected
android
-1
2015-02-18T08:26:04.047Z
2,015
2
8
2
1,294
2
199
55
1
0
false
false
false
false
false
true
negative
28,579,020
Android :connectedAndroidTest can't find symbol .. -> BuildConfigField gradle
<p>I've set up some custom build tasks with gradle(Android Project), now those tasks work fine. Example of this task:</p> <pre><code>TEST { buildConfigField "String", "KEY", "\"..\"" buildConfigField "String", "CLIENT_ID", "\"\"" buildConfigField "String", "PROTOCOL_VERSION", "\"5.0.0\"" buildConfigFie...
I've set up some custom build tasks with gradle(Android Project), now those tasks work fine. Example of this task: [CODE] Now the problem is, that when I run the predefined task connectedAndroidTest it complains about missing variables in the code, which are the BuildConfigFields that aren't recognised. So my question ...
android|gradle
1
2015-02-18T08:26:45.473Z
2,015
2
8
2
401
1
360
77
2
1
true
false
false
false
false
false
low
28,579,092
How to Integrate Java+Android help to Eclipse?
<p>I am new to <strong>Java</strong> &amp; <strong>Android</strong>, i want to have <strong>Java</strong> &amp; <strong>Android</strong> <strong>help</strong> in <strong>Eclipse</strong> so when i select phrase and press <strong>F1</strong>, it show me detail and usage of that command, something like <strong>MSDN</stro...
I am new to Java & Android , i want to have Java & Android help in Eclipse so when i select phrase and press F1 , it show me detail and usage of that command, something like MSDN offline help in Visual Studio . is there anyway to do this?
java|android|eclipse
0
2015-02-18T08:32:35.790Z
2,015
2
8
2
110
1
238
46
3
0
false
false
false
false
false
false
zero
28,579,147
How to switch Tabs without Animating Fragments?
<p>I have an application with a stack of Fragments added on top of each other.</p> <p>The Fragments are animated to slide in when opened, and slide out when popped from the backstack. Here's a sample of where I open each <code>Fragment</code>:</p> <pre><code> FragmentTransaction ft = getFragmentManager().beginTran...
I have an application with a stack of Fragments added on top of each other. The Fragments are animated to slide in when opened, and slide out when popped from the backstack. Here's a sample of where I open each Fragment : [CODE] The animations work as expected, and everything is good.. except that my App also has a cou...
android|android-fragments
0
2015-02-18T08:36:02.737Z
2,015
2
8
2
171
0
700
47
2
1
true
true
false
false
false
false
zero
28,579,212
Not getting all media files which inserted manullay in sd card
<p>I used below query to load all pictures or video from sd card and it works accordingly. But when I add some video or pictures manually into sd card at different folder then its not loading after query. Please suggest me regarding same.</p> <pre><code> final String[] columns = { MediaStore.Video.Media.DATA, ...
I used below query to load all pictures or video from sd card and it works accordingly. But when I add some video or pictures manually into sd card at different folder then its not loading after query. Please suggest me regarding same. [CODE]
android|media-queries
0
2015-02-18T08:39:41.080Z
2,015
2
8
2
189
1
242
62
2
1
true
false
false
false
false
false
zero
28,579,241
IntelliJ Maven/Gradle Proxy isnt working
<p>I setup a Android Gradle Application with Robolectric.</p> <p>I used this <a href="http://www.bignerdranch.com/blog/all-in-together-android-studio-gradle-and-robolectric/" rel="nofollow">tutorial</a>.</p> <p>It seems working will. I tried to run a test and I got this messages:</p> <pre><code>Downloading: org/robo...
I setup a Android Gradle Application with Robolectric. I used this tutorial . It seems working will. I tried to run a test and I got this messages: [CODE] It seems that Maven cannot connect to any repo. I configured a proxy in my settings.xml , so it SHOULD work. Any idea?
android|maven|intellij-idea|proxy|gradle
3
2015-02-18T08:41:07.923Z
2,015
2
8
2
1,683
1
273
40
5
1
true
false
false
false
false
false
low
28,579,283
TravisCI, building with Gradle and deploying with Crashlytics
<p>I've successfully deployed to Crashlytics from TravisCI with iOS, and now I'm tackling our Android project. </p> <p>I've seen this link: <a href="http://support.crashlytics.com/knowledgebase/articles/388925-beta-distributions-with-gradle" rel="nofollow noreferrer">http://support.crashlytics.com/knowledgebase/articl...
I've successfully deployed to Crashlytics from TravisCI with iOS, and now I'm tackling our Android project. I've seen this link: http://support.crashlytics.com/knowledgebase/articles/388925-beta-distributions-with-gradle and also this stackoverflow post: Automatic Beta Releases with crashlytics but I am not using any f...
android|gradle|travis-ci|crashlytics
1
2015-02-18T08:44:29.147Z
2,015
2
8
2
1,125
1
518
61
4
5
true
false
false
false
false
false
low
28,579,291
getting error: "Failed to validate oauth signature and token" in integrating twitter from Android
<p>I am trying to login twitter using twitter4j-core... my sample code is below</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { ....... ..... ... .. // Tell twitter4j that we want to use it with our app ConfigurationBuilder builder = new ConfigurationBuilder(); builder.setD...
I am trying to login twitter using twitter4j-core... my sample code is below [CODE] if user not logged-in and after clicked btnTwitterLogoutLogin=> [CODE] it show's a webview login activity and call back to the current activity.So in onResume i save the accesstoken and other things to save session.like this: [CODE] thi...
android|android-twitter
0
2015-02-18T08:45:12.283Z
2,015
2
8
2
248
1
511
97
2
4
true
false
false
false
false
false
zero
28,579,364
Display multiple views with merge adpter in android list view
<p>I have a problem where I need to display two text views in one list item.</p> <p>One view shows the item, clicking on which opens the item. The other view is a plus icon, expanding the list with its children.</p> <p>I scratched my head a lot, but couldn't find a way to detect which view was selected in the list vi...
I have a problem where I need to display two text views in one list item. One view shows the item, clicking on which opens the item. The other view is a plus icon, expanding the list with its children. I scratched my head a lot, but couldn't find a way to detect which view was selected in the list view. Somehow, I came...
android|android-listview|view
0
2015-02-18T08:49:21.153Z
2,015
2
8
2
208
2
937
61
3
5
true
false
false
false
false
false
zero
28,579,383
Retrieving image from sqlite to imageview android throws error
<p>Below is my code for retrieving images from a sqlite database in Android. but it throws error after the last line </p> <pre><code>Database = Dbhelper.getWritableDatabase(); String selectQuery = "SELECT Distinct image from Image where year =1997 and QuestionNumber=1"; c = Database.rawQuery(selectQuery, null); ...
Below is my code for retrieving images from a sqlite database in Android. but it throws error after the last line [CODE] after the last line, it throws error What have I missed?
android
0
2015-02-18T08:50:36.533Z
2,015
2
8
2
36
0
177
62
1
1
true
true
false
false
false
false
zero
28,579,438
Android eclipse button and spinner(s)
<p>i want to have a validation for my spinners(using a button), if the user of my app doesn't select an item or the user selected the same value(the spinner have a value "Please select something" and other values) for example in array list of spinner items:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &...
i want to have a validation for my spinners(using a button), if the user of my app doesn't select an item or the user selected the same value(the spinner have a value "Please select something" and other values) for example in array list of spinner items: [CODE] and this validation will triggered whenever the user hit(c...
android
-1
2015-02-18T08:54:01.017Z
2,015
2
8
2
124
1
1,229
37
1
6
true
false
false
false
false
true
negative
28,579,563
how to clone an object java
<p>I'm trying to make a <code>DBManager</code> to allow connections to the DB, so here is the context.</p> <p>I have an <code>abstract class Entitie</code>, that has the structure for every entitie in the DB, the important things in this case are the table name, the id, and an abstract method (<code>setContentValues</...
I'm trying to make a DBManager to allow connections to the DB, so here is the context. I have an abstract class Entitie , that has the structure for every entitie in the DB, the important things in this case are the table name, the id, and an abstract method ( setContentValues ) that get the values from a Cursor and pu...
java|android|entity-framework|sqlite
-1
2015-02-18T09:01:53.193Z
2,015
2
9
2
1,679
2
919
27
4
1
true
false
false
false
false
true
negative
28,579,725
Speed up view inflation
<p>In my app I have to show a calendar with a custom layout for each day. For this I use a RecyclerView with this layout manager: <code>new GridLayoutManager(view.getContext(), 7)</code> and a custom adapter. The adapter will have to inflate between 35 and 49 items (7 for the days of the week and another 4 to 6 rows of...
In my app I have to show a calendar with a custom layout for each day. For this I use a RecyclerView with this layout manager: new GridLayoutManager(view.getContext(), 7) and a custom adapter. The adapter will have to inflate between 35 and 49 items (7 for the days of the week and another 4 to 6 rows of 7 items each fo...
android|android-recyclerview
1
2015-02-18T09:11:07.830Z
2,015
2
9
2
1,824
2
1,039
23
2
5
true
false
false
false
false
false
low
28,579,817
Fail to open activity for second time
<p>In my app when I launch the app, for the first time everything work well and I can navigate between activities but when come back to first activity(MainActivity) and try to go to second activity my app crashed and I don't know why?!</p> <p>In MainActivity:</p> <pre><code> img_khayam.setOnClickListener(new OnCli...
In my app when I launch the app, for the first time everything work well and I can navigate between activities but when come back to first activity(MainActivity) and try to go to second activity my app crashed and I don't know why?! In MainActivity: [CODE] In second activity(KhayamSeason): [CODE] In DataBase class: [CO...
android|database|android-activity
0
2015-02-18T09:17:34.973Z
2,015
2
9
2
1,079
1
990
37
3
4
true
false
false
false
false
false
zero
28,579,851
Stretched the image from camera on the TextureView
<p>I am writing an application using the camera on the textureview. First, the camera is in a small window, and when you click on the button should be stretched to full screen.</p> <p><img src="https://i.stack.imgur.com/JcLx2.png" alt="small window"></p> <p><img src="https://i.stack.imgur.com/6IXbI.png" alt="fuulscre...
I am writing an application using the camera on the textureview. First, the camera is in a small window, and when you click on the button should be stretched to full screen. When textureview in fullscreen mode all right. But when I set to textureview fixed height, picture from the camera is compresses. How to make that...
android|camera|textureview
1
2015-02-18T09:19:09.883Z
2,015
2
9
2
1,462
1
379
50
3
1
true
false
false
false
false
false
low
28,579,891
Android service does not stop until calling activity is killed
<p>I start a service that returns START_STICKY.</p> <pre><code>public void onToggleClicked(View view){ boolean on = ((Switch) view).isChecked(); boolean serviceRunning = isMyServiceRunning(MainService.class); if(on &amp;&amp; !serviceRunning){ startService(new Intent("com.banda.MainService")); ...
I start a service that returns START_STICKY. [CODE] Then when I call [CODE] The onDestroy() on the service is called, but the service keeps running. The next time when i click the toggle button, the isMyServiceRunning() returns false, and another instance of the service is started. When I close the main activity, and k...
java|android
0
2015-02-18T09:21:41.773Z
2,015
2
9
2
251
0
829
62
2
3
true
true
false
false
false
false
zero
28,579,935
Issue in loading contactlist for android client
<p>I have developed an android client similar to chat applications , the application displays the contact list of the user's who are using the same app. </p> <p>The issues is in loading the contact list which is too slow. This is the main page of my application.</p> <p>I have used Aysnc task and running the heavy ope...
I have developed an android client similar to chat applications , the application displays the contact list of the user's who are using the same app. The issues is in loading the contact list which is too slow. This is the main page of my application. I have used Aysnc task and running the heavy operations at the backg...
php|android|mysql
-1
2015-02-18T09:24:18.860Z
2,015
2
9
2
54
2
641
47
3
0
false
false
false
false
false
true
negative
28,579,952
AlertDialog text color and margin
<p>I'm targeting API level 8+. I need a dialog with a title, a message, a checkbox with some text and two classic bottom buttons. I'm trying to use a standard AlertDialog, and method setView to add the checkbox:</p> <p><strong>checkbox.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Frame...
I'm targeting API level 8+. I need a dialog with a title, a message, a checkbox with some text and two classic bottom buttons. I'm trying to use a standard AlertDialog, and method setView to add the checkbox: checkbox.xml [CODE] showDialog method [CODE] My AppBaseTheme has parent "Theme.AppCompat.Light" (/res/values/st...
android|android-layout|android-dialog|android-dialogfragment|android-styles
1
2015-02-18T09:25:27.933Z
2,015
2
9
2
405
1
690
33
5
2
true
false
false
false
false
false
low
28,579,967
Missing FrameworkSampleSource from ExoPlayer
<p>I've been using <code>ExoPlayer</code> for the past couple of days until today which when I tried to build the project I found that there is a missing class named <code>FrameworkSampleSource</code>. </p> <p>I tried looking for it in Exoplayer's source but I can not find it anywhere. </p> <p>It even is gone from ...
I've been using ExoPlayer for the past couple of days until today which when I tried to build the project I found that there is a missing class named FrameworkSampleSource . I tried looking for it in Exoplayer's source but I can not find it anywhere. It even is gone from github ! I wonder what's happened to it?!
android|exoplayer
1
2015-02-18T09:26:10.907Z
2,015
2
9
2
2,618
1
313
44
2
0
false
false
true
false
false
false
low
28,579,986
Sending message to disconnected mobile from wearable
<p>I'm trying to send an event or better a message to the mobile while the wearable is disconnected.</p> <p>Here is the code I'm using:</p> <pre><code>Wearable.MessageApi.sendMessage( mGoogleApiClient, node, event, message).setResultCallback( new ResultCallback&lt;MessageApi.SendMessageResult&gt;() { ...
I'm trying to send an event or better a message to the mobile while the wearable is disconnected. Here is the code I'm using: [CODE] The node ID is cached when onPeerConnected(Node peer) is called so I don't need to query the Node API to get an empty list. However I send the data to the node which is offline. That resu...
android|wear-os|android-wear-data-api
1
2015-02-18T09:27:21.050Z
2,015
2
9
2
376
1
480
52
3
1
true
false
false
false
false
false
low
28,579,987
Rotate Image in ImageView
<p>In my app, the image is captured from the camera and then it displays in a <code>ImageView</code><br> I've done this approach successfully, but when my image is displayed in <code>Imageview</code>, Image display after rotate.<br> I want to rotate Image and then Display in <code>ImageView</code>.<br> When I click ima...
In my app, the image is captured from the camera and then it displays in a ImageView I've done this approach successfully, but when my image is displayed in Imageview , Image display after rotate. I want to rotate Image and then Display in ImageView . When I click image from front camera then image is display proper wi...
android|image|image-rotation
0
2015-02-18T09:27:27.297Z
2,015
2
9
2
2,044
1
556
25
3
1
true
false
false
false
false
false
zero
28,580,084
Square's Retrofit response parsing logic: streaming?
<p>Could you please explain Square's Retrofit response parsing logic. I'm interested in case when we should receive &amp; parse a big json (>100Kb) - will Retrofit wait while all content will be received from server and only than parse it, or it will start to parse it immediately while getting stream data? My goal is t...
Could you please explain Square's Retrofit response parsing logic. I'm interested in case when we should receive & parse a big json (>100Kb) - will Retrofit wait while all content will be received from server and only than parse it, or it will start to parse it immediately while getting stream data? My goal is to speed...
json|retrofit|android-networking
7
2015-02-18T09:31:46.793Z
2,015
2
9
2
1,395
1
398
52
3
0
false
false
false
false
false
false
medium
28,580,124
Hit url in phone browser and launch play store apps in phone with app details
<p>We hit the market place url on phone browser and it open play store inside phone browser but we want to open a Play store app in phone.</p> <p>Please suggest any idea about this.</p>
We hit the market place url on phone browser and it open play store inside phone browser but we want to open a Play store app in phone. Please suggest any idea about this.
android
0
2015-02-18T09:33:51.320Z
2,015
2
9
2
90
1
171
77
1
0
false
false
false
false
false
false
zero
28,580,129
Not the right Activity java.lang.SecurityException: Permission Denial: starting Intent
<p>I read all other answers about this problem but it doesn't help me.</p> <p>I have an app (MyApp) which include a library (named lib (example)). In my app, I call LoginActivity in my lib. But I have this exception.</p> <pre><code>java.lang.SecurityException: Permission Denial: starting Intent { cmp=fr.myotherapp/....
I read all other answers about this problem but it doesn't help me. I have an app (MyApp) which include a library (named lib (example)). In my app, I call LoginActivity in my lib. But I have this exception. [CODE] Myotherapp is a other app which I created and installed in the same device. I don't set "exported"="true" ...
android|android-activity|securityexception
0
2015-02-18T09:34:15.253Z
2,015
2
9
2
236
1
558
86
3
2
true
false
false
false
false
false
zero
28,580,160
HTTPClient::KeepAliveDisconnected exception Android- Testing
<p>I am using Calabash to test my UI. What i am doing is to have access to Share Preferences following this:</p> <p><a href="https://github.com/calabash/calabash-android/blob/master/documentation/ruby_api.md" rel="nofollow">https://github.com/calabash/calabash-android/blob/master/documentation/ruby_api.md</a></p> <p>...
I am using Calabash to test my UI. What i am doing is to have access to Share Preferences following this: https://github.com/calabash/calabash-android/blob/master/documentation/ruby_api.md But sometimes I get this issue.... [CODE]
android|calabash
0
2015-02-18T09:35:39.073Z
2,015
2
9
2
643
0
230
60
2
1
true
true
false
false
false
false
zero
28,580,184
GoogleMap v2 is not being displayed when wifi turned off
<p>I am using GoogleMap v2 API in my application. When I do a fresh install and I am connected to wifi, the Google map loads and displays fine in my fragment. If however, I do a fresh install and I am not connected to a wifi network, the map never gets displayed. The code below executes exactly the same in both cases a...
I am using GoogleMap v2 API in my application. When I do a fresh install and I am connected to wifi, the Google map loads and displays fine in my fragment. If however, I do a fresh install and I am not connected to a wifi network, the map never gets displayed. The code below executes exactly the same in both cases and ...
android
1
2015-02-18T09:37:05.373Z
2,015
2
9
2
101
1
583
56
1
3
true
false
false
false
false
false
low
28,580,189
Android app do something on close service/app
<p>I have an app which has a queue in the background to do something. I also have a service which shows and updates a notification in the notification-center about the progress of the queue (because it is not depending on a certain activity).</p> <p>Notification be like: "there are 4 items left".</p> <p>All works gre...
I have an app which has a queue in the background to do something. I also have a service which shows and updates a notification in the notification-center about the progress of the queue (because it is not depending on a certain activity). Notification be like: "there are 4 items left". All works great except the app i...
android|xamarin|android-service|lifecycle|android-event
-1
2015-02-18T09:37:21.600Z
2,015
2
9
2
695
1
687
45
5
0
false
false
false
false
false
true
negative
28,580,249
android, why popbackstack save current fragment before removing?
<p>I got into this crash log when I'm on a fragment and call popBackStackImmediate() to return to previous one, I'm wondering why Android code saves current fragment before removing it. Will it allow 'forward' later (similar to browser behaviour)? or any other reason?</p> <pre><code>android.view.View.saveHierarchyStat...
I got into this crash log when I'm on a fragment and call popBackStackImmediate() to return to previous one, I'm wondering why Android code saves current fragment before removing it. Will it allow 'forward' later (similar to browser behaviour)? or any other reason? [CODE] Thanks [CODE]
android|android-fragments
2
2015-02-18T09:40:31.377Z
2,015
2
9
2
558
0
286
64
2
2
true
true
false
false
false
false
low
28,580,336
Java - Thread exiting with uncaught exception (group=0x95d40b20)
<p>While I was deploying I got this problem:</p> <pre><code>9389-9389/com.example.yashpal.greatdealindia I/dalvikvm-heap﹕ Grow heap (frag case) to 3.100MB for 281892-byte allocation 02-18 15:01:50.875 9389-9398/com.example.yashpal.greatdealindia D/dalvikvm﹕ GC_FOR_ALLOC freed &lt;1K, 22% free 3143K/4004K, paused 11...
While I was deploying I got this problem: [CODE] How shall I solve this? Manifest.xml : [CODE]
java|android|android-activity|nullpointerexception|crash
-4
2015-02-18T09:44:59.167Z
2,015
2
9
2
1,647
1
94
64
5
2
true
false
false
false
false
true
negative
28,580,365
FragmentPageAdapter works in a strange way
<p>Since in Android L the the Action bar navigation modes are deprecated I'm searching an other way to have the tab and I found that is possible to use the PagerTabStrip <code>(android.support.v4.view.PagerTabStrip)</code>, so I created a FragmentPageAdapter in this way:</p> <pre><code>public class TitleAdapter extend...
Since in Android L the the Action bar navigation modes are deprecated I'm searching an other way to have the tab and I found that is possible to use the PagerTabStrip (android.support.v4.view.PagerTabStrip) , so I created a FragmentPageAdapter in this way: [CODE] The strange way that i see in LogCat is that the method ...
android|android-viewpager|android-5.0-lollipop|android-tabs
0
2015-02-18T09:46:11.850Z
2,015
2
9
2
80
1
757
42
4
2
true
false
false
false
false
false
zero
28,580,455
How to redirect user to application's detail page with use of Applinks?
<p>My requirement is user should redirect to particulate application page after clicking the facebook post.</p> <p>I took reference from this link: <a href="https://stackoverflow.com/questions/23559208/cannot-get-the-new-applinks-to-work-on-ios-or-android">Cannot get the new AppLinks to work on iOS or Android</a> and ...
My requirement is user should redirect to particulate application page after clicking the facebook post. I took reference from this link: Cannot get the new AppLinks to work on iOS or Android and created demo according to that. I am able to generate canonicalUrl (canonical_url : https://fb.me/7686509 ******* )with use ...
android|facebook-graph-api|deep-linking|applinks
3
2015-02-18T09:50:39.687Z
2,015
2
9
2
1,036
2
1,075
71
4
1
true
false
false
false
false
false
low
28,580,462
How to move multiple images in one activity in android
<p>I have multiple image views in activity. I want to add touch,zoom in, zoom out, rotate image views. I am trying this but am getting only one image view will be move, rotate, zoom. other images does not touch. How can i do this. any one can tell me.</p> <pre><code>Main.class @Override protected void onCreate(Bundl...
I have multiple image views in activity. I want to add touch,zoom in, zoom out, rotate image views. I am trying this but am getting only one image view will be move, rotate, zoom. other images does not touch. How can i do this. any one can tell me. [CODE]
android|android-imageview|ontouchlistener
0
2015-02-18T09:50:59.577Z
2,015
2
9
2
1,237
2
255
54
3
1
true
false
false
false
false
false
zero
28,580,512
ListView setting background color to an item ERROR
<p>Well, I have a horizontal LinearLayout, with items of a custom class.</p> <p><strong>What I want:</strong> Change background color of the item i've clicked (like if it's selected). If user clicks other item, the first one changes again to original color and the new one changes to "selected color"</p> <p><strong>Wh...
Well, I have a horizontal LinearLayout, with items of a custom class. What I want: Change background color of the item i've clicked (like if it's selected). If user clicks other item, the first one changes again to original color and the new one changes to "selected color" What is my problem: This works fine when all i...
android|listview|android-listview|background-color|onitemclicklistener
0
2015-02-18T09:53:20.183Z
2,015
2
9
2
299
1
670
50
5
1
true
false
false
false
false
false
zero
28,580,518
Unable to set visibility of any relative layout in a View Group in Android
<p>I am using a floating action button in my activity. I have created a related layout with a black opacity background. I want it to appear when the floating action button is clicked. The relative layout will appear behind the action button to make it look prominent. </p> <p>Here is my xml layout </p> <pre><code>&lt;...
I am using a floating action button in my activity. I have created a related layout with a black opacity background. I want it to appear when the floating action button is clicked. The relative layout will appear behind the action button to make it look prominent. Here is my xml layout [CODE] I am basically trying to s...
android
1
2015-02-18T09:53:25.767Z
2,015
2
9
2
1,107
1
597
74
1
2
true
false
false
false
false
false
low
28,580,519
Change Framelayout top view in runtime
<p>I have a frameLayout with two child:</p> <pre><code> &lt;FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:clickable="true" android:onClick="start"&gt; &lt;ImageView android:id="@+id/iv1" android:layout_width="70dp" an...
I have a frameLayout with two child: [CODE] In the code above, iv2 is on top of the iv1. I want to bring iv1 on top of the iv2 in runtime. (using animation) I have no problem in using animation but how can I bring iv1 on top of iv2 as it is define in xml layout to be behind iv2?
android|animation|android-framelayout
0
2015-02-18T09:53:27.583Z
2,015
2
9
2
494
1
279
38
3
1
true
false
false
false
false
false
zero
28,580,598
Finding xpath by using appium with selenium
<p>I was trying to find the xpath for the following code using uiautomatorviewer for the native android application with appium 1.3.4.1 + selenium 2.44 versions</p> <p>Here is the screenshot,</p> <p><img src="https://i.stack.imgur.com/2lVwn.jpg" alt="enter image description here"></p> <p>I tried the following xpath ...
I was trying to find the xpath for the following code using uiautomatorviewer for the native android application with appium 1.3.4.1 + selenium 2.44 versions Here is the screenshot, I tried the following xpath to find the element "Please enter Roll No..Editing." [CODE] I want to identify the text filed by using xpath a...
selenium-webdriver|appium|android-uiautomator
0
2015-02-18T09:57:05.930Z
2,015
2
9
2
631
1
367
43
3
1
true
false
false
false
false
false
zero
28,580,634
Run my code in already existing and running thread
<p>I'm using 3rd party which drawing to a view something.</p> <p>I got the process threads list and i found the thread they are using to draw their stuff in.</p> <p>I want to add my drawing code in this thread - meaning when they are finishing drawing their stuff in the thread then my code will run and then the threa...
I'm using 3rd party which drawing to a view something. I got the process threads list and i found the thread they are using to draw their stuff in. I want to add my drawing code in this thread - meaning when they are finishing drawing their stuff in the thread then my code will run and then the thread will end (or what...
java|android|multithreading
0
2015-02-18T09:58:40.627Z
2,015
2
9
2
69
1
849
50
3
0
false
false
false
false
false
false
zero
28,580,663
titanium android custom theme no window actionbar
<p>I've an android app written using titanium sdk. the new sdk (<code>3.5.0GA</code>) changed things about managing the default window title and actionbar behaviour.</p> <p>the <a href="http://www.appcelerator.com/blog/2014/08/hiding-the-android-actionbar/" rel="nofollow">official blog offers 3 ways</a> to solve this ...
I've an android app written using titanium sdk. the new sdk ( 3.5.0GA ) changed things about managing the default window title and actionbar behaviour. the official blog offers 3 ways to solve this problem ( official doc ): the first solution ( $.index.activity.actionBar.hide(); ) has a problem: the actionbar is shown ...
android|xml|titanium
0
2015-02-18T09:59:49.060Z
2,015
2
9
2
980
1
933
49
3
3
true
false
false
false
false
false
zero
28,580,685
Failed in "make" command in compiling android source
<p>Hy... I'm building an android ROM from source. I have successfully executed source build/envsetup.sh then lunch. Then for the last, I'm facing some errors in "make". These are the errors :</p> <pre><code>*Checking API : checkapi-last out/target/common/obj/PACKAGING/public_api.txt:23512:error 12: Class android.telep...
Hy... I'm building an android ROM from source. I have successfully executed source build/envsetup.sh then lunch. Then for the last, I'm facing some errors in "make". These are the errors : [CODE] I have searched on google how to solve these errors, but they said that it's just about the java. Then I checked my java and...
android|android-source|rom
2
2015-02-18T10:00:52.453Z
2,015
2
10
2
1,267
2
604
52
3
1
true
false
false
false
false
false
low
28,580,689
Dynamically load items to ExpandableListView using ExpandableListAdapter
<p>This is my Activity I used to display my items in Expandable List View. At the moment I have hard coded the values which should come to the Expandable List View.</p> <pre><code>String subTotal = getIntent().getStringExtra("subTotal"); // I have these 2 values String price = getIntent().getStringExtra("price"); </co...
This is my Activity I used to display my items in Expandable List View. At the moment I have hard coded the values which should come to the Expandable List View. [CODE] These are the 2 values I wanna load dynamically. In the below I have prepareListData() , where I have hard coded values to my ExpandableListView. [CODE...
android|expandablelistadapter
0
2015-02-18T10:00:57.630Z
2,015
2
10
2
1,491
1
444
72
2
3
true
false
false
false
false
false
zero
28,580,719
notifyDataSetChanged is not working inside DialogFragment
<p>I'm really stuck in this problem for 2 days, my problem is i have a dialog <code>Fragment</code> inside my <code>ArrayAdapter</code> class which have a button that call an <code>AsyncTask</code> in this <code>Adapter</code> class, and at the end of the <code>AsyncTask</code> i'm changing list data and call <code>not...
I'm really stuck in this problem for 2 days, my problem is i have a dialog Fragment inside my ArrayAdapter class which have a button that call an AsyncTask in this Adapter class, and at the end of the AsyncTask i'm changing list data and call notifayDataSetChanged but it's not working, it works only outside the DialogF...
android|custom-lists|notifydatasetchanged
1
2015-02-18T10:02:32.440Z
2,015
2
10
2
428
1
368
57
3
0
false
false
false
false
false
false
low
28,580,720
TaskStackBuilder creates a Blank Screen before loading activity in android
<p>While using TaskStackBulider for removing previous pages,</p> <pre><code> Intent i = new Intent(DeepLinkingActivity.this, HomePageclass); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); i.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); i.setFlags(Intent.FLAG_ACTIVI...
While using TaskStackBulider for removing previous pages, [CODE] It is clearing all previous pages ,But it shows a white screen before loading HomePage.Can anybody know about this issue?In Home page , i used [CODE]
android|android-intent|taskstackbuilder
1
2015-02-18T10:02:34.320Z
2,015
2
10
2
341
1
214
74
3
2
true
false
false
false
false
false
low
28,580,728
setScaleX() doesn't change actual view size
<p>I've got a RelativeLayout which is filled with different views (Buttons, Checkboxes...) during runtime.</p> <p>This container lays within an View called <code>TwoDScrollView.java</code>. This is basically a scrollview, but allows me to scroll in both directions. Even diagonal.</p> <p>It's obviously only scrollable...
I've got a RelativeLayout which is filled with different views (Buttons, Checkboxes...) during runtime. This container lays within an View called TwoDScrollView.java . This is basically a scrollview, but allows me to scroll in both directions. Even diagonal. It's obviously only scrollable if its content is bigger than ...
android|scaling
3
2015-02-18T10:03:03.590Z
2,015
2
10
2
3,683
2
810
43
2
1
true
false
true
false
false
false
low
28,580,772
Android Studio regex replace with Lowercase
<p>How can I convert the matched group to a lower case when doing find and replace? I tried $L$1 to replace the first match to a lowercase for no avail. $1 works but does not convert the text to a lowercase.</p> <p>Thank you</p>
How can I convert the matched group to a lower case when doing find and replace? I tried $L$1 to replace the first match to a lowercase for no avail. $1 works but does not convert the text to a lowercase. Thank you
android|regex|lowercase
2
2015-02-18T10:04:50.673Z
2,015
2
10
2
1,088
0
214
43
3
0
false
true
false
false
false
false
low
28,580,826
Android Studio keeps generating .android folder in wrong location on computer running OneDrive
<p><strong>Problem :</strong><br> Android Studio keeps making .andoid cache folder in wrong direction.</p> <p><strong>Background :</strong><br> I am using Windows 8.1 pro X64 and OneDrive. I move some of my Windows Special folders like Desktop folder to my OneDrive folder to keep it synced between my computers. I usua...
Problem : Android Studio keeps making .andoid cache folder in wrong direction. Background : I am using Windows 8.1 pro X64 and OneDrive. I move some of my Windows Special folders like Desktop folder to my OneDrive folder to keep it synced between my computers. I usually put currently active work files on Desktop, and k...
java|android|windows|directory|onedrive
2
2015-02-18T10:07:31.593Z
2,015
2
10
2
1,478
1
2,775
94
5
0
false
false
false
false
false
false
low
28,580,852
Button Menu Likes Evernote
<p>There are tutorial to create menu like this? (bottom right)</p> <p><img src="https://i.stack.imgur.com/tGSVv.png" alt="enter image description here"></p> <p>I need tutorial to create it. Thank you, Regards!</p>
There are tutorial to create menu like this? (bottom right) I need tutorial to create it. Thank you, Regards!
android|user-interface
0
2015-02-18T10:08:45.870Z
2,015
2
10
2
299
1
109
26
2
0
false
false
false
false
false
false
zero
28,580,862
Android SQLite: order by many columns
<p>TABLE_NAME (COL1, COL2, COL3, COL4);</p> <pre><code> Cursor cur = db.query(TABLE_NAME, null, null, null, null, null, COL1); </code></pre> <p>This way we get the entries ordered by COL1 values. If some of them has the same COL1 value SQLite uses the same order as when they were stored by the previous insertion...
TABLE_NAME (COL1, COL2, COL3, COL4); [CODE] This way we get the entries ordered by COL1 values. If some of them has the same COL1 value SQLite uses the same order as when they were stored by the previous insertions. Is it possible to define many degrees of sorting? For example, if two or more entries has the same COL1 ...
android|sqlite
0
2015-02-18T10:09:13.953Z
2,015
2
10
2
1,167
1
647
37
2
3
true
false
false
false
false
false
zero
28,580,894
Can we Draw line in android canvas between two points given by gyroscope?
<p>Is it possible to draw a line from Point A(where user touched first) and Point B(where user touched second) in android over a camera. </p> <p>The user can touch first point and rotate his camera in other direction to tap second point. </p> <p>I am using <code>gyroscope</code>, <code>accelerometer</code> and <code>...
Is it possible to draw a line from Point A(where user touched first) and Point B(where user touched second) in android over a camera. The user can touch first point and rotate his camera in other direction to tap second point. I am using gyroscope , accelerometer and magnetometer (Sensor Fusion) and I get x,y,z co-ordi...
android|android-canvas|accelerometer|gyroscope
22
2015-02-18T10:10:36.217Z
2,015
2
10
2
1,263
1
451
73
4
0
false
false
false
false
true
false
high
28,580,900
[Jenkins]-How to use remote host repository(i.e., another computer files ) instead of using github repository?
<p>i created an Jenkins android application build using the git-hub repository .now i have to access the remote host that means another computer and fetch that remote host files then make a build in my computer. </p> <ul> <li>can any one suggest me solution for this?</li> <li>Is this possible to build remote host fil...
i created an Jenkins android application build using the git-hub repository .now i have to access the remote host that means another computer and fetch that remote host files then make a build in my computer. can any one suggest me solution for this? Is this possible to build remote host file ? if it is possible means,...
android|git|jenkins
-2
2015-02-18T10:10:47.337Z
2,015
2
10
2
55
1
368
110
3
0
false
false
false
false
false
true
negative
28,580,927
Need Documentation or API on Bluetooth Connectivity between Polytel Glucose Meter Adapter With Android Application
<p>I have a task to develop an android application that will communicate with a glucose meter via bluetooth.The glucose meter is connected to a bluetooth adapter which will be responsible for transmitting the glucose results via bluetooth to the android application.</p> <p>The first challenge i have is that i have not...
I have a task to develop an android application that will communicate with a glucose meter via bluetooth.The glucose meter is connected to a bluetooth adapter which will be responsible for transmitting the glucose results via bluetooth to the android application. The first challenge i have is that i have not been able ...
android|bluetooth|android-bluetooth
1
2015-02-18T10:12:28.410Z
2,015
2
10
2
532
0
816
114
3
1
true
true
false
false
false
false
low
28,581,004
how to initate Button in a ListFragment
<p>I have a more or less complex problem. I'll try to describe it:</p> <p>It all started with this problem: <a href="https://stackoverflow.com/questions/28558164/how-do-i-change-text-color-when-button-was-pressed-once-android/28558758?noredirect=1#comment45438176_28558758">How do i change text color when button was pr...
I have a more or less complex problem. I'll try to describe it: It all started with this problem: How do i change text color when button was pressed once (Android) So I have a LoginActivity which is my start activity. After you're logged in you will get to my " mainActivity " which extends ActionBarActivity and has swi...
java|android
0
2015-02-18T10:15:57.123Z
2,015
2
10
2
59
0
1,713
39
2
2
true
true
false
false
false
false
zero
28,581,050
load childview data from server in ExpandableListView android
<p>I am using <code>ExpandableListview</code> to load the dynamic data from server.</p> <p>Each <code>Group Header</code> has different <code>Child Layout</code>.</p> <p>On click on <code>Group Header</code> the <code>Child view</code> loads data from server. I am display the images retrieved from server , but it doe...
I am using ExpandableListview to load the dynamic data from server. Each Group Header has different Child Layout . On click on Group Header the Child view loads data from server. I am display the images retrieved from server , but it doesn't works as expected Not all images are displayed in the Child view [CODE] Backgr...
android|expandablelistview|asynctaskloader
0
2015-02-18T10:18:02.973Z
2,015
2
10
2
831
0
363
61
3
3
true
true
false
false
false
false
zero
28,581,079
Text indicator in PagerSlidingTabStrip in a fragment not sliding when pressing back
<p>I have a fragment with viewPager inside it, I'm using PagerSlidingTabStrip library, I have three tabs, one of this tabs have a button that starts a new fragment, when pressing back and returning to the viewPager the text indicator is not switching any more, I have extended the adapter of the viewPager to be Fragmen...
I have a fragment with viewPager inside it, I'm using PagerSlidingTabStrip library, I have three tabs, one of this tabs have a button that starts a new fragment, when pressing back and returning to the viewPager the text indicator is not switching any more, I have extended the adapter of the viewPager to be FragmentSta...
android
0
2015-02-18T10:19:05.927Z
2,015
2
10
2
119
1
446
83
1
0
false
false
false
false
false
false
zero
28,581,083
Passing custom object at submit
<p>I am working on an Android application. I mostly work on Spring, so don't know much about android development, so I have installed android annotations and Spring Rest template to connect to server to send data. Currently what I am trying to do, to fill in some text fields in the android app, the variables are menti...
I am working on an Android application. I mostly work on Spring, so don't know much about android development, so I have installed android annotations and Spring Rest template to connect to server to send data. Currently what I am trying to do, to fill in some text fields in the android app, the variables are mentioned...
java|android
0
2015-02-18T10:19:17.047Z
2,015
2
10
2
48
1
767
31
2
3
true
false
false
false
false
false
zero
28,581,134
Interface is not being called android
<p>I have used a interface to determine weather the async task is finish or not.But when i use the interface,the 2 methods of that interface is not being called.</p> <p>The Custom Adapter Class</p> <pre><code>public class MyResourceCustomAdaper extends BaseAdapter { static GetMatchingJobsArray getMatchingJobsAr...
I have used a interface to determine weather the async task is finish or not.But when i use the interface,the 2 methods of that interface is not being called. The Custom Adapter Class [CODE] Class where i am implementing the interface [CODE] Here in this activity why my interface is not being called???
java|android|interface
0
2015-02-18T10:21:57.757Z
2,015
2
10
2
1,019
1
303
37
3
2
true
false
false
false
false
false
zero
28,581,137
Move a view by translate animation Android
<p>I am trying to move a view on the screen to a random point by clicking it, then have it stay there and move again by click, however, the view only does the correct movement when starting at 0,0 coordinates, once changed, it is animating from random position to random position and finishing on a third random position...
I am trying to move a view on the screen to a random point by clicking it, then have it stay there and move again by click, however, the view only does the correct movement when starting at 0,0 coordinates, once changed, it is animating from random position to random position and finishing on a third random position. h...
android|view|android-animation|translate-animation
0
2015-02-18T10:22:03.203Z
2,015
2
10
2
982
1
435
42
4
1
true
false
false
false
false
false
zero
28,581,139
Replicating new Google Play Music's ListView
<p>A new, refreshed Google Play Music app has been out on the Play Store for a while now. It brought additions to GPM's already awesome UI such as full-height navigation drawer, proper CardView for albums and many more.</p> <p>The biggest wow-factor for me, though, is their ListView. Take a look at this:</p> <p><img ...
A new, refreshed Google Play Music app has been out on the Play Store for a while now. It brought additions to GPM's already awesome UI such as full-height navigation drawer, proper CardView for albums and many more. The biggest wow-factor for me, though, is their ListView. Take a look at this: It looks incredibly good...
android|material-design
1
2015-02-18T10:22:09.717Z
2,015
2
10
2
887
0
793
44
2
0
false
true
false
false
false
false
low
28,581,178
Android - EBADF (Bad file number) OnClickInfoMarker
<p>I have searched related issues but can't find it. I create an InfoWindowMarker which shows Picture, Name and Address. Then i create OnInfoWindowClickListener that will showing Latitude and Longitude of selected Marker. But when i click the Info Window i got this error message.</p> <p>Logcat:</p> <blockquote> <p>...
I have searched related issues but can't find it. I create an InfoWindowMarker which shows Picture, Name and Address. Then i create OnInfoWindowClickListener that will showing Latitude and Longitude of selected Marker. But when i click the Info Window i got this error message. Logcat: com.xxxxxxxx.xxxxxxxxxx E/Zygote﹕ ...
java|android|google-maps
2
2015-02-18T10:23:38.760Z
2,015
2
10
2
3,755
1
1,104
51
3
2
true
false
true
false
false
false
low
28,581,211
How to project clean in Android Studio?
<p>I am new in Android Studio so I face some problem with it. I am looking for a way how to project clean.</p> <p>In Eclipse I would do <code>Project -&gt; Clean -&gt; OK</code> but I don't know how it is done with Android Studio.</p>
I am new in Android Studio so I face some problem with it. I am looking for a way how to project clean. In Eclipse I would do Project -> Clean -> OK but I don't know how it is done with Android Studio.
android-studio|code-cleanup
37
2015-02-18T10:25:34.267Z
2,015
2
10
2
100,672
2
201
39
2
0
false
false
true
true
true
false
high
28,581,244
Trouble retrieving JSON on Android
<p>I am trying to download weather data from OpenWeatherMap api. There are lots of tutorials for this and it seems really simple in practise, but I cannot get it working!</p> <p>If I got to the url <a href="http://api.openweathermap.org/data/2.5/weather?q=rome" rel="nofollow">Click Here</a> </p> <p>You can see the...
I am trying to download weather data from OpenWeatherMap api. There are lots of tutorials for this and it seems really simple in practise, but I cannot get it working! If I got to the url Click Here You can see the JSON is formed.. Using my code: [CODE] I don't receive anything, line is always null.
android|json|parsing|httpconnection
0
2015-02-18T10:26:55.787Z
2,015
2
10
2
136
4
300
34
4
1
true
false
false
false
false
false
zero
28,581,266
List files from the root folder with onedrive Android API
<p>I'm using OneDrive in an Android App and I can't find how to list the root folder contents.</p> <p>I'm using the <a href="https://msdn.microsoft.com/en-us/library/dn631814.aspx" rel="nofollow">LiveSDK</a></p> <p>Thanks for your help</p>
I'm using OneDrive in an Android App and I can't find how to list the root folder contents. I'm using the LiveSDK Thanks for your help
android|onedrive
0
2015-02-18T10:27:56.667Z
2,015
2
10
2
1,081
1
134
57
2
0
false
false
false
false
false
false
zero
28,581,336
android unBindService callback service
<p>In Android services, when we call <code>bindService</code> , <code>onServiceConnected</code> will be triggered where I can get the service instance. But, when I call <code>unBindService</code> or <code>stopService</code>, <code>onServiceDisconnected</code> will never be triggered. As per the <a href="http://develope...
In Android services, when we call bindService , onServiceConnected will be triggered where I can get the service instance. But, when I call unBindService or stopService , onServiceDisconnected will never be triggered. As per the doc , onServiceDisconnected will only be called when the app gets killer or crashed. So, wh...
android|service
0
2015-02-18T10:31:14.260Z
2,015
2
10
2
675
0
1,022
38
2
0
false
true
false
false
false
false
zero
28,581,365
Array of tablerows - can't give it context?
<p>So for my code, I'm trying to fill a timetable with data from a database. The best way for me to do this is to create a blank timetable, then fill it in afterwards. I know exactly how many rows I need, so I'm using an array of TableRows, then adding a certain amount of TextViews to each row.</p> <p>However, it cras...
So for my code, I'm trying to fill a timetable with data from a database. The best way for me to do this is to create a blank timetable, then fill it in afterwards. I know exactly how many rows I need, so I'm using an array of TableRows, then adding a certain amount of TextViews to each row. However, it crashes after e...
java|android|tablerow|android-context|timetable
-1
2015-02-18T10:32:31.020Z
2,015
2
10
2
110
1
581
43
5
1
true
false
false
false
false
true
negative
28,581,393
IntelliJ dont stop in breakpoints when debugging android application
<p>I connect the debugger to my emulator and the idea console say : </p> <pre><code>Connected to the target VM, address: localhost:8612,transport:`socket` </code></pre> <p>But when i want to test my app it doesnt stop in Break points ! See this screen shot : </p> <p><img src="https://i.stack.imgur.com/ChyLv.png...
I connect the debugger to my emulator and the idea console say : [CODE] But when i want to test my app it doesnt stop in Break points ! See this screen shot : And this : I test it with emulator and physical device and also rebuild project and also restart idea ! but doesn't work.
android|debugging|intellij-idea
15
2015-02-18T10:34:15.323Z
2,015
2
10
2
1,369
5
280
68
3
1
true
false
false
false
true
false
medium
28,581,406
Preloading a fragment when popBackStack
<p>I have a problem with the backstack behaviour. That is what I am doing:</p> <pre><code>add(fragment1) + addToBackStack(null) replace(fragment2) + addToBackStack(null) </code></pre> <p>What is happening:</p> <ul> <li>Fragment 1 is added and in the backstack</li> <li>Then the second fragment replaces the first one ...
I have a problem with the backstack behaviour. That is what I am doing: [CODE] What is happening: Fragment 1 is added and in the backstack Then the second fragment replaces the first one and it is added to the backstack. Now I want to change my last backstacked fragment with a new transaction which put a new backstack ...
android|android-fragments|fragment-backstack
0
2015-02-18T10:34:35.260Z
2,015
2
10
2
964
1
1,290
39
3
3
true
false
false
false
false
false
zero
28,581,436
multiple popups in android
<p>I have two Linear Layouts in single activity . I want to display custom popups on each of them when clicked. When I click on first layout, popup apperas,then on clicking on 2nd layout ,both popups are displayed. how can i have only single popup displayed at a time?</p> <p>this is my code </p> <pre><code> workLi...
I have two Linear Layouts in single activity . I want to display custom popups on each of them when clicked. When I click on first layout, popup apperas,then on clicking on 2nd layout ,both popups are displayed. how can i have only single popup displayed at a time? this is my code [CODE] i have done same thing on other...
android|popup
2
2015-02-18T10:35:38.563Z
2,015
2
10
2
2,072
1
334
26
2
1
true
false
false
false
false
false
low
28,581,543
Resize bitmap to fit full screen in custom view
<p>I am trying to import an image from a photo path which I grab from another activity which I had the user choose the image from their gallery. I want the imported photo to resize and display on the full screen display custom view. I want the user to be able to draw on the full image. My issue that I am having is that...
I am trying to import an image from a photo path which I grab from another activity which I had the user choose the image from their gallery. I want the imported photo to resize and display on the full screen display custom view. I want the user to be able to draw on the full image. My issue that I am having is that wh...
android|image|bitmap|resize
1
2015-02-18T10:40:26.750Z
2,015
2
10
2
980
0
855
47
4
1
true
true
false
false
false
false
low
28,581,647
How to simulate App Tombstoning with Android emulators? (for Xamarin.Android and MVVMCross)
<p>I'm using Xamarin.Android combined with MVVMCross and I'm researching its ViewModels lifecycles. </p> <p>I can't get ReloadState within MvxViewModel to hit? (but SaveState in MvxViewModel do get hit when I power down the emulator)</p> <p>How to you simulate app Tombstoning with Android apps in the (Xamarin) emulat...
I'm using Xamarin.Android combined with MVVMCross and I'm researching its ViewModels lifecycles. I can't get ReloadState within MvxViewModel to hit? (but SaveState in MvxViewModel do get hit when I power down the emulator) How to you simulate app Tombstoning with Android apps in the (Xamarin) emulator? or is it a bug w...
android|xamarin|mvvmcross
1
2015-02-18T10:45:33.030Z
2,015
2
10
2
686
1
454
91
3
0
false
false
false
false
false
false
low
28,581,652
Problems with GestureListener
<p>I have a class declared as this:</p> <pre><code>public class TestActivity extends Activity implements OnGestureListener { </code></pre> <p>The interface im implementing is <code>import android.view.GestureDetector.OnGestureListener;</code></p> <p>As class var i have a GestureDetector (<code>private GestureDetecto...
I have a class declared as this: [CODE] The interface im implementing is import android.view.GestureDetector.OnGestureListener; As class var i have a GestureDetector ( private GestureDetector gestureDetector; ) which i init on the onCreate event: gestureDetector = new GestureDetector(this, this); And after this, i over...
android|gesture-recognition|gestures
1
2015-02-18T10:46:25.910Z
2,015
2
10
2
308
1
525
29
3
2
true
false
false
false
false
false
low
28,581,687
Calling SlidingMenu in another class
<p>i have a noob problem (i think). I using jfeinstein10/SlidingMenu - in Android Studio, everything works fine, but i have a small nooby problem. I create my SlidngMenu object in onCreate method` </p> <pre><code>SlidingMenu menu = new SlidingMenu(this); menu.setMode(SlidingMenu.LEFT); menu.setTouchMod...
i have a noob problem (i think). I using jfeinstein10/SlidingMenu - in Android Studio, everything works fine, but i have a small nooby problem. I create my SlidngMenu object in onCreate method` [CODE] ListView fill and other actions are in fragmentActivity and this work fine, but i wan't to close menu onBackPressed: [C...
java|android
0
2015-02-18T10:47:49.820Z
2,015
2
10
2
33
1
399
36
2
2
true
false
false
false
false
false
zero
28,581,712
Android RecyclerView: Change layout file LIST to GRID onOptionItemSelected
<p>I am developing an Android Application for Online Shopping. I have created following view for List of Products using <code>RecyclerView</code>, in that i want to change view <strong>on selecting option menu item</strong>:</p> <p>I have created following <strong>adapter</strong> named <code>ProductAdapter</code>, in...
I am developing an Android Application for Online Shopping. I have created following view for List of Products using RecyclerView , in that i want to change view on selecting option menu item : I have created following adapter named ProductAdapter , in that I have implemented code for changing layout in onCreateViewHol...
android|android-edittext|android-recyclerview
40
2015-02-18T10:49:07.330Z
2,015
2
10
2
56,038
4
1,057
74
3
2
true
false
true
true
true
false
high
28,581,717
How to provide a separate Icon for Xiaomi Mi Phones?
<p>I noticed that on a <code>Xiaomi Mi Phone</code> icons are <code>iOS'ed</code>. This is why the icon for an app that I am working on looks terrible.</p> <p>Is there a way to provide a separate icon just for those Xiaomi Mi Phones? Or is this the user would have to change himself?</p>
I noticed that on a Xiaomi Mi Phone icons are iOS'ed . This is why the icon for an app that I am working on looks terrible. Is there a way to provide a separate icon just for those Xiaomi Mi Phones? Or is this the user would have to change himself?
android|icons
3
2015-02-18T10:49:13.677Z
2,015
2
10
2
794
1
248
52
2
0
false
false
false
false
false
false
low
28,581,776
RTSP video link is not playing smoothly in android
<p>I am trying to build an android app that will stream video from RTSP web link. I have used vitamio library and video is streaming but the problem is, it is not streaming smoothly. Playback speed changes while streaming. How to get rid from this? Code is given below,</p> <pre><code>videoView = (VideoView) findViewBy...
I am trying to build an android app that will stream video from RTSP web link. I have used vitamio library and video is streaming but the problem is, it is not streaming smoothly. Playback speed changes while streaming. How to get rid from this? Code is given below, [CODE]
android|video|video-streaming|android-mediaplayer|rtsp
1
2015-02-18T10:52:14.443Z
2,015
2
10
2
299
0
273
50
5
1
true
true
false
false
false
false
low
28,581,809
Create android apps for existing Website or Blog based on PHP
<p>I just want to ask, How to create android apps for existing PHP website? In this case how to connect between android apps with my our existing database? I use MySQL database.</p> <p>For example, android apps for stackoverflow. How we create like that? </p>
I just want to ask, How to create android apps for existing PHP website? In this case how to connect between android apps with my our existing database? I use MySQL database. For example, android apps for stackoverflow. How we create like that?
php|android|web-services|web|mobile-application
-1
2015-02-18T10:54:01.227Z
2,015
2
10
2
1,309
1
244
61
5
0
false
false
false
false
false
true
negative
28,581,818
OpenCV with Android Studio
<p>For use OpenCV in my app with Android Studio I complete the <a href="https://stackoverflow.com/questions/27406303/opencv-in-android-studio">following instructions</a> to Step 6. But I don't know how and where include </p> <p><code>static { System.loadLibrary("opencv_java"); }</code></p> <p>? </p>
For use OpenCV in my app with Android Studio I complete the following instructions to Step 6. But I don't know how and where include static { System.loadLibrary("opencv_java"); } ?
android|opencv|gradle
0
2015-02-18T10:54:24.157Z
2,015
2
10
2
327
1
180
26
3
0
false
false
false
false
false
false
zero
28,581,898
A general Android intent for a dictionary / encyclopedia / etc
<p>Does there exist such a thing, where you send it a string as data, and it knows to open the application with the entry for that string? Thanks.</p>
Does there exist such a thing, where you send it a string as data, and it knows to open the application with the entry for that string? Thanks.
android|android-intent
1
2015-02-18T10:58:46.590Z
2,015
2
10
2
220
1
143
62
2
0
false
false
false
false
false
false
low