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,513,964
Listview onClickListener is not working in Drawer Layout
<p>I am making a drawer having <code>ListView</code> in it. But surprisingly its not getting any <code>onClickListener</code> fired when I click on any list item.</p> <p><strong>I have tried these things till now</strong></p> <ul> <li>Making a <code>ArrayAdapter</code> for <code>ListView</code> and get simply <code>l...
I am making a drawer having ListView in it. But surprisingly its not getting any onClickListener fired when I click on any list item. I have tried these things till now Making a ArrayAdapter for ListView and get simply list.onItemClickListener and list.onClickListener too. A custom adapter with a implemented OnClickLis...
android|android-listview|onclicklistener|navigation-drawer
0
2015-02-14T08:47:16.910Z
2,015
2
8
5
2,614
4
1,139
56
4
4
true
false
true
false
false
false
zero
28,514,035
Android cursor columns
<p>Is is safe to assume that Android cursor only has the columns I requested and returns them in the same order as they are in the select statement, i. e. will the following code always work?</p> <pre><code>Cursor cursor = db.query("NAMES", new String[] {"FIRSTNAME", "LASTNAME", "MOBILE"}, "ID = " + requestedI...
Is is safe to assume that Android cursor only has the columns I requested and returns them in the same order as they are in the select statement, i. e. will the following code always work? [CODE] or should I stick to getting column indices explicitly like below because Android SQLite may add some auxiliary data in the ...
android|sqlite
1
2015-02-14T08:57:43.190Z
2,015
2
8
5
786
1
389
22
2
2
true
false
false
false
false
false
low
28,514,040
Using one main.xml for different activities action bar
<p>I am developing an app in which i show buttons on action bar. What i am doing now just adding items into <strong>main.xml</strong> under <strong>menu</strong> folder.But i so what if add 3 items in <strong>main.xml</strong> so if inflate <strong>main.xml</strong> of any activity it shows me 3 items but i want only o...
I am developing an app in which i show buttons on action bar. What i am doing now just adding items into main.xml under menu folder.But i so what if add 3 items in main.xml so if inflate main.xml of any activity it shows me 3 items but i want only one item so is there any way by which i don't have to create different x...
android|android-activity|android-actionbar
0
2015-02-14T08:58:44.647Z
2,015
2
8
5
194
1
359
54
3
1
true
false
false
false
false
false
zero
28,514,042
Android, testing a flow which involves other applications
<p>I am testing an Android application using Instrumentation, Espresso and Robotium. The flow I need to test is the following:</p> <ol> <li>typing email in a EditTextView</li> <li>press confirm button</li> <li>receive an email</li> <li>click in the link received in the email to confirm the address</li> </ol> <p>Now, ...
I am testing an Android application using Instrumentation, Espresso and Robotium. The flow I need to test is the following: typing email in a EditTextView press confirm button receive an email click in the link received in the email to confirm the address Now, everything is fine till the step 4, at that point I have no...
android|testing|cross-application
0
2015-02-14T08:58:55.290Z
2,015
2
8
5
106
1
432
57
3
0
false
false
false
false
false
false
zero
28,514,097
Findviewbyid returns null. But can access view elements by getting root view and looping through children
<p>I have an activity i want to use to configure a widget but I can't seem to get <code>findViewById()</code> to work. It returns <code>null</code> for all elements.</p> <p>Here's my layout file</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/...
I have an activity i want to use to configure a widget but I can't seem to get findViewById() to work. It returns null for all elements. Here's my layout file [CODE] This is my activity's onCreate method: [CODE] Each those elements (button, editText, textView) are null and it throws a NullPointerException when i try se...
android|android-layout
0
2015-02-14T09:09:11.520Z
2,015
2
9
5
604
2
915
105
2
3
true
false
false
false
false
false
zero
28,514,104
Start a Google Glass immersion app from remote site
<p>I developed an app in the immersion layout of the GDK. When I run the app from Android Studio it works like a charm. But I want to take the next step. I want to start the app from a remote manager application. This application is a simple website.</p> <p>How can I start the app remotely from the manager app? I watc...
I developed an app in the immersion layout of the GDK. When I run the app from Android Studio it works like a charm. But I want to take the next step. I want to start the app from a remote manager application. This application is a simple website. How can I start the app remotely from the manager app? I watched the dem...
android|google-glass
0
2015-02-14T09:09:58.347Z
2,015
2
9
5
61
1
358
51
2
0
false
false
false
false
false
false
zero
28,514,123
Calling java method from Android WebView
<p>I want to show a html image map in my android app. For this I use WebView, and I want when a <code>&lt;area&gt;</code> is clicked, the clicked area to do something. For example if I use kicked or touched 'North Carolina', I show name of it in a toast.</p> <p>My code is:</p> <pre><code>&lt;html xmlns="http://www.w3...
I want to show a html image map in my android app. For this I use WebView, and I want when a <area> is clicked, the clicked area to do something. For example if I use kicked or touched 'North Carolina', I show name of it in a toast. My code is: [CODE] I found this: [CODE] But it doesn't give me the answer I want. Can y...
java|javascript|android|android-webview
1
2015-02-14T09:13:05.517Z
2,015
2
9
5
2,383
1
344
40
4
2
true
false
false
false
false
false
low
28,514,225
I am getting weightsum error thaugh i changed from layout_weightsum to weightsum
<p>I am keeping 9 images in a 3 rows like a 3X3 matrix. I am getting error while we are providing layout_weightsum so i changed it to weightsum. still it is showing me error. I am using Andorid Studio.</p> <p>Below is my code.</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android...
I am keeping 9 images in a 3 rows like a 3X3 matrix. I am getting error while we are providing layout_weightsum so i changed it to weightsum. still it is showing me error. I am using Andorid Studio. Below is my code. [CODE]
android|android-layout|android-layout-weight
0
2015-02-14T09:29:47.700Z
2,015
2
9
5
83
1
223
80
3
1
true
false
false
false
false
false
zero
28,514,264
Generic parsing inconsistent response with Jackson into String or custom Object
<p>I get two different kind of response json in two different scenario from single RESTful web service, how to parse the following response json with Jackson??</p> <pre><code>response:{ result:"0" } </code></pre> <p>and</p> <pre><code>response:{ result :{ fname: "abc", lname: "xyz" } } </code></...
I get two different kind of response json in two different scenario from single RESTful web service, how to parse the following response json with Jackson?? [CODE] and [CODE]
android|json|jackson|jackson-modules|mongo-jackson-mapper
0
2015-02-14T09:35:36.817Z
2,015
2
9
5
112
1
174
79
5
2
true
false
false
false
false
false
zero
28,514,275
Touch or click Event for detecting top/bottom/left/right of screen in android
<p><strong>What i have tried</strong>:</p> <p>By implementing SwipeInterface in my activity i can detect the swipe event </p> <hr> <p><strong>SwipeInterface.java</strong></p> <pre><code>import android.view.View; public interface SwipeInterface { public void bottom2top(View v); public void left2right(View...
What i have tried : By implementing SwipeInterface in my activity i can detect the swipe event SwipeInterface.java [CODE] ActivitySwipeDetector.java [CODE] What i am having a problem So if i have a widget say a gridview to a full screen i am not able to detect the swipe event because gridview is taking the event What i...
android
1
2015-02-14T09:36:13.250Z
2,015
2
9
5
1,416
0
549
77
1
2
true
true
false
false
false
false
low
28,514,288
Button's text gets wrong alignment after a setText() call on a TextView
<p>In my case I have an <code>activity</code> with a <code>TableLayout</code> which contains a few views such as a <code>Button</code> with id 'Number1' and a <code>TextView</code> with id 'password'.</p> <p>When I hit the button, its event handler gets called and one of the things it does is set the password <code>Te...
In my case I have an activity with a TableLayout which contains a few views such as a Button with id 'Number1' and a TextView with id 'password'. When I hit the button, its event handler gets called and one of the things it does is set the password TextView text. After this, the button's text becomes misaligned - inste...
android
0
2015-02-14T09:38:25.417Z
2,015
2
9
5
510
1
668
71
1
2
true
false
false
false
false
false
zero
28,514,302
UIScrollable getChildByText doesnt scroll enough before it gives up
<p>I am using the uiautomator tool to write some Automated Tests for my app.</p> <p>Here is the code that is problematic:</p> <pre><code>UiScrollable appViews = new UiScrollable(new UiSelector().scrollable(true)); appViews.setAsHorizontalList(); // works on API 17+ UiObject settingsApp = appViews.getChildByText(new U...
I am using the uiautomator tool to write some Automated Tests for my app. Here is the code that is problematic: [CODE] When I run this on a KitKat phone, phone goes to home screen, then clicks "Apps" then selects "Apps tab" (this part of the code has been omitted from this post for clarity) and then it starts looking f...
android|android-uiautomator
0
2015-02-14T09:41:18.630Z
2,015
2
9
5
1,376
2
686
67
2
1
true
false
false
false
false
false
zero
28,514,327
Populate Listview from a different function's ArrayAdapter - Android
<p>This is my first post on stack exchange after a long while of creeping in the shadows ! </p> <p>I have a simple code, 2 classes: <code>MainActivity</code>: with a <code>listview</code>, an <code>OnCreate</code> method, and a custom method called Build List.</p> <p>other activity: Retrieves data online, then calls ...
This is my first post on stack exchange after a long while of creeping in the shadows ! I have a simple code, 2 classes: MainActivity : with a listview , an OnCreate method, and a custom method called Build List. other activity: Retrieves data online, then calls MainActivity's BuildList(String) method. The problem is, ...
android|listview|android-arrayadapter
0
2015-02-14T09:46:11.260Z
2,015
2
9
5
424
1
682
68
3
4
true
false
false
false
false
false
zero
28,514,428
How to Lazy Load a Cursor On Scroll
<p>hello mates hope you having a nice day, i have a database with about 1million rows inside it (up to 15m) and i need to load them on an ExpandableListView. my database has a shared _id collumn with my server , and they are never deleted ,they have a collumn with identifies their STATUS_AVAILABLE and STATUS_UNAVAILABL...
hello mates hope you having a nice day, i have a database with about 1million rows inside it (up to 15m) and i need to load them on an ExpandableListView. my database has a shared _id collumn with my server , and they are never deleted ,they have a collumn with identifies their STATUS_AVAILABLE and STATUS_UNAVAILABLE m...
android|sqlite|cursor
1
2015-02-14T10:00:12.643Z
2,015
2
10
5
238
0
1,058
35
3
3
true
true
false
false
false
false
low
28,514,532
get rounded elevation-shadow on FloatingActionButton (v21)
<p>I am pretty new to android development and yes I have tried a lot to fix this before asking. </p> <p>So I am trying to implement the FloatingActionButton (only on v21 for simplicity) and I just can't get the elevation-shadow to be rounded.</p> <p>Here are the code lines I have already:</p> <p>In the main activity...
I am pretty new to android development and yes I have tried a lot to fix this before asking. So I am trying to implement the FloatingActionButton (only on v21 for simplicity) and I just can't get the elevation-shadow to be rounded. Here are the code lines I have already: In the main activity .java (named overview): [CO...
java|android|android-elevation
0
2015-02-14T10:12:48.937Z
2,015
2
10
5
868
1
644
58
3
5
true
false
false
false
false
false
zero
28,514,600
Can I decompile project with keystore?
<p>Lost my usb which is having my android project. I just tested that application so I only have that apk. Can I extract apk to project...?</p>
Lost my usb which is having my android project. I just tested that application so I only have that apk. Can I extract apk to project...?
android|decompiler
0
2015-02-14T10:21:22.980Z
2,015
2
10
5
1,313
1
136
38
2
0
false
false
false
false
false
false
zero
28,514,661
How to getIntent().getData(); on Fragment
<p>On my application is use login with twitter, in example code work in Activity but my app use work in Fragment </p> <ol> <li>Click login with twitter button</li> <li>Go to web browser for Authorize application</li> <li>Back to application Feeds(use fragment) &amp; show Toast twitter_id </li> </ol> <p>How to edit er...
On my application is use login with twitter, in example code work in Activity but my app use work in Fragment Click login with twitter button Go to web browser for Authorize application Back to application Feeds(use fragment) & show Toast twitter_id How to edit error on Uri uri = getIntent().getData(); [CODE]
android|android-fragments|twitter-oauth|twitter4j
1
2015-02-14T10:28:26.110Z
2,015
2
10
5
3,742
2
310
41
4
1
true
false
true
false
false
false
low
28,514,674
Android - how to make 2 hints on an EditText?
<p>I know I can set a hint text for an EditText. <br> And currently, I just use space to separate 2 hints. However, the right hint text does not align to right of EditText.</p> <pre><code> &lt;EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:textSize=...
I know I can set a hint text for an EditText. And currently, I just use space to separate 2 hints. However, the right hint text does not align to right of EditText. [CODE] What I want is as following style: How can make one hint on left and another hint on right for a single EditText?
android|xml|android-edittext|textview|hint
3
2015-02-14T10:30:00.133Z
2,015
2
10
5
1,709
2
285
45
5
1
true
false
false
false
false
false
low
28,514,683
noclassdeffounderror with FragmentPageAdapter
<p>I'm trying to implement swiping on a group of fragment in my app and am basically trying to follow the code on Android's <a href="http://v13.app.FragmentPageAdapter" rel="nofollow noreferrer">http://developer.android.com/reference/android/support/v13/app/FragmentPagerAdapter.html</a> page.</p> <p>However, I'm get...
I'm trying to implement swiping on a group of fragment in my app and am basically trying to follow the code on Android's http://developer.android.com/reference/android/support/v13/app/FragmentPagerAdapter.html page. However, I'm getting the following error: [CODE] I have the class defined: [CODE] but I suspect the prob...
android|fragment|noclassdeffounderror|fragmentpageradapter|fragmentmanager
0
2015-02-14T10:30:49.010Z
2,015
2
10
5
197
0
726
45
5
4
true
true
false
false
false
false
zero
28,514,729
Sq-lite database retrieve data to array list
<p>I want to get all database value into my arraylist and show in logcat. but i am facing some problem during getting value from arraylist. i put my hole code, i am able to get value but getting last value from model.</p> <p>my MainActivity</p> <pre><code>package com.example.databasework; import java.util.ArrayList;...
I want to get all database value into my arraylist and show in logcat. but i am facing some problem during getting value from arraylist. i put my hole code, i am able to get value but getting last value from model. my MainActivity [CODE] in arrayList = transactionDb.getReportPrintTrns(); want all database value. My Dat...
java|android|sqlite|arraylist
1
2015-02-14T10:36:43.883Z
2,015
2
10
5
84
2
454
44
4
5
true
false
false
false
false
false
low
28,514,730
How to Upgrade Eclipse that plugin with Android SDK
<p>I have an question about my Eclipse. It is JUNO version and it is plugin with SDK and ADT. So I want to update to higher version, because I cannot estimate the word or method that will appear next. Example: System.out (but i want When I type System and then Type dot to show what next is). Thank you!</p>
I have an question about my Eclipse. It is JUNO version and it is plugin with SDK and ADT. So I want to update to higher version, because I cannot estimate the word or method that will appear next. Example: System.out (but i want When I type System and then Type dot to show what next is). Thank you!
java|android|eclipse-plugin
0
2015-02-14T10:36:44.487Z
2,015
2
10
5
30
0
300
51
3
0
false
true
false
false
false
false
zero
28,514,811
Android - swipe tabs viewpager issue
<p>I have an app that has 3 swipe tabs: "Map, "Events" and "Reviews". I've logged the data (as seen in my code wherever there is a log), and the following occurs.</p> <p>I run the app and it opens on the 'Map' tab. The log however, shows</p> <p>02-14 05:37:56.240: D/curent tab position(1787): 0 02-14 05:37:56.260: D/...
I have an app that has 3 swipe tabs: "Map, "Events" and "Reviews". I've logged the data (as seen in my code wherever there is a log), and the following occurs. I run the app and it opens on the 'Map' tab. The log however, shows 02-14 05:37:56.240: D/curent tab position(1787): 0 02-14 05:37:56.260: D/arg0(1787): 0 02-14...
android|android-fragments|android-actionbar|swipe|fragmentmanager
1
2015-02-14T10:48:12.300Z
2,015
2
10
5
376
1
1,485
36
5
1
true
false
false
false
false
false
low
28,514,827
jmethodID in android ART
<p>I'm working on an app.<br> Inside JNI_OnLoad():</p> <pre><code>jclass cls = (*env)-&gt;FindClass(env, "dummy/dummy/dummy/Dummy"); if(cls == NULL) { LOG_ERROR("unable to class"); return; } cached_dummy.cls = (*env)-&gt;NewGlobalRef(env, cls); if(cached_dummy.cls == NULL) { LO...
I'm working on an app. Inside JNI_OnLoad(): [CODE] and when i used this cached result in java callback using (*env)->CallStaticVoidMethod(env, cached_dummy.cls, cached_dummy.method) Result: "JNI DETECTED ERROR IN APPLICATION: jmethodID was NULL" Android 5.0.2 Query: Incompatibility? Solution? (Do i need to make a globa...
java|android|java-native-interface
0
2015-02-14T10:50:36.633Z
2,015
2
10
5
976
1
396
24
3
1
true
false
false
false
false
false
zero
28,514,942
How to make an EditText to only Accept an IP Address as input?
<p>Here is my EditText and want to make it to accept only a IP address. I used numberDecimal as inputType but its not accepting more than one point.</p> <pre><code>&lt;EditText android:id="@+id/etBannedIpAddress" android:layout_width="0dp" android:layout_height="wrap_con...
Here is my EditText and want to make it to accept only a IP address. I used numberDecimal as inputType but its not accepting more than one point. [CODE]
android
5
2015-02-14T11:01:51.180Z
2,015
2
11
5
15,176
5
152
62
1
1
true
false
true
true
false
false
low
28,514,970
Splitting a number at commas and populating an array gone wrong
<p>Background: I have a number 1000. My desired result is to input 1000 to a function and get "1 thousand" as output. I am using 1000 just as an example the function can do this with any number. </p> <p>First I take this number and put commas: </p> <pre><code>public String formatNumbers(String input) { Strin...
Background: I have a number 1000. My desired result is to input 1000 to a function and get "1 thousand" as output. I am using 1000 just as an example the function can do this with any number. First I take this number and put commas: [CODE] This returns me the number with commas that is 1,000. I store this into a variab...
java|android
0
2015-02-14T11:04:46.900Z
2,015
2
11
5
70
0
1,678
63
2
9
true
true
false
false
false
false
zero
28,515,011
Update Facebook SDK session with a new AppID on Android (using Cordova/PhoneGap)
<p>We have a Cordova/PhoneGap app for Android where users can log in with their Facebook account using the PhoneGap Facebook Connect plugin (<a href="https://github.com/Wizcorp/phonegap-facebook-plugin" rel="nofollow noreferrer">https://github.com/Wizcorp/phonegap-facebook-plugin</a>).</p> <p>However, we need to progra...
We have a Cordova/PhoneGap app for Android where users can log in with their Facebook account using the PhoneGap Facebook Connect plugin ( https://github.com/Wizcorp/phonegap-facebook-plugin ). However, we need to programmatically update the Facebook session with a new AppId/AppName every time the user changes the coun...
android|cordova|facebook-android-sdk|android-facebook
1
2015-02-14T11:10:00.957Z
2,015
2
11
5
208
1
1,033
80
4
3
true
false
false
false
false
false
low
28,515,014
MemoryLeak in onBackPressed with Animation
<p>I've created a rather complex end animation within an open source application. </p> <p>If the onBackPressed() method is called the application will animate the views and close. it seems that there is a memory leek, because it won't stop to allocate new ram afterwards. If i remove the animation and just call a norma...
I've created a rather complex end animation within an open source application. If the onBackPressed() method is called the application will animate the views and close. it seems that there is a memory leek, because it won't stop to allocate new ram afterwards. If i remove the animation and just call a normal onBackPres...
android|performance|android-activity|memory-leaks|out-of-memory
0
2015-02-14T11:10:13.017Z
2,015
2
11
5
1,043
2
668
42
5
1
true
false
false
false
false
false
zero
28,515,049
android.content.Context.getPackageName()' on a null object reference
<p>I am working with Fragments which implements an interface.</p> <pre><code>public class SigninFragment extends Fragment implements SigninInterface </code></pre> <p>The interface's method implementation in the fragment class is as follows.</p> <pre><code>@Override public void afterSubmitClicked(String userId, Bundle ...
I am working with Fragments which implements an interface. [CODE] The interface's method implementation in the fragment class is as follows. [CODE] This method is called after exectuting a AsynchronousTask (which extends AsyncTask) class. But I am getting crash. And the error message shows [CODE] Logcat [CODE]
android|android-fragments|fragment
96
2015-02-14T11:14:19.197Z
2,015
2
11
5
165,377
17
311
68
3
4
true
false
true
true
true
false
high
28,515,054
Sqlite Update columns
<p>I have 5 columns in my table : id, x, y, source, distance.</p> <p>For every id, i want to find the nearest x &amp; y values and update that value in the distance field along with its id in source.</p> <p>I'm able to update the distance with the below query:</p> <pre><code>UPDATE item SET distance = ( SELECT MIN( ...
I have 5 columns in my table : id, x, y, source, distance. For every id, i want to find the nearest x & y values and update that value in the distance field along with its id in source. I'm able to update the distance with the below query: [CODE] However i'm unable to update the source because sqlite does not support m...
sql|sqlite|android-sqlite
0
2015-02-14T11:14:54.893Z
2,015
2
11
5
676
2
492
21
3
2
true
false
false
false
false
false
zero
28,515,087
Is It possible to reduce the resolution of a video in android using intent?
<p>I am trying to use the below to reduce the video resolution. </p> <pre><code> Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); startActivityForResult(intent, CAMERA_CAPTURE_VIDEO_REQUEST_CODE); </code></pre> <p>i did some research and found that ...
I am trying to use the below to reduce the video resolution. [CODE] i did some research and found that this is not working for Samsung devices. so is there another way to use the native camera. i know i can use Media Recorder and choose the desired the default resolution, but then i wont have other camera functionality...
android
0
2015-02-14T11:19:31.657Z
2,015
2
11
5
317
1
346
75
1
1
true
false
false
false
false
false
zero
28,515,108
How to deal with JSON in Java (Android Studio)
<p>I'm new to android and i'm developing an Android App, i want to get JSON data from a URL : <a href="http://ana.fm/api/article/256281468161349/" rel="nofollow">URL</a></p> <p>I have the following code: </p> <pre><code>import java.io.IOException; import org.apache.http.HttpResponse; import org.apache.http.client.Cli...
I'm new to android and i'm developing an Android App, i want to get JSON data from a URL : URL I have the following code: [CODE] And this is article.xml: [CODE] And i have set the internet permission in AndroidManifest.xml: [CODE] But when i run the emulator i get: null null I can't find anything wrong in my code. I go...
java|android|json|android-studio
0
2015-02-14T11:21:58.150Z
2,015
2
11
5
11,935
2
449
46
4
4
true
false
true
true
false
false
zero
28,515,113
Why is my ListView not working with my SQL Database?
<p>i have got following problem: </p> <p>I have created a SQL Database and now try to connect it with my ListViewActivity in order to display it in a layout. But when i am running the emulator the ListView does not show anything. I hope somebody can help me soon :) </p> <p>Code for my ListViewActivity: </p> <pre><co...
i have got following problem: I have created a SQL Database and now try to connect it with my ListViewActivity in order to display it in a layout. But when i am running the emulator the ListView does not show anything. I hope somebody can help me soon :) Code for my ListViewActivity: [CODE] Code for my listview_item_ro...
android|sql|database|listview|android-sqlite
0
2015-02-14T11:22:13.137Z
2,015
2
11
5
82
2
392
52
5
4
true
false
false
false
false
false
zero
28,515,116
SharedPreferences deleted when the app is killed
<p>I have a Service which can receive notifications (with Google Cloud Messaging) and notify the user. In that very service, I also store the message sent by Cloud Messaging by using SharedPreferences. I gather those messages in a HashSet, and neither that HashSet nor any of its elements are supposed to be deleted. Tha...
I have a Service which can receive notifications (with Google Cloud Messaging) and notify the user. In that very service, I also store the message sent by Cloud Messaging by using SharedPreferences. I gather those messages in a HashSet, and neither that HashSet nor any of its elements are supposed to be deleted. That i...
android|sharedpreferences|google-cloud-messaging
2
2015-02-14T11:22:34.090Z
2,015
2
11
5
4,581
3
827
48
3
1
true
false
true
false
false
false
low
28,515,125
OnTouckListener of listview
<p>I am having a <code>listview</code>, I want to detect the touch movement up and down. I am using this code. However, when I touch the listview both <code>UP</code> &amp; <code>DOWN</code> are called. Why? I used log to view up &amp; down movement. What I do with <code>listview</code> are both in log.</p> <p>This is...
I am having a listview , I want to detect the touch movement up and down. I am using this code. However, when I touch the listview both UP & DOWN are called. Why? I used log to view up & down movement. What I do with listview are both in log. This is the code: [CODE]
android|listview
0
2015-02-14T11:23:47.117Z
2,015
2
11
5
47
2
267
27
2
1
true
false
false
false
false
false
zero
28,515,152
Android Parsing JsonArray to hashmap from java WS
<p>I'm trying to get jsonarray from http request and I am following this tutorial:</p> <p><a href="http://www.androidhive.info/2012/01/android-json-parsing-tutorial/" rel="nofollow">http://www.androidhive.info/2012/01/android-json-parsing-tutorial/</a></p> <p>I have a doubt, in the tutorial the json file is this:</p>...
I'm trying to get jsonarray from http request and I am following this tutorial: http://www.androidhive.info/2012/01/android-json-parsing-tutorial/ I have a doubt, in the tutorial the json file is this: [CODE] And this is my json: [CODE] and this is my "contact" class on web service: [CODE] Now following the tutorial th...
android|arrays|json|web-services|hashmap
0
2015-02-14T11:27:32.143Z
2,015
2
11
5
296
1
526
49
5
5
true
false
false
false
false
false
zero
28,515,205
android show next fragment before popping backstack
<p>I have several fragments that keep replacing each other (with the transactions added to the backstack). Depending on user actions at some point I need to clear all (or some) of the previous fragments and show only 1 new fragment.</p> <p>To do this I currently do a <code>popBackStack()</code> to clear them first and...
I have several fragments that keep replacing each other (with the transactions added to the backstack). Depending on user actions at some point I need to clear all (or some) of the previous fragments and show only 1 new fragment. To do this I currently do a popBackStack() to clear them first and then do a replace() , t...
android|android-fragments|back-stack|fragment-backstack
2
2015-02-14T11:34:34.093Z
2,015
2
11
5
550
1
664
51
4
0
false
false
false
false
false
false
low
28,515,207
Android - move image view
<p>I want to use the layout, created in xml and move the imageView in the place, where screen is touched. Walking around and stuck completely. What is wrong? Is it ok to put all this code into onCreate, or I should use other methods?</p> <pre><code> public class Game2 extends Activity implements OnTouchListener { ...
I want to use the layout, created in xml and move the imageView in the place, where screen is touched. Walking around and stuck completely. What is wrong? Is it ok to put all this code into onCreate, or I should use other methods? [CODE]
android|layout|android-activity
0
2015-02-14T11:34:47.433Z
2,015
2
11
5
1,542
3
237
25
3
1
true
false
false
false
false
false
zero
28,515,237
Can't make HTML5 Audio Tag to work on mobile browsers
<p>I have a web app that uses the HTML5 <code>&lt;audio&gt;</code> tag and for some reason, while it works fine on Windows and Mac PCs, it doesn't work on iOS and Android. Here's a relevant snippet of my code:</p> <p>Javascript:</p> <pre><code>var audioElement = document.querySelector('#audioplayer'); var source = do...
I have a web app that uses the HTML5 <audio> tag and for some reason, while it works fine on Windows and Mac PCs, it doesn't work on iOS and Android. Here's a relevant snippet of my code: Javascript: [CODE] HTML: [CODE]
javascript|android|ios|html|audio
7
2015-02-14T11:39:10.857Z
2,015
2
11
5
7,495
3
219
53
5
2
true
false
true
false
false
false
medium
28,515,256
How to add resources to Jar
<p>I'm actually trying to repack a JAR file (after noping out some lines that cause conflicts) and here's my approach:</p> <ol> <li>Convert Jar into Dex (with dex2jar). It's worth noting that resources like jpgs are not packed along into Dex.</li> <li>Disassemble Dex into Smali and make modifications.</li> <li>Assembl...
I'm actually trying to repack a JAR file (after noping out some lines that cause conflicts) and here's my approach: Convert Jar into Dex (with dex2jar). It's worth noting that resources like jpgs are not packed along into Dex. Disassemble Dex into Smali and make modifications. Assemble Smali into Dex. Convert Dex into ...
java|android|jar|apk|disassembly
0
2015-02-14T11:41:11.210Z
2,015
2
11
5
113
1
540
27
5
0
false
false
false
false
false
false
zero
28,515,324
ViewPager first page scroll/slide is always slow
<p>I have a custom created ViewPager whom adapter is filled in asynctask of main activity. The problem is first page slide event is always slow regardless how much small the slided content(or whole content) is.</p> <p>How to wait till it is certain that page sliding will be not laggy.(Or is this how jvm works?</p> <...
I have a custom created ViewPager whom adapter is filled in asynctask of main activity. The problem is first page slide event is always slow regardless how much small the slided content(or whole content) is. How to wait till it is certain that page sliding will be not laggy.(Or is this how jvm works? Here my asynctask;...
android|android-fragments|android-asynctask|android-viewpager
0
2015-02-14T11:47:53.737Z
2,015
2
11
5
396
0
371
48
4
2
true
true
false
false
false
false
zero
28,515,345
Recycler view NullPointerException in abstract class
<p>I am working on a project which has many activities which uses recycler view in the exact way,just the data and onClickListener changes, I have the following abstract class for creating different activities with different onClickListener</p> <pre><code>public abstract class AbstractActivity extends ActionBarActivi...
I am working on a project which has many activities which uses recycler view in the exact way,just the data and onClickListener changes, I have the following abstract class for creating different activities with different onClickListener [CODE] The recycler layout file is [CODE] Now when i extend some class to create a...
java|android|abstract-class|android-recyclerview
-1
2015-02-14T11:51:08.990Z
2,015
2
11
5
377
1
953
52
4
4
true
false
false
false
false
true
negative
28,515,546
Custom ordering in LayoutAnimationController
<p>If i want to add animation on each item of ListView with some delay, i use <code>LayoutAnimationController</code>and specify the delay. But the order of animation here can be only NORMAL,REVERSE or RANDOM.</p> <p>I am working on an animation where suppose the rows of ListView are 1,2,3,4,5. Then when i touch on row...
If i want to add animation on each item of ListView with some delay, i use LayoutAnimationController and specify the delay. But the order of animation here can be only NORMAL,REVERSE or RANDOM. I am working on an animation where suppose the rows of ListView are 1,2,3,4,5. Then when i touch on row 3, the animation shoul...
android|animation|android-animation
0
2015-02-14T12:17:09.727Z
2,015
2
12
5
336
1
595
44
3
1
true
false
false
false
false
false
zero
28,515,561
Search option in android
<p>I am able to get search suggestions from list view.but i need too hide bottom suggestion them untill i type text in search box(as google search).In google when we type text then only it shows suggestions to the text we have typed.<img src="https://i.stack.imgur.com/TC1Tg.png" alt="Here is my code output image."></p>...
I am able to get search suggestions from list view.but i need too hide bottom suggestion them untill i type text in search box(as google search).In google when we type text then only it shows suggestions to the text we have typed. Main Activity Code [CODE] Layout Xml [CODE]
android|android-layout|search-engine
-2
2015-02-14T12:19:43.987Z
2,015
2
12
5
136
1
274
24
3
2
true
false
false
false
false
true
negative
28,515,578
How to implement TabHost with the ability to use multiple activities under a tab?
<p>As the title says, I want to know how to implement TabHost with the ability to switch between activities under a tab.Simple example would be to have two tabs(tab1 &amp; tab2) with a button under tab1. when this button is clicked, a text appears. (activity switch)</p> <p>A google search suggested using GroupActiviti...
As the title says, I want to know how to implement TabHost with the ability to switch between activities under a tab.Simple example would be to have two tabs(tab1 & tab2) with a button under tab1. when this button is clicked, a text appears. (activity switch) A google search suggested using GroupActivities, but upon fu...
android|tabs|android-tabhost
0
2015-02-14T12:21:42.197Z
2,015
2
12
5
136
1
420
81
3
0
false
false
false
false
false
false
zero
28,515,585
NullPointerException in Android Studio
<p>I am new to android and it is my first time to use Fragments. When this fragment is called and the user searches for some question in the "search_question" edittext and presses on the "search_question_button", the searched question should be passed to the following class "PaperlessRegistrationApplication" however th...
I am new to android and it is my first time to use Fragments. When this fragment is called and the user searches for some question in the "search_question" edittext and presses on the "search_question_button", the searched question should be passed to the following class "PaperlessRegistrationApplication" however the a...
android
0
2015-02-14T12:22:24.683Z
2,015
2
12
5
404
1
535
38
1
2
true
false
false
false
false
false
zero
28,515,594
VideoView won't autolay... (Android/Eclipse)
<p>First, I don't use an emulator because my D270 is not capable of running it, so I just send the .apk of my project to my k012 to try my app out... My VideoView won't play my video entitled 'slideshow' which should play the moment I launched my app... Here are the properties of my video: width: 480, height: 360, fram...
First, I don't use an emulator because my D270 is not capable of running it, so I just send the .apk of my project to my k012 to try my app out... My VideoView won't play my video entitled 'slideshow' which should play the moment I launched my app... Here are the properties of my video: width: 480, height: 360, framera...
android|eclipse|android-videoview|autoplay
0
2015-02-14T12:24:11.257Z
2,015
2
12
5
116
1
548
44
4
2
true
false
false
false
false
false
zero
28,515,601
Getting null pointer exeptcion
<p>So can you tell me why am I getting null pointer exeptcion. I am checking if asyncTask are over and then getting text from edit text to arryList after that on button click button inovks method myclickhandler1(povijest) and sends intent to secondActivity can you tell me what am I doin wrong here</p> <p>MainActivity...
So can you tell me why am I getting null pointer exeptcion. I am checking if asyncTask are over and then getting text from edit text to arryList after that on button click button inovks method myclickhandler1(povijest) and sends intent to secondActivity can you tell me what am I doin wrong here MainActivity.java [CODE]...
android|android-asynctask|nullpointerexception
-1
2015-02-14T12:24:47.957Z
2,015
2
12
5
37
1
399
30
3
4
true
false
false
false
false
true
negative
28,515,635
How to handle different device sizes
<p>I know how to handle screen sizes, but it is quite a different matter when using OpenGL ES. The thing is that normally I would just get the size of the screen in pixels and using the numbers given I would align items to be displayed.</p> <p>But, as I mentioned before, in OpenGL ES it is quite different. I want to d...
I know how to handle screen sizes, but it is quite a different matter when using OpenGL ES. The thing is that normally I would just get the size of the screen in pixels and using the numbers given I would align items to be displayed. But, as I mentioned before, in OpenGL ES it is quite different. I want to draw a simpl...
android|opengl-es
0
2015-02-14T12:28:48.687Z
2,015
2
12
5
43
1
594
36
2
0
false
false
false
false
false
false
zero
28,515,647
Android: Change the background drawable of first and last items in a listview?
<p>I have a custom adapter which extends BaseAdapter. On the getView() method when I use the "position/index" to check if it is the first and last item, the listview items don't render the proper background drawable for each item as it's a recyclable list. As a result, on scroll of the listview, the items obtain the sa...
I have a custom adapter which extends BaseAdapter. On the getView() method when I use the "position/index" to check if it is the first and last item, the listview items don't render the proper background drawable for each item as it's a recyclable list. As a result, on scroll of the listview, the items obtain the same ...
android|listview|android-listview
0
2015-02-14T12:29:57.767Z
2,015
2
12
5
727
3
499
78
3
2
true
false
false
false
false
false
zero
28,515,653
Passing a notification from my object to a service
<p>I'm working in an app for android. I have a <code>Service</code> to manage the background process of streamming. Then I have an object <code>AudioPlayer</code> that manages the <code>MediaPlayer</code> instance and it get called from the service. But the problem I have is with the listener <code>onPrepared</code>, b...
I'm working in an app for android. I have a Service to manage the background process of streamming. Then I have an object AudioPlayer that manages the MediaPlayer instance and it get called from the service. But the problem I have is with the listener onPrepared , because it's within my AudioPlayer but I need that when...
android|media-player
0
2015-02-14T12:30:47.180Z
2,015
2
12
5
37
2
513
50
2
0
false
false
false
false
false
false
zero
28,515,689
Android GLSurfaceView keep GL resources after pause/resume
<p>If I start for example "Clash of Clans" on android than pause it(Go to the home screen) and than resume to it, "Clash of Clans" is instantly back in the game without loading any resources. How is that possible ? Because if I use the "GLSurfaceView" in my own app the GL context is always released if I pause the app, ...
If I start for example "Clash of Clans" on android than pause it(Go to the home screen) and than resume to it, "Clash of Clans" is instantly back in the game without loading any resources. How is that possible ? Because if I use the "GLSurfaceView" in my own app the GL context is always released if I pause the app, so ...
java|android
2
2015-02-14T12:34:53.473Z
2,015
2
12
5
183
0
414
58
2
0
false
true
false
false
false
false
low
28,515,834
Why does my Browser open another Browser?
<p>I am creating an Android application to work as a simple browser. The user enters a web address and then clicks a button. After this, the application should the website in the WebView. However, after the button is clicked, a notification pops up asking me to choose a browser to complete my action. [The options in th...
I am creating an Android application to work as a simple browser. The user enters a web address and then clicks a button. After this, the application should the website in the WebView. However, after the button is clicked, a notification pops up asking me to choose a browser to complete my action. [The options in the p...
android|browser
-1
2015-02-14T12:53:23.087Z
2,015
2
12
5
38
1
578
41
2
2
true
false
false
false
false
true
negative
28,515,855
Error parsing JSON Android-Facebook
<p>I'm trying to get my own profile picture from Facebook using Android app. I use the following code:</p> <pre><code>private void getProfilePicture() { Bundle params = new Bundle(); params.putBoolean("redirect", false); params.putString("height", "200"); params.putString("ty...
I'm trying to get my own profile picture from Facebook using Android app. I use the following code: [CODE] In the line JSONArray array = jsonObject.getJSONArray("data"); an Exception is thrown: [CODE] This is the jsonObject : [CODE] What am I doing wrong?? Is there a chance that there's an error with the URL? Because i...
android|json|facebook
-1
2015-02-14T12:55:19.707Z
2,015
2
12
5
116
1
479
35
3
4
true
false
false
false
false
true
negative
28,515,865
Database is created for emulator but not for android device
<p>I am making an android app in which database is created with sqlite open helper. when I installed my app in emulator it works fine but when I did the same thing to test in my phone I don't see any database created in DDMS file explorer view data/data. It is coming out to be empty. Please help me out with this. </p> ...
I am making an android app in which database is created with sqlite open helper. when I installed my app in emulator it works fine but when I did the same thing to test in my phone I don't see any database created in DDMS file explorer view data/data. It is coming out to be empty. Please help me out with this. Thanks.
android|database|emulation|device|sqliteopenhelper
0
2015-02-14T12:56:08.837Z
2,015
2
12
5
1,258
2
319
59
5
0
false
false
false
false
false
false
zero
28,516,008
How to get items from Listadapter in android?
<p>I have a Listadapter wherein there are 4 different strings, and storing them to my listview. Now I want to get all the items from one of those strings and parse it to "date", so how can I able to populate my calendar dates from my listadapter?</p> <p>Following the codes: </p> <pre><code> // Get User records from ...
I have a Listadapter wherein there are 4 different strings, and storing them to my listview. Now I want to get all the items from one of those strings and parse it to "date", so how can I able to populate my calendar dates from my listadapter? Following the codes: [CODE]
android|android-listview|listadapter
4
2015-02-14T13:16:21.287Z
2,015
2
13
5
3,606
2
271
45
3
1
true
false
true
false
false
false
low
28,516,071
NullPointerException error. I cannot seem to spot the issue
<p><strong>Logcat error message.</strong></p> <p>I receive this error when I attempt to register an account on the application, the app crashes momentarily and returns to the login page. </p> <pre class="lang-none prettyprint-override"><code> 02-14 13:11:19.857 31983-31983/example.com.androidim E/AndroidRuntime﹕ F...
Logcat error message. I receive this error when I attempt to register an account on the application, the app crashes momentarily and returns to the login page. [CODE] The following is line 111-142 in the SignUp activity. [CODE] }
java|android
-1
2015-02-14T13:24:32.457Z
2,015
2
13
5
82
1
229
59
2
2
true
false
false
false
false
true
negative
28,516,100
Make ObjectAnimator animation duration independent of global animator duration scale setting in developer options
<p>How can you make ObjectAnimator independent of the "Animator duration scale" developer options setting when constant and unmodifiable speed is critical?</p>
How can you make ObjectAnimator independent of the "Animator duration scale" developer options setting when constant and unmodifiable speed is critical?
android|animation|duration|objectanimator|animator
7
2015-02-14T13:28:08.667Z
2,015
2
13
5
2,491
3
152
113
5
0
false
false
false
false
false
false
medium
28,516,162
Android Exception When App Is Idle
<p>I have an exception that is thrown after the app has been sitting idle for awhile. It seems to always happen when my app is trying to reference my singleton typeface class.</p> <p>My singleton class (TypefaceSingleton.java) is used to reference the Roboto fonts from a single source. This is a scaled down version ...
I have an exception that is thrown after the app has been sitting idle for awhile. It seems to always happen when my app is trying to reference my singleton typeface class. My singleton class (TypefaceSingleton.java) is used to reference the Roboto fonts from a single source. This is a scaled down version of the actual...
java|android|android-activity
0
2015-02-14T13:35:18.267Z
2,015
2
13
5
174
0
840
34
3
3
true
true
false
false
false
false
zero
28,516,281
Static Broadcast Receiver not being called for SMS_RECEIVED
<p>i am writing a broadcastreciever to listen for SMS_RECEIVED action .it works perfectly fine if i register it dynamically but if i register it statically in the Manifest file the broadcast receiver is not being called.</p> <pre><code>&lt;receiver android:name=".MyReceiverBroadcast"&gt;&lt;intent-filter&gt; ...
i am writing a broadcastreciever to listen for SMS_RECEIVED action .it works perfectly fine if i register it dynamically but if i register it statically in the Manifest file the broadcast receiver is not being called. [CODE] My broadcast reciever is as follows [CODE] My Manifest file [CODE] I have added all the necessa...
android
0
2015-02-14T13:49:54.747Z
2,015
2
13
5
422
2
419
59
1
3
true
false
false
false
false
false
zero
28,516,324
How can i use RTL SDR libs for Android and QT creator?
<p>i want to ask how can i use the rtl-sdr C libraries with the QT creator for an android App. Do you know how can i do that ? I use QT/C++ as language. </p>
i want to ask how can i use the rtl-sdr C libraries with the QT creator for an android App. Do you know how can i do that ? I use QT/C++ as language.
android|c++|c|qt
0
2015-02-14T13:56:15.983Z
2,015
2
13
5
710
1
149
54
4
0
false
false
false
false
false
false
zero
28,516,383
BroadcastReceiver independent from app process
<p>There is a state of my app in which it does nothing but scanning wifi (actually wifiP2pManager.discoverPeers). In that state it should use minimal energy but react quickly on broadcast intents.</p> <p>1) Am I right that the receiver object is created before registering programmatically and keeps loaded until unregi...
There is a state of my app in which it does nothing but scanning wifi (actually wifiP2pManager.discoverPeers). In that state it should use minimal energy but react quickly on broadcast intents. 1) Am I right that the receiver object is created before registering programmatically and keeps loaded until unregistered as l...
android|broadcastreceiver|wifi|android-lifecycle
0
2015-02-14T14:04:26.877Z
2,015
2
14
5
167
0
1,073
46
4
1
true
true
false
false
false
false
zero
28,516,385
Android NullPointerException when returning JSON from phpMyAdmin
<p>I was having some problem when trying to connect phpMyAdmin with MySQL database in Android programming. Here is the part where I tried to get the result returned from my php method:</p> <pre><code>public boolean getLogin(UserModel userModel) { String username = userModel.getUserName(); String password = use...
I was having some problem when trying to connect phpMyAdmin with MySQL database in Android programming. Here is the part where I tried to get the result returned from my php method: [CODE] And the code in php: [CODE] And the error message as the stack trace: [CODE] The null pointer exception part was at the try catch t...
java|php|android|json
0
2015-02-14T14:04:54.783Z
2,015
2
14
5
61
1
427
64
4
4
true
false
false
false
false
false
zero
28,516,403
How to set a reliable long-term alarm in Android?
<p>I'm developing an Android app with Phonegap. I need to set a long-term alarm to remind users things like a monthly task.</p> <p>I was searching plugins for this, but the most popular plugin that I found it doesn't have enough reliability. I've tried to use it, but it only works with short-term alarms and not always...
I'm developing an Android app with Phonegap. I need to set a long-term alarm to remind users things like a monthly task. I was searching plugins for this, but the most popular plugin that I found it doesn't have enough reliability. I've tried to use it, but it only works with short-term alarms and not always. I asked t...
android|cordova|phonegap-plugins|alarmmanager|android-alarms
2
2015-02-14T14:06:56.993Z
2,015
2
14
5
1,839
2
828
49
5
0
false
false
false
false
false
false
low
28,516,405
Spinner in ListView(android)
<p>I apologize for my English. I have a lot of time can not figure out how to make a <code>spinner</code> in <code>ListView</code>. I do not understand how to add items to the <code>spinner</code>, and then inserted into the spinner <code>ListView</code>. The following attempts to do something similar, please see me on...
I apologize for my English. I have a lot of time can not figure out how to make a spinner in ListView . I do not understand how to add items to the spinner , and then inserted into the spinner ListView . The following attempts to do something similar, please see me on the right track or not? I do not understand how to ...
java|android|android-listview|android-adapter
2
2015-02-14T14:07:00.557Z
2,015
2
14
5
614
1
1,351
28
4
5
true
false
false
false
false
false
low
28,516,430
Provide home-screen icon for mobile firefox from web site
<p>For the Chrome browser on Android</p> <pre><code>&lt;link rel="icon" sizes="180x180" href="apple-touch-icon.png"&gt; </code></pre> <p>as well as for Safari on Apple devices</p> <pre><code>&lt;link rel="apple-touch-icon" href="apple-touch-icon.png"&gt; </code></pre> <p>there are ways to tell the browser which ico...
For the Chrome browser on Android [CODE] as well as for Safari on Apple devices [CODE] there are ways to tell the browser which icon to use when the user wants to place a bookmark/shortcut on the device's home screen. Does anyone know positively that Firefox on Android supports something like this. At least the current...
android|html|firefox|mobile
4
2015-02-14T14:09:40.953Z
2,015
2
14
5
1,278
2
396
57
4
2
true
false
false
false
false
false
low
28,516,452
using NLP to complete sentences
<p>I am working on sign language translator android application where the signs are inputted then the application will translate it to english sentence. one problem that I am facing is that sometimes due to some error in capturing the signs correctly, the sentence formed as a result becomes ill formatted, lose some wor...
I am working on sign language translator android application where the signs are inputted then the application will translate it to english sentence. one problem that I am facing is that sometimes due to some error in capturing the signs correctly, the sentence formed as a result becomes ill formatted, lose some words ...
java|android|nlp|stanford-nlp
0
2015-02-14T14:11:40.930Z
2,015
2
14
5
195
0
677
31
4
0
false
true
false
false
false
false
zero
28,516,483
API Key for Amazon Cognito Sync Demo
<p>I am trying to use this sample application code: <a href="https://github.com/awslabs/aws-sdk-android-samples/tree/master/CognitoSyncDemo" rel="nofollow">https://github.com/awslabs/aws-sdk-android-samples/tree/master/CognitoSyncDemo</a></p> <p>There is an 'api_key' (in asset directory)</p> <p>Where can I generate o...
I am trying to use this sample application code: https://github.com/awslabs/aws-sdk-android-samples/tree/master/CognitoSyncDemo There is an 'api_key' (in asset directory) Where can I generate or get this value?
android|amazon-web-services|amazon-cognito
1
2015-02-14T14:16:22.643Z
2,015
2
14
5
353
1
210
36
3
0
false
false
false
false
false
false
low
28,516,518
Getting parent element form backendless relations
<p>I have table Places in Backendless, that has field Events (relationship with another table). Events table has field Places that has relationship with Places table. So, I want to get Place form Event object. When I try to load Events object, it does not load Place field. So how do I do it? I have attached images to m...
I have table Places in Backendless, that has field Events (relationship with another table). Events table has field Places that has relationship with Places table. So, I want to get Place form Event object. When I try to load Events object, it does not load Place field. So how do I do it? I have attached images to make...
android|backendless
0
2015-02-14T14:20:31.627Z
2,015
2
14
5
935
1
347
49
2
0
false
false
false
false
false
false
zero
28,516,595
Speed and distance not same on every device
<p>I have created an Android game using a canvas, but when testing, I have found that the speed and distance of the movements such as flying up or falling down are set right on a phone with a resolution of 1920x1080 (401 ppi). But when I tested on a smaller phone with a resolution of 480 x 854 (196 ppi), I found that t...
I have created an Android game using a canvas, but when testing, I have found that the speed and distance of the movements such as flying up or falling down are set right on a phone with a resolution of 1920x1080 (401 ppi). But when I tested on a smaller phone with a resolution of 480 x 854 (196 ppi), I found that the ...
android|sprite|android-canvas
1
2015-02-14T14:29:18.460Z
2,015
2
14
5
103
2
707
43
3
3
true
false
false
false
false
false
low
28,516,658
Cant abort MJPEG in android "internet" app, or android chrome
<p>I have a python/flask application that sends mjpeg video to a element. It works fine regarding the streaming, but I have a problem aborting the video. To abort the video at my phone (android) I have to click a link to another page or else the stream continues.</p> <p>Currently I am controlling the stream with jav...
I have a python/flask application that sends mjpeg video to a element. It works fine regarding the streaming, but I have a problem aborting the video. To abort the video at my phone (android) I have to click a link to another page or else the stream continues. Currently I am controlling the stream with javascript. Sett...
javascript|android|flask|mjpeg
0
2015-02-14T14:36:01.623Z
2,015
2
14
5
132
1
1,085
61
4
1
true
false
false
false
false
false
zero
28,516,680
UI gets black on calling AsyncTask
<p>In <code>onCreate()</code> I'm showing a <code>ProgressDialog</code> and then calling <code>AsyncTask</code> which is non <br/><code>Activity</code>. In this situation the screen goes black up to 30 seconds. How can I <br/>resolve black ui issue? </p> <p>this from Activity </p> <pre><code>showdialog("Your call i...
In onCreate() I'm showing a ProgressDialog and then calling AsyncTask which is non Activity . In this situation the screen goes black up to 30 seconds. How can I resolve black ui issue? this from Activity [CODE]
android|android-asynctask
-2
2015-02-14T14:38:23.080Z
2,015
2
14
5
96
1
211
34
2
1
true
false
false
false
false
true
negative
28,516,802
Listview jumps to the bottom on scrolling fast
<p>So as the title says , i have this problem with my listview . Im not using any ordinary listview , im using the observable scrollview library which is based on a listview .</p> <p>Firstly, i would like to clarify a few things to give you guys more clarity.</p> <ol> <li><p>I didn't have this problem until i changed...
So as the title says , i have this problem with my listview . Im not using any ordinary listview , im using the observable scrollview library which is based on a listview . Firstly, i would like to clarify a few things to give you guys more clarity. I didn't have this problem until i changed a couple of things with my ...
android|listview|layout|android-listview
1
2015-02-14T14:52:36.287Z
2,015
2
14
5
977
2
692
46
4
0
false
false
false
false
false
false
low
28,516,850
Send button value from android to mysql db
<p>I have a question to complete my android app. First, I'll quickly explain what I'm doing.</p> <p>My application is like a voting system and it will has only 2 buttons (Yes / No). Initially created a logic to when clicked a button, fill a variable with yes or no.</p> <p>But I'm trying to pass the direct value of th...
I have a question to complete my android app. First, I'll quickly explain what I'm doing. My application is like a voting system and it will has only 2 buttons (Yes / No). Initially created a logic to when clicked a button, fill a variable with yes or no. But I'm trying to pass the direct value of the button, instead o...
java|android|mysql|json
0
2015-02-14T14:58:27.510Z
2,015
2
14
5
117
0
599
42
4
3
true
true
false
false
false
false
zero
28,516,890
How I can emulate screen rotation with monkeyrunner with Android emulator?
<p>I use monkeyrunner script for testing APK with GenyMotion emulator at Windows. Is it possible that script rotate emulated device?</p>
I use monkeyrunner script for testing APK with GenyMotion emulator at Windows. Is it possible that script rotate emulated device?
android|android-emulator|rotation|genymotion
2
2015-02-14T15:03:37.520Z
2,015
2
15
5
778
2
129
74
4
0
false
false
false
false
false
false
low
28,516,948
What is the equivalent of Android TextView in iOS?
<p>When I searched for "Android TextView equivalent in iOS" in Google and StackOverflow I expected to find a quick answer but it took a little searching and switching up of keywords. I am posting this Q&amp;A pair so that other people can have the quick answer for these keywords.</p> <p>I've been doing Android program...
When I searched for "Android TextView equivalent in iOS" in Google and StackOverflow I expected to find a quick answer but it took a little searching and switching up of keywords. I am posting this Q&A pair so that other people can have the quick answer for these keywords. I've been doing Android programming for about ...
android|ios|textview
1
2015-02-14T15:08:52.817Z
2,015
2
15
5
2,137
1
968
50
3
0
false
false
false
false
false
false
low
28,516,979
Loader isn't calling loadInBackground method
<p>So i have a loader, and it creates fine and even calls constructor, but not loadInBackground method</p> <p>In fragment i'm using this to initialize loader :</p> <pre><code>getLoaderManager().initLoader(SearchHelper.JSON_LOADER_ID, null, new JsonLoaderHandler()); </code></pre> <p>JsonLoaderHandler...
So i have a loader, and it creates fine and even calls constructor, but not loadInBackground method In fragment i'm using this to initialize loader : [CODE] JsonLoaderHandler: [CODE] OnCreateLoader is calling and constructor too, but loadInBackground isn't : [CODE] Please tell what i'm doing wrong here
android
0
2015-02-14T15:11:39.660Z
2,015
2
15
5
149
1
303
44
1
3
true
false
false
false
false
false
zero
28,516,983
Why do I have java.lang.ClassnotFoundException while implementing location listener? (using ECLIPSE)
<p>I know that similar questions have been on SO and I have read through and tried to implement the solutions mentioned but nothing is working. The specific problem is like this (using ECLIPSE):</p> <p>I am trying to implement location awareness in one of the activities (triggered through menu selection) in my app. As...
I know that similar questions have been on SO and I have read through and tried to implement the solutions mentioned but nothing is working. The specific problem is like this (using ECLIPSE): I am trying to implement location awareness in one of the activities (triggered through menu selection) in my app. As long as my...
java|android|eclipse|location|google-play-services
-2
2015-02-14T15:12:14.080Z
2,015
2
15
5
511
1
1,402
100
5
0
false
false
false
false
false
true
negative
28,517,072
How to instruct ant build tool to include another project's files in build.xml
<p>I have two projects in my Eclipse ADT Android workspace</p> <pre><code>MyProject MyProjectUITests </code></pre> <p>I have included <code>MyProject</code> in <code>MyProjectUITests</code> build path, so I can use a constants class from <code>MyProject</code></p> <p>Then I do the following (this is a .bat file of C...
I have two projects in my Eclipse ADT Android workspace [CODE] I have included MyProject in MyProjectUITests build path, so I can use a constants class from MyProject Then I do the following (this is a .bat file of CMD commands): [CODE] Now, including one of the projects in the other project's build path was enough to ...
java|android|eclipse|ant
0
2015-02-14T15:23:31.207Z
2,015
2
15
5
593
2
573
78
4
2
true
false
false
false
false
false
zero
28,517,141
How i can enable to Download PDF via Webview
<p>i am very new to Android but i create a webview and it displays a wordpress page with a Download Link for a PDF in it, but when i tap on it nothing happends, i hope you can help me :)</p> <p>Manifest</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com...
i am very new to Android but i create a webview and it displays a wordpress page with a Download Link for a PDF in it, but when i tap on it nothing happends, i hope you can help me :) Manifest [CODE] Main Activity [CODE] HOPE YOU CAN HELP ME SO MUCH! :)
android|pdf|webview|download
3
2015-02-14T15:31:16.850Z
2,015
2
15
5
18,344
2
253
44
4
2
true
false
true
true
false
false
low
28,517,181
Measuring margin of a "fitCenter" imageView in Android
<p>Given a simple RelativeLayout like this: </p> <pre><code> &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#0fffff"&gt; &lt;ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android...
Given a simple RelativeLayout like this: [CODE] the left/top spacing between the layout border and the image border depends on the W/H ratio of the image being load in the imageView. How can I know (programmatically) the real margin (width and height of the cyan area) after an image is shown in this layout?
android|android-layout|imageview|margins
2
2015-02-14T15:35:48.040Z
2,015
2
15
5
1,001
2
308
54
4
1
true
false
false
false
false
false
low
28,517,199
Cannot refer non-final intent when using with onActivityResult
<p>I was having some problem when trying to move to a new intent in <code>onActivityResult</code>. Here is the code:</p> <pre><code>public void onActivityResult(int requestCode, int resultCode, Intent intent) { IntentResult scanningResult = IntentIntegrator.parseActivityResult( requestCode, resultCode,...
I was having some problem when trying to move to a new intent in onActivityResult . Here is the code: [CODE] Firstly, I will perform a barcode scan. When onActivityResult , I will execute the AsyncTask class. When the AsyncTask class onFinish , I then move to a new intent. However, I am getting error message: [CODE] at...
java|android|android-intent|android-asynctask
0
2015-02-14T15:37:42.550Z
2,015
2
15
5
55
2
388
62
4
2
true
false
false
false
false
false
zero
28,517,211
Disable auto-suggestions in EditText using PasswordTransformationMethod
<p>I want to programmatically disable the auto-completion for my EditText (<strong>not in XML</strong>).</p> <p>This EditText is in an alert dialog which i included in my Fragment (without creating an xml layout):</p> <pre><code>final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getActivity()); Li...
I want to programmatically disable the auto-completion for my EditText ( not in XML ). This EditText is in an alert dialog which i included in my Fragment (without creating an xml layout): [CODE] I know i can create an xml layout and use android:inputType="textNoSuggestions . Is there a way to do it programmatically in...
android|autocomplete|android-edittext|passwords
1
2015-02-14T15:38:42.243Z
2,015
2
15
5
671
1
345
71
4
1
true
false
false
false
false
false
low
28,517,270
accessing data from concurrentHashMap while it gets updated in background android
<p>I have a static concurrentHashMap object which is been updated in background. While it is getting updated, I want to access the values from it in another thread. I am using concurrentHashMap which I understand from the documentation and thinks that it would suit this scenrio </p> <p>Here is what I am doing </p> <...
I have a static concurrentHashMap object which is been updated in background. While it is getting updated, I want to access the values from it in another thread. I am using concurrentHashMap which I understand from the documentation and thinks that it would suit this scenrio Here is what I am doing [CODE] in above code...
android|hashmap|java.util.concurrent|concurrenthashmap
1
2015-02-14T15:45:46.847Z
2,015
2
15
5
299
1
670
81
4
2
true
false
false
false
false
false
low
28,517,308
phonegap build cordova.file is undefined
<p>I am trying to build phonegap app using File plugin, it works fine on local , but when building it using Phonegap build , the plugin does not work, error is "cordova.file" is undefined here is my config </p> <pre><code>&lt;gap:plugin name="org.apache.cordova.file" /&gt; </code></pre> <ul> <li>I removed (verion nu...
I am trying to build phonegap app using File plugin, it works fine on local , but when building it using Phonegap build , the plugin does not work, error is "cordova.file" is undefined here is my config [CODE] I removed (verion number=1.0.1) as adviced by other questions Also phonegap build says: "This app isn't using ...
javascript|android|cordova|phonegap-plugins|phonegap-build
1
2015-02-14T15:50:37.440Z
2,015
2
15
5
633
2
422
40
5
1
true
false
false
false
false
false
low
28,517,311
Scrollable TextView inside ScrollView
<p>I just implemented "Pull to Refresh" to my code today and had a little problem. While scrolling the lyrics up, the pull to refresh (PTR) action occurs. I would like to disable that while the user touches on the <code>lyricsTextView</code>, or rather the whole space around that <code>TextView</code>. I have the title...
I just implemented "Pull to Refresh" to my code today and had a little problem. While scrolling the lyrics up, the pull to refresh (PTR) action occurs. I would like to disable that while the user touches on the lyricsTextView , or rather the whole space around that TextView . I have the title shown above the lyricsText...
android|textview|scrollview|ontouchlistener
0
2015-02-14T15:50:48.740Z
2,015
2
15
5
1,409
1
565
37
4
2
true
false
false
false
false
false
zero
28,517,357
Android SDK gives wrong path, Android Studio
<p>Recently I've started to get involved in Android developing, and I learned that Android Studio was available contrary to Eclipse. So I downloaded the new software by Google and started it up. It prompted me to install some SDK packages and I did all that it recommended me to do at </p> <p><a href="http://developer....
Recently I've started to get involved in Android developing, and I learned that Android Studio was available contrary to Eclipse. So I downloaded the new software by Google and started it up. It prompted me to install some SDK packages and I did all that it recommended me to do at http://developer.android.com/tools/hel...
android|sdk|appdata
0
2015-02-14T15:56:12.127Z
2,015
2
15
5
1,710
3
864
44
3
0
false
false
false
false
false
false
zero
28,517,364
Assigning variable in for loop to the x coordinate of each point in an arraylist
<p>I'm trying to assign each x and y coordinate in my <code>ArrayList</code> to a variable as each coordinate will be compared to the coordinates of the point a user will click on the screen. </p> <pre><code> // the coordinates of each point Point p1 = new Point(100, 100); Point p2 = new Point(100, 400); ...
I'm trying to assign each x and y coordinate in my ArrayList to a variable as each coordinate will be compared to the coordinates of the point a user will click on the screen. [CODE]
android|for-loop|arraylist|coordinates|variable-assignment
0
2015-02-14T15:57:12.077Z
2,015
2
15
5
119
1
182
80
5
1
true
false
false
false
false
false
zero
28,517,528
Changing Project Company Name in Android Studio
<p>I have an ongoing Project about to finish and before publishing wanted to change the company name without rewriting the code or messing up my GitHub repository. Is that possible?</p>
I have an ongoing Project about to finish and before publishing wanted to change the company name without rewriting the code or messing up my GitHub repository. Is that possible?
github|android-studio|google-play-services
1
2015-02-14T16:16:32.347Z
2,015
2
16
5
1,827
1
178
47
3
0
false
false
false
false
false
false
low
28,517,643
How can I encode a circle in android maps?
<p>I know that we can encode a polygon in android like this:</p> <pre><code> encoded_string = polyutil.encode(polygon.getPoints()); </code></pre> <p>But how can we get a encoded string for a circle?</p>
I know that we can encode a polygon in android like this: [CODE] But how can we get a encoded string for a circle?
android|android-maps-v2|android-maps-utils
0
2015-02-14T16:28:26.163Z
2,015
2
16
5
92
2
114
42
3
1
true
false
false
false
false
false
zero
28,517,676
BadTokenException even on Activity's Context
<p>I have initialized progressDialog with Activity's context as suggested and still app crashes a lot with "BadTokenException error". </p> <p>Error log:</p> <p><code>02-14 21:20:40.318: E/AndroidRuntime(17548): FATAL EXCEPTION: main 02-14 21:20:40.318: E/AndroidRuntime(17548): Process: com.xyz.abx.app, PID: 17548 02-...
I have initialized progressDialog with Activity's context as suggested and still app crashes a lot with "BadTokenException error". Error log: 02-14 21:20:40.318: E/AndroidRuntime(17548): FATAL EXCEPTION: main 02-14 21:20:40.318: E/AndroidRuntime(17548): Process: com.xyz.abx.app, PID: 17548 02-14 21:20:40.318: E/Android...
android
0
2015-02-14T16:32:24.727Z
2,015
2
16
5
787
2
2,368
44
1
2
true
false
false
false
false
false
zero
28,517,683
Exit an android app and avoid it to restart with previous intent
<p>My app has a restore feature which allows to replace the current database and settings with a the one from a backup file.</p> <p>The app reacts to the backup opening through intent-filters I have some code to handle the file in an Activity onCreate method</p> <pre><code>if (Intent.ACTION_VIEW.equals(intent.getActi...
My app has a restore feature which allows to replace the current database and settings with a the one from a backup file. The app reacts to the backup opening through intent-filters I have some code to handle the file in an Activity onCreate method [CODE] Then in my processURI() function I do all the work and I finish ...
android|android-intent|intentfilter
0
2015-02-14T16:33:15.943Z
2,015
2
16
5
2,033
1
571
64
3
1
true
false
false
false
false
false
zero
28,517,851
Android fragments in actionBar tabs
<p>So I have 3 actionBar tabs running 3 different fragment classes. In Tab1 of the actionBar I have a simple form that a user fills in and the data is then saved in an SQLite database, this form and the tasks carried out on it work fine as a project by itself but when I tried to integrate it as a fragment (FragmentTab1...
So I have 3 actionBar tabs running 3 different fragment classes. In Tab1 of the actionBar I have a simple form that a user fills in and the data is then saved in an SQLite database, this form and the tasks carried out on it work fine as a project by itself but when I tried to integrate it as a fragment (FragmentTab1) t...
android|android-fragments|android-actionbar
0
2015-02-14T16:50:27.247Z
2,015
2
16
5
218
1
686
35
3
4
true
false
false
false
false
false
zero
28,517,962
java.lang.OutOfMemoryError for small images
<p>In app I'm working on you can choose between multiple backgrounds and every time when I select background for layout I'm setting it with</p> <pre><code>relativeLayout.setBackground(getResources().getDrawable(R.drawable.background)); </code></pre> <p>Each of the backgrounds have resolution of 1440x2560 pixels, but ...
In app I'm working on you can choose between multiple backgrounds and every time when I select background for layout I'm setting it with [CODE] Each of the backgrounds have resolution of 1440x2560 pixels, but they only have around 12 KB each and bit depth 4. Problem is that sometimes when I select background app crashe...
android
0
2015-02-14T17:01:52.340Z
2,015
2
17
5
63
3
402
43
1
1
true
false
false
false
false
false
zero
28,517,980
WebView Resize Screen when keypad open
<p>i am using a WebView in my Android Apps.I want to show a site which have a EditTest.When i run my apps it's run well but when i click the EditText then my keypad open and my WebView don't resize. This is my .xml file </p> <pre><code>&lt;android.support.v4.widget.DrawerLayoutxmlns:android="http://schemas.android.com...
i am using a WebView in my Android Apps.I want to show a site which have a EditTest.When i run my apps it's run well but when i click the EditText then my keypad open and my WebView don't resize. This is my .xml file [CODE] I have added [CODE] this into my Android Menifest.xml and this added into my .java file [CODE] b...
java|android|webview
0
2015-02-14T17:03:49.277Z
2,015
2
17
5
148
1
377
38
3
3
true
false
false
false
false
false
zero
28,518,045
How to detect an actual link click in Android webview
<p>I want that when the user clicks the back button, it will go back to the page where it clicked the link. However, in many cases, after you click a link, the website takes you through many background redirects to ads and from page to page until they get you to your destination. In such case when you click the back bu...
I want that when the user clicks the back button, it will go back to the page where it clicked the link. However, in many cases, after you click a link, the website takes you through many background redirects to ads and from page to page until they get you to your destination. In such case when you click the back butto...
android|webview|back
1
2015-02-14T17:10:41.487Z
2,015
2
17
5
1,385
0
919
53
3
2
true
true
false
false
false
false
low
28,518,054
Android Json Parsing App
<p>App crashes after few seconds on starting </p> <p>//My Main class//</p> <pre><code> package jsontutorial.wingnity.com.quotefuel; import android.app.Activity; import android.graphics.Typeface; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import androi...
App crashes after few seconds on starting //My Main class// [CODE] //ADB LOG// [CODE]
android|json|parsing
0
2015-02-14T17:11:26.730Z
2,015
2
17
5
155
1
85
24
3
2
true
false
false
false
false
false
zero
28,518,071
OAuth2 Password Flow with Android and Symfony2 (FOSOAuthServerBundle)
<p>I'm trying to allow users to access a RESTful API using FOSOAuthServerBundle. I need my users to be able to access the API using Android. I require said users to use a Password flow to connect to the API.</p> <p>Currently, if I were to use a browser with the URI:</p> <p><code>http://BASE_URL/oauth/v2/token?client_...
I'm trying to allow users to access a RESTful API using FOSOAuthServerBundle. I need my users to be able to access the API using Android. I require said users to use a Password flow to connect to the API. Currently, if I were to use a browser with the URI: http://BASE_URL/oauth/v2/token?client_id=CLIENT_ID&client_secre...
php|android|symfony|oauth-2.0|fosoauthserverbundle
2
2015-02-14T17:13:37.877Z
2,015
2
17
5
496
0
921
69
5
2
true
true
false
false
false
false
low
28,518,089
commonsware-cwac java.lang.NoClassDefFoundError
<p>every body ...</p> <p>same of this link <a href="https://github.com/commonsguy/cwac-wakeful" rel="nofollow">cwac-wakeful</a></p> <p>I have AppListener class :</p> <pre><code>public class AppListener implements WakefulIntentService.AlarmListener { public void scheduleAlarms(AlarmManager amr, PendingIntent pi, Con...
every body ... same of this link cwac-wakeful I have AppListener class : [CODE] Then,I create an XML metadata file where identify the class that implements WakefulIntentService.AlarmListener ,so wakeful.xml: [CODE] Next, registered my AlarmReceiver as a in my manifest, set to respond to ACTION_BOOT_COMPLETED broadcasts...
android
0
2015-02-14T17:15:57.700Z
2,015
2
17
5
116
1
722
47
1
7
true
false
false
false
false
false
zero
28,518,092
Refresh Navigation Drawer after Login
<p>I have an App. After app launch, show the home screen. I am using Navigation Drawer. There is Login menu item in drawer. If they want to do same activities, user need to login.</p> <p>Example, user choose login, show the login activity. After login, back to home page. Then reopen the drawer, I want to change the lo...
I have an App. After app launch, show the home screen. I am using Navigation Drawer. There is Login menu item in drawer. If they want to do same activities, user need to login. Example, user choose login, show the login activity. After login, back to home page. Then reopen the drawer, I want to change the login to logo...
android
1
2015-02-14T17:16:06.263Z
2,015
2
17
5
1,791
1
365
37
1
0
false
false
false
false
false
false
low
28,518,114
How to properly launch an Activity stack from Android Notification?
<p><img src="https://i.stack.imgur.com/al3lq.png" alt="enter image description here"></p> <p><strong>The setup:</strong></p> <ul> <li>I have 9 Fragments placed inside MainActivity.</li> <li>There is a seperate background service which has a notification active all the time while it's alive. (Playing audio)</li> <li>A...
The setup: I have 9 Fragments placed inside MainActivity. There is a seperate background service which has a notification active all the time while it's alive. (Playing audio) After application is closed with the home button, touching the notification opens the application. When a certain object is selected inside a fr...
android|android-intent|android-fragments|android-fragmentactivity
0
2015-02-14T17:18:01.893Z
2,015
2
17
5
81
0
1,258
67
4
2
true
true
false
false
false
false
zero