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,525,701
Apache cordova or native development for an instant messaging app?
<p>I have to develop a mobile app for iOS and Android .</p> <p>I'm undecided whether to use a cross-platform approach with Apache Cordova or to develop in a native environment, with Eclipse ADT and Xcode . The problem with the native development is that I have to build two distinct app, doing the same job for these tw...
I have to develop a mobile app for iOS and Android . I'm undecided whether to use a cross-platform approach with Apache Cordova or to develop in a native environment, with Eclipse ADT and Xcode . The problem with the native development is that I have to build two distinct app, doing the same job for these two platform....
android|ios|cordova|hybrid-mobile-app
2
2015-02-15T11:46:35.957Z
2,015
2
11
6
2,557
1
2,107
66
4
0
false
false
false
false
false
false
low
28,525,736
How can i change this android layout?
<p>Layout Image :</p> <p><a href="http://s18.postimg.org/kihvabse1/Capture.jpg" rel="nofollow">http://s18.postimg.org/kihvabse1/Capture.jpg</a></p> <p>given above is an android interface that I created How can I get these buttons inside the layout as you can see on the right corner it doesnt show the whole button</p>...
Layout Image : http://s18.postimg.org/kihvabse1/Capture.jpg given above is an android interface that I created How can I get these buttons inside the layout as you can see on the right corner it doesnt show the whole button XML Code: [CODE]
android|layout
1
2015-02-15T11:51:11.237Z
2,015
2
11
6
76
2
240
37
2
1
true
false
false
false
false
false
low
28,525,759
Inserting Data into MySQL from Android
<p>I am unable to insert data into my MySQL database. And I also have send reply back to Android Module to show if the data is saved or not.</p> <p>PHP code:</p> <pre><code> $id = $_POST['Id']; $name = $_POST['Name']; $email = $_POST['Email']; $con = new PDO("mysql:host=localhost;dbname=tes...
I am unable to insert data into my MySQL database. And I also have send reply back to Android Module to show if the data is saved or not. PHP code: [CODE] And Android code: [CODE]
php|android|mysql
-3
2015-02-15T11:53:43.900Z
2,015
2
11
6
210
2
179
38
3
2
true
false
false
false
false
true
negative
28,525,880
Connect to remote MySQL using Xamarin
<p>I know that there is some post about my problem in the net, but none of them has the answer I can use.</p> <p>My problem is connecting to remote MySQL database using Android Xamarin.</p> <p>I tried to connect using MySQL.Data.dll - there were a lot of errors about missing references.</p> <p>I wanted to use SQLite...
I know that there is some post about my problem in the net, but none of them has the answer I can use. My problem is connecting to remote MySQL database using Android Xamarin. I tried to connect using MySQL.Data.dll - there were a lot of errors about missing references. I wanted to use SQLite, but I couldn't find any p...
c#|android|mysql|sqlite|xamarin
0
2015-02-15T12:08:47.140Z
2,015
2
12
6
1,242
1
521
37
5
0
false
false
false
false
false
false
zero
28,525,920
Can't call global javascript functions from android phone
<p>I have a global file functions.js with global javascript functions which are called from other javascripts. Why is not this working on my android phone?</p> <p>Functions are defined like this in functions.js</p> <pre><code>function function_name(){ alert("test"); } </code></pre> <p>And called like in the othe...
I have a global file functions.js with global javascript functions which are called from other javascripts. Why is not this working on my android phone? Functions are defined like this in functions.js [CODE] And called like in the other javascript files. [CODE] Is there another way to deal with global javascript functi...
javascript|android|jquery
0
2015-02-15T12:13:14.573Z
2,015
2
12
6
125
2
353
57
3
2
true
false
false
false
false
false
zero
28,525,967
GCM push notification with android
<p>Recently, I've tried to learn GCM and make a test application that will get the push notification for android through androids official site. However, I find the tutorial difficult for me. Are there any simple and easy tutorial for a novice like me to learn GCM push notification without the use of a server for andro...
Recently, I've tried to learn GCM and make a test application that will get the push notification for android through androids official site. However, I find the tutorial difficult for me. Are there any simple and easy tutorial for a novice like me to learn GCM push notification without the use of a server for android ...
android|push-notification|google-cloud-messaging
4
2015-02-15T12:19:23.767Z
2,015
2
12
6
1,380
2
321
34
3
0
false
false
false
false
false
false
low
28,525,994
App crashes when trying to fullscreen activity
<p>Hi I'm using the code below to hide actionbar and fullscreen my activity</p> <pre><code>android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" </code></pre> <p>But with this code I get runtime error and app just crashes anyone know whats the problem?</p> <p>Logcat:</p> <pre> E/AndroidRuntime(108...
Hi I'm using the code below to hide actionbar and fullscreen my activity [CODE] But with this code I get runtime error and app just crashes anyone know whats the problem? Logcat: [CODE]
android
1
2015-02-15T12:22:29.900Z
2,015
2
12
6
1,092
3
185
46
1
2
true
false
false
false
false
false
low
28,526,049
How to Take a photo and attach the photo in an e-mail and send
<p>I want to achieve the following</p> <ol> <li>In my app, there will be a screen which allows you to take a picture <ol start="2"> <li>Once user has taken the picture, he will get an option to send the picture to the predefined email Id as an attachment.</li> </ol></li> </ol> <p>Can someone throw some light or give ...
I want to achieve the following In my app, there will be a screen which allows you to take a picture Once user has taken the picture, he will get an option to send the picture to the predefined email Id as an attachment. Can someone throw some light or give me direction on how to achieve this?
android-camera|sendmail|android-camera-intent
1
2015-02-15T12:30:04.043Z
2,015
2
12
6
1,065
1
294
62
3
0
false
false
false
false
false
false
low
28,526,080
How to create AVD for tablet?
<p>After many search, I know there are similar questions about this, but seems they are either out-dated, or not what I am looking for.</p> <p>I want the AVD works as this: in system Settings, the screen should be split to two parts, left part shows all headers, while right part shows the fragment for selected header....
After many search, I know there are similar questions about this, but seems they are either out-dated, or not what I am looking for. I want the AVD works as this: in system Settings, the screen should be split to two parts, left part shows all headers, while right part shows the fragment for selected header. I tried ma...
android|emulation|tablet
1
2015-02-15T12:34:55.130Z
2,015
2
12
6
296
0
860
29
3
0
false
true
false
false
false
false
low
28,526,110
onCreateView() - Cannot make a static reference to the non-static method
<p>I am trying to close soft keyboard after entering some text on a field. This is the code I have on my Fragment's onCreateView(). However, I get the following errors:</p> <pre><code>Cannot make a static reference to the non-static method getWindow() from the type Activity Cannot make a static reference to the non-st...
I am trying to close soft keyboard after entering some text on a field. This is the code I have on my Fragment's onCreateView(). However, I get the following errors: [CODE] Any ideas? [CODE]
java|android|android-layout|android-activity|android-fragments
1
2015-02-15T12:39:19.610Z
2,015
2
12
6
836
2
190
72
5
2
true
false
false
false
false
false
low
28,526,183
Clear cache of UIL library
<p>I am using universal image loader library for loading the images in my listview. I want to clear the cache for all the images at once.</p> <p>I know how to do it for one image at a time.</p> <pre><code> MemoryCacheUtils.removeFromCache("file://"+path, ImageLoader.getInstance().getMemoryCache()); DiskCacheUtils.rem...
I am using universal image loader library for loading the images in my listview. I want to clear the cache for all the images at once. I know how to do it for one image at a time. [CODE] How can I do this?
android|universal-image-loader
-2
2015-02-15T12:47:29.213Z
2,015
2
12
6
399
2
205
26
2
1
true
false
false
false
false
true
negative
28,526,235
Should provide default constructor?
<p>I have an app that I transferred to the new android studio. When I try and generate a signed apk I get this error:</p> <pre><code>Error:(24) Error: This fragment should provide a default constructor (a public constructor with no arguments) (com.example.mike.beerportfolionewicon.BarcodeFrag) [ValidFragment] </code><...
I have an app that I transferred to the new android studio. When I try and generate a signed apk I get this error: [CODE] The class starts off like this: [CODE] I selected an option to ignore inspection but it still will not create an apk... Tried changing it to this, but same error: [CODE] Actually its a different err...
android|android-studio|apk
2
2015-02-15T12:52:41.763Z
2,015
2
12
6
6,518
3
374
35
3
5
true
false
true
false
false
false
low
28,526,242
How to pass Multiple information from one screen to another screen in android
<p>I have a sign-up form, and I have to pass all info filled in that form to another screen. I know how to display if there is one field, but in sign-up form there are multiple fields. so I want to know how to display all the info.</p>
I have a sign-up form, and I have to pass all info filled in that form to another screen. I know how to display if there is one field, but in sign-up form there are multiple fields. so I want to know how to display all the info.
android
0
2015-02-15T12:53:41.673Z
2,015
2
12
6
1,104
3
228
77
1
0
false
false
false
false
false
false
zero
28,526,274
Runtime Error using Timer - Android
<p>I'm using Timer example as given here: <a href="https://stackoverflow.com/a/2535778/4549769">https://stackoverflow.com/a/2535778/4549769</a> but I'm getting a runtime error when executing this line (I've commented all other for debugging): <code>intensityTextView.setText(String.valueOf(_intensity));</code> I underst...
I'm using Timer example as given here: https://stackoverflow.com/a/2535778/4549769 but I'm getting a runtime error when executing this line (I've commented all other for debugging): intensityTextView.setText(String.valueOf(_intensity)); I understand that I need to pass the UI somehow but have no idea how. here is the c...
java|android|timer|runtime
0
2015-02-15T12:57:41.277Z
2,015
2
12
6
326
2
337
35
4
2
true
false
false
false
false
false
zero
28,526,401
How to disable Mobile Data on Android with Xamarin
<p>similar question to <a href="https://stackoverflow.com/questions/3644144/how-to-disable-mobile-data-on-android">How to disable Mobile Data on Android</a> . the only difference is that i want to do that with Xamarin but not java.</p> <p>I tried the code below but it did nothing.</p> <pre><code> var conn = Ap...
similar question to How to disable Mobile Data on Android . the only difference is that i want to do that with Xamarin but not java. I tried the code below but it did nothing. [CODE] so my question is that: is there anyway to disable Mobile Data on Android with xamarin? or is there anyway to use "java reflection techni...
android|xamarin
2
2015-02-15T13:11:19.073Z
2,015
2
13
6
1,928
2
339
50
2
1
true
false
false
false
false
false
low
28,526,429
what most needed to be download in new api(21)?
<p>I have limited bandwidth and don't want to download all files of api 21 in sdk. what files are really necessary?(no need to system images?)</p>
I have limited bandwidth and don't want to download all files of api 21 in sdk. what files are really necessary?(no need to system images?)
android|android-sdk-tools
0
2015-02-15T13:14:27.283Z
2,015
2
13
6
46
1
139
47
2
0
false
false
false
false
false
false
zero
28,526,482
Change a text view using the onclick activity
<p>I have a main activity that shows three buttons another xml with a text view. How do I change the text of the second one when a button is clicked? I could make a different onClick action n Activities of each of them, but I want to do this with less lines of codes.</p>
I have a main activity that shows three buttons another xml with a text view. How do I change the text of the second one when a button is clicked? I could make a different onClick action n Activities of each of them, but I want to do this with less lines of codes.
java|android|android-activity
-1
2015-02-15T13:19:49.393Z
2,015
2
13
6
69
2
264
45
3
0
false
false
false
false
false
true
negative
28,526,484
ANR Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x50000010 }
<p>I got the ANR from Google Report which is mainly reported from Galaxy Note3 (hlte) and Galaxy Note II (t03g).</p> <p>I don't know what's going on and how to solve this problem. </p> <p>Anyone know what's happened?</p> <p>The stack traces are listed below.</p> <pre><code>----- pid 1958 at 2015-02-15 03:18:13 ----...
I got the ANR from Google Report which is mainly reported from Galaxy Note3 (hlte) and Galaxy Note II (t03g). I don't know what's going on and how to solve this problem. Anyone know what's happened? The stack traces are listed below. [CODE] ------------ 2015/02/17 --------------- Here is the part of BroadcastReceiver I...
android|broadcastreceiver
26
2015-02-15T13:19:52.650Z
2,015
2
13
6
9,665
1
367
79
2
3
true
false
true
false
true
false
high
28,526,581
FragmentPagerAdapter doesn't update items
<p>I have FragmentPager Adapter which looks like this :</p> <pre><code>public class ImageAdapter extends FragmentPagerAdapter{ private List&lt;ImageItem&gt; items; public ImageAdapter(List&lt;ImageItem&gt; items, FragmentManager manager) { super(manager); this.items = items; } @Overri...
I have FragmentPager Adapter which looks like this : [CODE] So fragment by itself is empty, all customization comes in getItem and getItemsPoisition, then i have a loader which creates this adapter ant puts it to ViewPager: [CODE] The first time it sets everything is ok, but second time and later times it just doesn't ...
android|android-viewpager
0
2015-02-15T13:30:59.293Z
2,015
2
13
6
279
1
361
41
2
2
true
false
false
false
false
false
zero
28,526,586
How view support library documentation in Android Studio?
<p>By pressing Shift + F1 on some method in code editor I can open standard API documentation in browser. But, how open support library documentation in android studio 1.02 (by pressing Shift + F1 ) ?</p>
By pressing Shift + F1 on some method in code editor I can open standard API documentation in browser. But, how open support library documentation in android studio 1.02 (by pressing Shift + F1 ) ?
android|android-studio
2
2015-02-15T13:31:41.320Z
2,015
2
13
6
597
2
197
57
2
0
false
false
false
false
false
false
low
28,526,626
Sync a fork with original: Problems with merge and rebase
<p>I'm working in android development, so I decided to upload my own changes of a team's rom to my github.</p> <p>I did a fork of some projects like framework/base, so I have my own commits there. The problem comes when I set as remote the original github project, using this guide <a href="https://help.github.com/arti...
I'm working in android development, so I decided to upload my own changes of a team's rom to my github. I did a fork of some projects like framework/base, so I have my own commits there. The problem comes when I set as remote the original github project, using this guide enter link description here : I want to have a c...
android|git|github
0
2015-02-15T13:36:16.400Z
2,015
2
13
6
806
1
758
57
3
0
false
false
false
false
false
false
zero
28,526,638
How to set Spinner value based on value from database?
<p>I have been looking for an answer to this question and it took me quite some time, but none of the answers I found here was satisfactory. The problem is that I wanted to update a record in a database and I needed to transform the database value to a Spinner value. Most of the answers here mentioned solutions for Sp...
I have been looking for an answer to this question and it took me quite some time, but none of the answers I found here was satisfactory. The problem is that I wanted to update a record in a database and I needed to transform the database value to a Spinner value. Most of the answers here mentioned solutions for Spinne...
android|spinner
1
2015-02-15T13:38:13.627Z
2,015
2
13
6
196
1
366
54
2
0
false
false
false
false
false
false
low
28,526,661
opening google map in android
<p>I open maps with GPS point here so:</p> <pre><code> String geoUri = String.format("geo:%s,%s?z=15", Double.toString(lat), Double.toString(lng)); Uri geo = Uri.parse(geoURI); Intent geoMap = new Intent(Intent.ACTION_VIEW, geo); startActivity(geoMap); </code></pre> <p>google is focused in the right place of a...
I open maps with GPS point here so: [CODE] google is focused in the right place of a map, but the point was not set. What's missing from google maps?
android|google-maps
1
2015-02-15T13:41:10.820Z
2,015
2
13
6
293
1
149
29
2
1
true
false
false
false
false
false
low
28,526,674
Gradle DSL Method not found
<p>I installed the latest version of Android Studio, and imported an older project. I get this error when I try to open it:</p> <p><img src="https://i.stack.imgur.com/SrIph.png" alt="enter image description here"></p>
I installed the latest version of Android Studio, and imported an older project. I get this error when I try to open it:
android|android-studio|android-gradle-plugin
0
2015-02-15T13:42:46.803Z
2,015
2
13
6
111
1
120
27
3
0
false
false
false
false
false
false
zero
28,526,724
A whole bunch of material design errors
<p>When I open my android project I get a whole lot of material design errors. I think I changed a setting for material design accidently, how can I go back...</p> <p><img src="https://i.stack.imgur.com/4xH72.png" alt="enter image description here"></p>
When I open my android project I get a whole lot of material design errors. I think I changed a setting for material design accidently, how can I go back...
java|android|android-studio|material-design
0
2015-02-15T13:47:16.513Z
2,015
2
13
6
157
1
156
39
4
0
false
false
false
false
false
false
zero
28,526,744
Backend vs. Hosting Difference?
<p>I am creating a social media app and going to be using Firebase for my backend. I know this might be a simple question but would i still need to host my app on some hosting service if I'm using Firebase for backend? Kind of confused on hosting vs backend.</p>
I am creating a social media app and going to be using Firebase for my backend. I know this might be a simple question but would i still need to host my app on some hosting service if I'm using Firebase for backend? Kind of confused on hosting vs backend.
android|mobile|hosting|firebase|backend
1
2015-02-15T13:49:16.470Z
2,015
2
13
6
552
1
255
31
5
0
false
false
false
false
false
false
low
28,526,793
Material Design progressdialog
<pre><code> alertDialog = new ProgressDialog(this); alertDialog.setMessage(getResources().getString(R.string.loader)); alertDialog.setCancelable(false); alertDialog.show(); </code></pre> <p>Simply when I do this, green circle shows up with the word loading besides it. However when i DONT U...
[CODE] Simply when I do this, green circle shows up with the word loading besides it. However when i DONT USE progress dialog, and i use a progressbar on the page I get a pink color as i have defined the below in my styles.xml [CODE] What is the solution of getting the circle pink color as in the progress bar on page?
android|progressdialog
15
2015-02-15T13:55:58.980Z
2,015
2
13
6
19,547
3
319
30
2
2
true
false
true
true
true
false
medium
28,526,858
Android - setOnItemClickListener() doesn't in listview
<p>I can not solve the problem with not working setOnItemClickListener(). (API minSdkVersion 19, targetSdkVersion 21, compile 'com.android.support:appcompat-v7:21.0.3')</p> <p>I tried to put in different places:</p> <ul> <li>android:descendantFocusability="blocksDescendants"</li> <li>android:clickable="false"</li> ...
I can not solve the problem with not working setOnItemClickListener(). (API minSdkVersion 19, targetSdkVersion 21, compile 'com.android.support:appcompat-v7:21.0.3') I tried to put in different places: android:descendantFocusability="blocksDescendants" android:clickable="false" android:focusable="false" android:focusab...
android|listview|listener
0
2015-02-15T14:02:36.043Z
2,015
2
14
6
370
2
688
54
3
3
true
false
false
false
false
false
zero
28,526,862
Refresh listView in Fragment - NullPointerException
<p>In my application I have MainActivity (extends Fragment activity), topButtons independent from mPagerView (ex: AddButton), PagerView with Fragments inside. What I want to do is:</p> <p>1) Download some content (new activity is started then on activityResult is done get information back)</p> <p>2) Create new object...
In my application I have MainActivity (extends Fragment activity), topButtons independent from mPagerView (ex: AddButton), PagerView with Fragments inside. What I want to do is: 1) Download some content (new activity is started then on activityResult is done get information back) 2) Create new object and add it to the ...
listview|android-fragments
0
2015-02-15T14:03:01.630Z
2,015
2
14
6
198
1
984
51
2
4
true
false
false
false
false
false
zero
28,526,912
Android ExpandableListAdapter: ArrayAdapter requires the resource ID to be a TextView
<p>I'm just starting out in Android development and need to create an expandable list view. I'm following this tutorial: <a href="http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/" rel="nofollow noreferrer">http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/</a></p> <p>Th...
I'm just starting out in Android development and need to create an expandable list view. I'm following this tutorial: http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/ The application compiles and runs successfully, however I'm getting the following error: java.lang.IllegalStateException: Array...
java|android|android-listview
0
2015-02-15T14:09:50.533Z
2,015
2
14
6
1,142
1
1,249
85
3
2
true
false
false
false
false
false
zero
28,526,969
Android - passing data between threads
<p>I need to pass a huge amount of data (raw bytes) between threads - listener thread and another thread that deals with the data manipulation. Whats the best and fastest way to do that?</p>
I need to pass a huge amount of data (raw bytes) between threads - listener thread and another thread that deals with the data manipulation. Whats the best and fastest way to do that?
android|multithreading|pipeline
3
2015-02-15T14:16:46.463Z
2,015
2
14
6
4,423
3
183
38
3
0
false
false
true
false
false
false
low
28,527,020
onclick to whole activity
<p>I have a activity with a table layout and an Background 9.pic - the user just had to click anywhere to take some Action</p> <p>I put the click listener to tablelayout but it seems not working</p> <pre><code>TableLayout TL = (TableLayout) findViewById(R.id.TableLayout1); View view = TL; TL.setOnClickListen...
I have a activity with a table layout and an Background 9.pic - the user just had to click anywhere to take some Action I put the click listener to tablelayout but it seems not working [CODE] here is XML [CODE] I set before a onclick the tablelayout but it didn't work also
android|onclicklistener
0
2015-02-15T14:21:40.847Z
2,015
2
14
6
206
2
273
25
2
2
true
false
false
false
false
false
zero
28,527,037
Convert bytes received to KB/MB - Android
<p>I use the below code to display Transmitted and received bytes:</p> <pre><code>public class MainActivity extends Activity { private Handler mHandler = new Handler(); private long mStartRX = 0; private long mStartTX = 0; private final Runnable mRunnable = new Runnable() { public void ...
I use the below code to display Transmitted and received bytes: [CODE] But I want to add units to it (i.e KB, MB, GB). For example, if the data usage is less than 1MB, it should display in KB and should change to MB and GB respectively.
android
0
2015-02-15T14:23:18.710Z
2,015
2
14
6
3,607
3
236
41
1
1
true
false
true
false
false
false
zero
28,527,050
view in xml layout
<p>I've created my own view and I can't figure out how to add it from the main.xml layout file</p> <p>setContentView(vi); its work but ı want setContentView(R.layout.activity_main); </p> <p>public class Gui extends View {</p> <pre><code>public Gui(Context context) { super(context); } @Override protected void o...
I've created my own view and I can't figure out how to add it from the main.xml layout file setContentView(vi); its work but ı want setContentView(R.layout.activity_main); public class Gui extends View { [CODE] }
android|xml|android-layout|layout
0
2015-02-15T14:24:35.410Z
2,015
2
14
6
36
2
212
18
4
1
true
false
false
false
false
false
zero
28,527,067
Android, JSON array into ArrayList<String>
<p><br> How to parse JSON string array into Java arraylist<br></p> <p>I have this json:</p> <pre><code>{ "a": [ "A-lore ipsum 1", "A-lore ipsum 2", "A-lore ipsum 3" ], "b": [ "B-lore ipsum 1", "B-lore ipsum 2", "B-lore ipsum 3" ] } </code></pre> <p><br> this is my original code : </p> ...
How to parse JSON string array into Java arraylist I have this json: [CODE] this is my original code : [CODE] So I would like my list to look like: if v = 'a'; [CODE] if v = 'b'; [CODE]
java|android|json
1
2015-02-15T14:26:42.747Z
2,015
2
14
6
1,577
3
185
42
3
4
true
false
false
false
false
false
low
28,527,161
Android Studio Java : Cannot resolve symbol override
<p>I'm a beginner with Java and Android Studio. I try to implemet a OnEditorActionListener that listens for when the user presses the Done button in a softkeyboard. There are many code fragments available, but I dont know where to put the code (onCreate ? Own class...) While testing some of those code fragments I get a...
I'm a beginner with Java and Android Studio. I try to implemet a OnEditorActionListener that listens for when the user presses the Done button in a softkeyboard. There are many code fragments available, but I dont know where to put the code (onCreate ? Own class...) While testing some of those code fragments I get an e...
java|android
3
2015-02-15T14:36:46.497Z
2,015
2
14
6
2,985
1
541
52
2
1
true
false
true
false
false
false
low
28,527,162
Android layout shadow
<p>Hi I have been searchin for a solution on how I can make something like this possible. I am able to make two seperate views and make one grey an the other white but there isn't the same feel. Google uses a kind of shadowy effect in the white one. Is there a library that will allow me to do so?</p> <p><img src="http...
Hi I have been searchin for a solution on how I can make something like this possible. I am able to make two seperate views and make one grey an the other white but there isn't the same feel. Google uses a kind of shadowy effect in the white one. Is there a library that will allow me to do so?
java|android|user-interface|layout|shadow
0
2015-02-15T14:36:55.803Z
2,015
2
14
6
204
1
294
21
5
0
false
false
false
false
false
false
zero
28,527,204
How i can destroy playerObj?
<p>i'm trying creating engine and output Mix:</p> <pre><code>// create engine this-&gt;res = slCreateEngine(&amp;this-&gt;engineObject, 0, NULL, 0, NULL, NULL); if (SL_RESULT_SUCCESS != this-&gt;res) { LOGI("Can't Create Engine."); this-&gt;Free(); return; } this-&gt;res = (*this-&gt;engineObject)-&gt;Real...
i'm trying creating engine and output Mix: [CODE] that is successful! Start playing mp3 stream from IceCast (example " http://example.com/stream320 "): [CODE] filename = " http://example.com/stream320 "; LogCat began print a Error msg...: E/libOpenSLES(16432): MEDIA_BUFFERING_UPDATE -491520000% < 0 E/libOpenSLES(16432)...
android-ndk|opensl
0
2015-02-15T14:43:02.943Z
2,015
2
14
6
133
0
735
28
2
4
true
true
false
false
false
false
zero
28,527,212
Arabic unicode or ASCII code in java
<p>i want to find the character ASCII code for programming android to support the Arabic locale. Android programming has many characters are different English. The ASCII code in many letters joint or some of letters are split. how can i find the special code for each letter? </p>
i want to find the character ASCII code for programming android to support the Arabic locale. Android programming has many characters are different English. The ASCII code in many letters joint or some of letters are split. how can i find the special code for each letter?
java|android
1
2015-02-15T14:43:50.190Z
2,015
2
14
6
2,545
2
272
36
2
0
false
false
false
false
false
false
low
28,527,234
Can't read the JSON response I send to android application
<p>Hello I am trying to create a local database on my android device. I made the php script that returns the following response:</p> <blockquote> <p>{"ruta":[{"id_ruta":"1","ime_rute":"1","duljina_rute":"6","max_visina":"3","trajanje_rute":"5","opis_rute":"2","lokacija_rute":"4","oprema_rute":""},{"id_ruta":"2","ime...
Hello I am trying to create a local database on my android device. I made the php script that returns the following response: {"ruta":[{"id_ruta":"1","ime_rute":"1","duljina_rute":"6","max_visina":"3","trajanje_rute":"5","opis_rute":"2","lokacija_rute":"4","oprema_rute":""},{"id_ruta":"2","ime_rute":"test","duljina_rut...
java|android|json
0
2015-02-15T14:45:28.650Z
2,015
2
14
6
32
1
4,428
58
3
1
true
false
false
false
false
false
zero
28,527,295
Google Maps V2: Does rotating the map change the orientation of TileOverlays?
<p>Background: I want to draw several Polygons on a map (few thousand coordinates in all). This worked pretty fast on Google Maps V1 by Overlays. But Google Maps V2 seems to be ineligible for that. First of all I tried to add polygons directly to the map by </p> <pre><code>googleMap.addPolygon(myPolygonOptions); </cod...
Background: I want to draw several Polygons on a map (few thousand coordinates in all). This worked pretty fast on Google Maps V1 by Overlays. But Google Maps V2 seems to be ineligible for that. First of all I tried to add polygons directly to the map by [CODE] but this is not just unusable slow, it seems to be buggy t...
android|google-maps|overlay|google-maps-android-api-2
0
2015-02-15T14:52:14.043Z
2,015
2
14
6
533
1
1,446
77
4
2
true
false
false
false
false
false
zero
28,527,322
How to rename project in Android Studio `Reopen Project` list?
<p>Anyone knows how to rename this recently opened project <strong>"gradle"</strong> which I can find in my <code>File</code>-><code>Reopen Project</code> list? <img src="https://i.stack.imgur.com/4Ejtr.png" alt="Recent project is called &quot;gradle&quot;"></p> <p>Ubuntu 14.10 Android Studio 1.1 RC 1</p> <p>Also aff...
Anyone knows how to rename this recently opened project "gradle" which I can find in my File -> Reopen Project list? Ubuntu 14.10 Android Studio 1.1 RC 1 Also affects open projects' list in Window menu:
ubuntu|android-studio|project|rename
0
2015-02-15T14:55:22.820Z
2,015
2
14
6
87
1
202
62
4
0
false
false
false
false
false
false
zero
28,527,329
Android - How to detect the final Activity in the stack
<p>I use the code below to check the final <code>Fragment</code> in an <code>Activity</code> to pop a dialog</p> <pre><code>@Override public boolean onKeyDown(int keyCode, KeyEvent event) { // Check if there is only one fragment if (keyCode == KeyEvent.KEYCODE_BACK) { if (getSupportFrag...
I use the code below to check the final Fragment in an Activity to pop a dialog [CODE] Now suppose i have a set of Activity s. How can I perform the same for an Activity whether the Activity is the last in the stack, and pop a quit dialog ?
android|android-activity|android-lifecycle|back-stack|android-task
2
2015-02-15T14:56:05.960Z
2,015
2
14
6
4,684
1
240
55
5
1
true
false
true
false
false
false
low
28,527,404
Can't optimize line chart using MPAndroidChart library
<p>I am trying to make a good looking line chart iwht <a href="https://github.com/PhilJay/MPAndroidChart" rel="nofollow noreferrer">MPAndroidChart</a>, but I am having some problems. Here is what I got now <img src="https://i.stack.imgur.com/hLUgK.png" alt="enter image description here"></p> <p>and here is the code fo...
I am trying to make a good looking line chart iwht MPAndroidChart , but I am having some problems. Here is what I got now and here is the code for it [CODE] What I need is: Remove that black box under the lower left corner Make the text "Nicotine Lowered" somewhat bigger and more readable Add some padding or something,...
android|graph|android-graphview|mpandroidchart
1
2015-02-15T15:02:11.503Z
2,015
2
15
6
2,017
2
649
54
4
1
true
false
false
false
false
false
low
28,527,406
how to get asset path file using android default music player as an intent?
<p>I have a really big problem in getting <strong>address</strong> from <strong>asset folder</strong> when I'm using the <strong>default music player</strong> as an intent! This is my code:</p> <pre><code>Uri path = Uri.parse("file:///android_asset/file.mp3"); String newPath = path.toString(); Intent intent = new Inte...
I have a really big problem in getting address from asset folder when I'm using the default music player as an intent! This is my code: [CODE] The App just works fine on my device but when I wanna run the intent, a TOAST just say: " Unable to find item " What should I do?
android|android-assets|android-music-player
0
2015-02-15T15:02:44.823Z
2,015
2
15
6
717
1
272
75
3
1
true
false
false
false
false
false
zero
28,527,491
JSONStore Android app on x86_64 emulator
<p>I've built a MobileFirst 6.3 app that uses JSONStore and tried to run it on the x86_64 Android emulator. I got </p> <pre><code>02-15 13:11:54.600: D/com.worklight.nativeandroid.common.WLUtils(2081): WLUtils.loadLib in WLUtils.java:539 :: Extracting zip file: featurelibs/armeabi/libcrypto.so.1.0.0 02-15 13:11:54....
I've built a MobileFirst 6.3 app that uses JSONStore and tried to run it on the x86_64 Android emulator. I got [CODE] e_machine: 40 seems to mean EM_ARM
android|android-emulator|jsonstore|ibm-mobilefirst
1
2015-02-15T15:10:15.943Z
2,015
2
15
6
524
1
152
40
4
1
true
false
false
false
false
false
low
28,527,506
Andengine Half black screen
<p>I am trying to develop a game with andengine. I create a camera, set its bounds and dimensions (720X1280) But when I run the app I see only the top part of the screen and the rest is black.</p> <pre><code>@Override public EngineOptions onCreateEngineOptions() { Display display = getWindowManager().getDefaultDis...
I am trying to develop a game with andengine. I create a camera, set its bounds and dimensions (720X1280) But when I run the app I see only the top part of the screen and the rest is black. [CODE] What am I doing wrong here?
android|camera|andengine
0
2015-02-15T15:11:35.563Z
2,015
2
15
6
69
1
224
27
3
1
true
false
false
false
false
false
zero
28,527,570
How to display an image by using its url?
<p>Hi guys i want to display an image that is on the web by using its URL. This is my code: </p> <pre><code>public class LasVegas extends ActionBarActivity { //variable del toolbar o app_bar private android.support.v7.widget.Toolbar toolbar; //variable del view de la camara private ImageView viewCamVe...
Hi guys i want to display an image that is on the web by using its URL. This is my code: [CODE] It perfectly compiles, but when I run it, the image view that is supposed to display the image by URL is empty; it doesn't show anything at all. How can I solve this?
java|android|url|imageview
0
2015-02-15T15:17:42.163Z
2,015
2
15
6
180
1
262
41
4
1
true
false
false
false
false
false
zero
28,527,572
get protocol from URL if not typed in
<p>I am trying to find a way to get the protocol from a URL that the user types in. I have an EditText set as uri in an android layout file. The user types in his web address as <strong>www.thiersite.com</strong> or <strong>theirsite.com</strong>. </p> <p>Now how can I get the correct protocol from what they have type...
I am trying to find a way to get the protocol from a URL that the user types in. I have an EditText set as uri in an android layout file. The user types in his web address as www.thiersite.com or theirsite.com . Now how can I get the correct protocol from what they have typed in? It seems everywhere I look that you nee...
java|android
0
2015-02-15T15:17:53.253Z
2,015
2
15
6
786
1
708
37
2
0
false
false
false
false
false
false
zero
28,527,584
Android Custom Dialog Fragment callback not being called
<p>So in my app i'm in need of using several confirmation dialogFragments of the same type, basically, it has a message, yes/no and a callback for the positive message. I managed to do it, except for the callback part, which i cant figure it out why it is not being called. Any help would be appreciated. Thx.</p> <pre>...
So in my app i'm in need of using several confirmation dialogFragments of the same type, basically, it has a message, yes/no and a callback for the positive message. I managed to do it, except for the callback part, which i cant figure it out why it is not being called. Any help would be appreciated. Thx. [CODE] Callin...
android|callback|android-dialogfragment
0
2015-02-15T15:18:36.873Z
2,015
2
15
6
321
1
574
56
3
2
true
false
false
false
false
false
zero
28,527,615
How to set listview height inside scrollview properly?
<p>I used listview inside scrollview and used this code to update listview height:</p> <pre><code>// method to expand the height of listview public void updateListViewHeight(ListView list) { CustomeAdapter myListAdapter = (CustomeAdapter) list.getAdapter(); if (myListAdapter == null) { return; } ...
I used listview inside scrollview and used this code to update listview height: [CODE] The problem is that I request new data from server when the user scroll down, but when I update listview height it auto scroll and request data automatically
android|listview
0
2015-02-15T15:21:17.643Z
2,015
2
15
6
1,289
0
244
54
2
1
true
true
false
false
false
false
zero
28,527,617
Android HTTP GET Request
<p>I've created a Python REST api with Flask, which 'should' allow me to use my phone as a Keyboard.</p> <p>If I go to '<a href="http://192.168.0.37:5000/keyboard/a" rel="nofollow">http://192.168.0.37:5000/keyboard/a</a>' on my phones web browser, my laptop will enter the letter a. (This works).</p> <p>I've tried to ...
I've created a Python REST api with Flask, which 'should' allow me to use my phone as a Keyboard. If I go to ' http://192.168.0.37:5000/keyboard/a ' on my phones web browser, my laptop will enter the letter a. (This works). I've tried to create an Android app that will make the http request, but it doesn't seem to work...
java|android|python|http|httprequest
0
2015-02-15T15:21:25.743Z
2,015
2
15
6
550
1
453
24
5
1
true
false
false
false
false
false
zero
28,527,661
How to compare Int value that is saved into shared preference
<p>i m trying to create Level Review and show level rating after completed beside the level image. my code is ready and showing rating after level completion i m saving score value into Shared Preference and checking for value Here is code </p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="sn...
i m trying to create Level Review and show level rating after completed beside the level image. my code is ready and showing rating after level completion i m saving score value into Shared Preference and checking for value Here is code [CODE] But PROBLEM is : i m able to get value form key but not able to compare valu...
android|sharedpreferences
0
2015-02-15T15:25:24.290Z
2,015
2
15
6
890
1
498
61
2
1
true
false
false
false
false
false
zero
28,527,665
How to get Ola Cabs Api key?
<p>I need to implement Ola cabs Api in an android app. I am following this link - <a href="http://docs.console.olacabs.com/ola" rel="nofollow noreferrer">http://docs.console.olacabs.com/ola</a>.</p> <p>But everytime I try and fetch some data, it says &quot;Authorization Error&quot;. I need a valid Api key to use the se...
I need to implement Ola cabs Api in an android app. I am following this link - http://docs.console.olacabs.com/ola . But everytime I try and fetch some data, it says &quot;Authorization Error&quot;. I need a valid Api key to use the services but can't find a way or link to generate one.
android|api
1
2015-02-15T15:25:42.490Z
2,015
2
15
6
4,547
3
287
28
2
0
false
false
true
false
false
false
low
28,527,698
How do I share entity objects between multiple endpoints in Google App Engine using appengineEndpointsGetClientLibs?
<p>I have an entity to send a contactList to a java enpoint in Google App Engine:</p> <pre><code>@Entity public class ContactList { private ArrayList&lt;Contact&gt; list; public ArrayList&lt;Contact&gt; getList() { return list; } public void setList(ArrayList&lt;Contact&gt; list) { t...
I have an entity to send a contactList to a java enpoint in Google App Engine: [CODE] I have another endpoint that I would like to send the same entity to. When developing both Enpoints in Android Studio I have one class for the shared entity: [CODE] But when generating the client libs, it generates two versions of the...
java|android|google-app-engine|android-studio|datastore
2
2015-02-15T15:29:19.053Z
2,015
2
15
6
394
1
467
116
5
3
true
false
false
false
false
false
low
28,527,730
how to customize android material color palette
<p>Actually i am working on one android app which contains material design navigation drawer,i want to change the colors of status bar,action bar,text color dynamically for every 5 min.Actually i am using supporting library theme to support all android mobiles.So main thing is i want to customize color palette.Please h...
Actually i am working on one android app which contains material design navigation drawer,i want to change the colors of status bar,action bar,text color dynamically for every 5 min.Actually i am using supporting library theme to support all android mobiles.So main thing is i want to customize color palette.Please help...
android|material-design
3
2015-02-15T15:32:54.633Z
2,015
2
15
6
529
1
347
47
2
1
true
false
false
false
false
false
low
28,527,902
cordova phonegap - How to use android API level 21
<p>Hey I forked the push notification plugin (<a href="https://github.com/alexislg2/PushPlugin" rel="nofollow">https://github.com/alexislg2/PushPlugin</a>) and added it to my project.</p> <p>The project won't compile with <code>cordova build</code> because I have a <code>error: cannot find symbol</code> error. </p> <...
Hey I forked the push notification plugin ( https://github.com/alexislg2/PushPlugin ) and added it to my project. The project won't compile with cordova build because I have a error: cannot find symbol error. The reason is that I use in the plugin Notification.setCategory() method which is Android SDK 21. How to force ...
android|cordova|phonegap-pushplugin|cordova-cli
1
2015-02-15T15:50:07.210Z
2,015
2
15
6
2,812
1
559
50
4
0
false
false
true
false
false
false
low
28,527,923
Clear Android Context at sign out
<p>I am using Context in order to store user information, so that when she starts the app it will automatically retrieve the username from the context like this:</p> <pre><code>final SharedPreferences prefs = getGcmPreferences(context); String userId = prefs.getString(PROPERTY_USER_ID, ""); </code></pre> <p>I want to...
I am using Context in order to store user information, so that when she starts the app it will automatically retrieve the username from the context like this: [CODE] I want to avoid retrieving this data when the user has clicked on SIGN OUT. How can I delete this context, or how can I manage this situation otherwise?
java|android|sharedpreferences
1
2015-02-15T15:52:33.163Z
2,015
2
15
6
299
1
318
33
3
1
true
false
false
false
false
false
low
28,527,927
Android development, open a stored file in editor
<p>Is it possible to access a file which is stored in the internal storage of my android applications so I can open it with a text editor? This would be very helpful to investigate what the app stores and find bugs in the files / app.</p> <p>The only information I found on this topic is to root the device. But my hope...
Is it possible to access a file which is stored in the internal storage of my android applications so I can open it with a text editor? This would be very helpful to investigate what the app stores and find bugs in the files / app. The only information I found on this topic is to root the device. But my hope is, that I...
android
0
2015-02-15T15:53:07.860Z
2,015
2
15
6
23
0
424
49
1
0
false
true
false
false
false
false
zero
28,527,930
Android Device Total Internal Storage
<p>I'm trying to find out the total storage space a device has. I've tried:</p> <pre><code>StatFs statFs = new StatFs(Environment.getRootDirectory().getAbsolutePath()); statFs.getTotalBytes(); statFs.getBlockCountLong() * statFs.getBlockSizeLong(); </code></pre> <p>and both methods return the same number, which is <...
I'm trying to find out the total storage space a device has. I've tried: [CODE] and both methods return the same number, which is ~2GB , when I know that my device has 16GB total storage space (accessible and inaccessible). How can I get the real storage size? Not only available or free space, every last scrap of a byt...
android
1
2015-02-15T15:53:42.867Z
2,015
2
15
6
627
1
335
37
1
1
true
false
false
false
false
false
low
28,528,009
Start new Intent from RecyclerViewAdapter
<p>I have <strong>RecyclerViewAdapter</strong> :</p> <pre><code>public class RecycleViewAdapter extends RecyclerView.Adapter&lt;RecycleViewAdapter.MyViewHolder&gt; { private List&lt;Cards&gt; items; private int itemLayout; Context context; public RecycleViewAdapter(List&lt;Cards&gt; items, int it...
I have RecyclerViewAdapter : [CODE] and I need to start new Intent ( OnCardsSelected.class ) , but I cant add this line to my method onClick : [CODE] I don't understand whats I do wrong, I just need to start Intent and put some information to this intent, I read some manuals but didn't understand theirs explanation so ...
android|android-intent|android-recyclerview
8
2015-02-15T16:03:09.117Z
2,015
2
16
6
28,041
7
349
41
3
2
true
false
true
true
false
false
medium
28,528,025
Converting string to math expression in android?
<p>I have searched how to convert string "4+5" to math expression and i only found that i should use <a href="http://docs.oracle.com/javase/7/docs/api/javax/script/ScriptEngine.html" rel="nofollow noreferrer"><code>ScriptEngine</code></a> but when i import the library in android studio it doesn't seem to work. Can you ...
I have searched how to convert string "4+5" to math expression and i only found that i should use ScriptEngine but when i import the library in android studio it doesn't seem to work. Can you suggest any other ideas which would be good way how to convert string to math expression? I used fro example this question and t...
java|android|math
1
2015-02-15T16:05:12.587Z
2,015
2
16
6
2,124
0
345
48
3
1
true
true
false
false
false
false
low
28,528,085
Use AsyncTaskLoader and CursorAdapter for network tasks?
<p>I just digged into the <a href="http://developer.android.com/guide/topics/ui/layout/listview.html#Loader" rel="nofollow">Loader API</a> and using <code>CursorLoader</code> and <code>AsyncTaskLoader</code> to populate and manage <code>ListViews</code>. My data comes from an JSON API endpoint, so I am using Retrofit t...
I just digged into the Loader API and using CursorLoader and AsyncTaskLoader to populate and manage ListViews . My data comes from an JSON API endpoint, so I am using Retrofit to perform network tasks, currently using AsyncTask . Does it make sense to reimplement this in AsyncTaskLoader and using a SimpleCursorAdapter ...
java|android|android-asynctask|android-cursoradapter|android-loadermanager
0
2015-02-15T16:10:33.647Z
2,015
2
16
6
566
2
601
56
5
0
false
false
false
false
false
false
zero
28,528,121
remove white background in dialogfragment
<p>Here's how I called my DialogFragment:</p> <pre><code>DialogSelectAccount myDiag=new DialogSelectAccount(); myDiag.show(ft,"Diag" ); </code></pre> <p>Here's how (partially) my DialogFragment is created: </p> <pre><code>public class DialogSelectAccount extends DialogFragment { public DialogSelectAccount() { }...
Here's how I called my DialogFragment: [CODE] Here's how (partially) my DialogFragment is created: [CODE] and here's the xml for my DialogSelectAccount [CODE] the problem is there's always an innoying white background displayed, as shown below. How do I remove it?
android|android-layout|android-fragments|android-dialogfragment|android-dialog
9
2015-02-15T16:12:53.580Z
2,015
2
16
6
13,154
5
264
41
5
3
true
false
true
true
false
false
medium
28,528,129
Cannot be resolved or is not a field for SUPPORTED_ABIS,FLAVOR & VERSION_CODES.LOLLIPOP
<p>I get the error <strong>Cannot be resolved or is not a field</strong> for following codings </p> <pre><code> Build.SUPPORTED_ABIS Build.FLAVOR Build.VERSION_CODES.LOLLIPOP </code></pre> <ul> <li>I have upgraded the latest SDK upto Lolipop </li> <li>I have tried restarting the Eclipse </li> <li>I have tried Clea...
I get the error Cannot be resolved or is not a field for following codings [CODE] I have upgraded the latest SDK upto Lolipop I have tried restarting the Eclipse I have tried Cleaning and Building the project. I have even tried restarting the system. But nothing works.
android|eclipse|adt|android-5.0-lollipop
2
2015-02-15T16:13:39.227Z
2,015
2
16
6
4,986
1
269
87
4
1
true
false
true
false
false
false
low
28,528,131
Search remote database Android app
<p>I want to create an Android app to be a search engine that can</p> <ul> <li>search my remote database from server like MAMP, </li> <li>list the search results and </li> <li>select one of the results to view details. </li> </ul> <p>I have already set up the database. </p> <p>Search.java - the launch page that show...
I want to create an Android app to be a search engine that can search my remote database from server like MAMP, list the search results and select one of the results to view details. I have already set up the database. Search.java - the launch page that shows only a search bar, allows user to search: [CODE] Search.php:...
java|android|json|android-activity|android-search
0
2015-02-15T16:13:55.783Z
2,015
2
16
6
1,140
1
667
34
5
3
true
false
false
false
false
false
zero
28,528,158
Get values spinner in listView(android)
<p>I apologize for my English. I thought a few days how to make a spinner in the ListView, and I was able to do it. But now I do not know how to take data from the spinner. I ask please tell me how to take the data from each spinner in ListView</p> <p><strong>activity_main.xml</strong></p> <pre><code>&lt;RelativeLayo...
I apologize for my English. I thought a few days how to make a spinner in the ListView, and I was able to do it. But now I do not know how to take data from the spinner. I ask please tell me how to take the data from each spinner in ListView activity_main.xml [CODE] loyout_list_item.xml [CODE] MainActivity [CODE] ListD...
android|listview|baseadapter
2
2015-02-15T16:16:42.917Z
2,015
2
16
6
2,670
2
351
39
3
5
true
false
true
false
false
false
low
28,528,203
How to open camera with a portrait orientation?
<p>My whole android camera app is in portrait mode, so when I open the camera I need it to automatically open in portrait mode. When I open the camera now the preview is sideways. How do I set the camera preview to open in portrait mode so the preview will look right? </p>
My whole android camera app is in portrait mode, so when I open the camera I need it to automatically open in portrait mode. When I open the camera now the preview is sideways. How do I set the camera preview to open in portrait mode so the preview will look right?
java|android|android-camera|orientation
0
2015-02-15T16:21:47.720Z
2,015
2
16
6
1,654
2
265
47
4
0
false
false
false
false
false
false
zero
28,528,222
JAR file, server generator
<p>Is it possible, to generate JAR file with custom package name via server? What technology? I have access for php/rubby server with direct admin. It's VPS but I don't want to install anything additional.</p> <p>I like to make service where people can make jar library from my java code with custom package name and do...
Is it possible, to generate JAR file with custom package name via server? What technology? I have access for php/rubby server with direct admin. It's VPS but I don't want to install anything additional. I like to make service where people can make jar library from my java code with custom package name and download it. ...
java|php|android|server
0
2015-02-15T16:23:33.937Z
2,015
2
16
6
37
0
417
26
4
0
false
true
false
false
false
false
zero
28,528,224
Delete not working for a listview
<p>I'm trying to delete a row in the database using this code, but it doesn't work</p> <pre><code>public void deleteAccount(long ID) { database.delete(Database.TABLE_BAG_TAG, Database.BAGTAG_ID + "=" + ID, null); } </code></pre> <p>here is the code for the button's delete </p> <pre><code>Button dlt = ...
I'm trying to delete a row in the database using this code, but it doesn't work [CODE] here is the code for the button's delete [CODE] here the table creation [CODE]
android
1
2015-02-15T16:23:36.413Z
2,015
2
16
6
49
1
165
33
1
3
true
false
false
false
false
false
low
28,528,257
SharedPreference not saving any data into my device
<p>So, i was trying to save some small data such as username of the user (remember me feature) and sharedpreference doesnt seems to save any data into my android device. i wonder why, and there's nothing wrong with my code...</p> <pre><code>final Button btnLogin = (Button) findViewById(R.id.btn_Login); btnLogi...
So, i was trying to save some small data such as username of the user (remember me feature) and sharedpreference doesnt seems to save any data into my android device. i wonder why, and there's nothing wrong with my code... [CODE]
java|android|sharedpreferences
1
2015-02-15T16:26:45.323Z
2,015
2
16
6
81
1
229
51
3
1
true
false
false
false
false
false
low
28,528,271
Action bar Icon isnt working in API 21
<p>i used to use the action bar icon but when i do someting on it on API 21 nothing is display no icons i mean only the 3 dot not the icon i want whereas i the api 14 it's working :</p> <p>menu :</p> <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/a...
i used to use the action bar icon but when i do someting on it on API 21 nothing is display no icons i mean only the 3 dot not the icon i want whereas i the api 14 it's working : menu : [CODE] activity [CODE]
android
0
2015-02-15T16:27:54.173Z
2,015
2
16
6
47
1
208
38
1
2
true
false
false
false
false
false
zero
28,528,328
Android Studio: using Android Modules without duplicating code
<p>I need to implement two applications <code>AppA</code> and <code>AppB</code> that use the same Android Library <code>LibC</code>.</p> <p>Using Android Studio, my desire is to have three projects: <code>LibC</code>, <code>AppA</code>, and <code>AppB</code>, with <code>AppA</code> and <code>AppB</code> referencing <c...
I need to implement two applications AppA and AppB that use the same Android Library LibC . Using Android Studio, my desire is to have three projects: LibC , AppA , and AppB , with AppA and AppB referencing LibC . I cannot find a way to obtain this. So far I have implemented AppA . While writing AppA I created a module...
android|android-studio|intellij-idea
6
2015-02-15T16:34:04.533Z
2,015
2
16
6
2,384
2
1,129
62
3
1
true
false
false
false
false
false
medium
28,528,377
How to overlay activity content when using SearchView?
<p>After I tap the Search icon, I want the SearchView widget to expand, and cover up the content below it. Inbox masks the current content by overlaying an opaque gray color above it. How do I do the same thing? I am using the <code>SearchView</code> widget.</p> <p><img src="https://i.stack.imgur.com/9nIhN.png" alt="e...
After I tap the Search icon, I want the SearchView widget to expand, and cover up the content below it. Inbox masks the current content by overlaying an opaque gray color above it. How do I do the same thing? I am using the SearchView widget.
android|android-layout|searchview
2
2015-02-15T16:38:44.607Z
2,015
2
16
6
1,387
1
242
54
3
0
false
false
false
false
false
false
low
28,528,394
Android Mobile Application Connection to a Web Host Database
<p>I'm currently creating a mobile application for a website wherein I have to connect to a database uploaded on the web host. I have few questions on how I should start. I have knowledge in Android Eclipse but none in PHP/Web development.</p> <p>Scenario:</p> <p>The website is already created. It works smoothly and ...
I'm currently creating a mobile application for a website wherein I have to connect to a database uploaded on the web host. I have few questions on how I should start. I have knowledge in Android Eclipse but none in PHP/Web development. Scenario: The website is already created. It works smoothly and everything now. (It...
php|android|mysql|eclipse|sqlite
1
2015-02-15T16:40:51.243Z
2,015
2
16
6
3,042
1
2,013
60
5
0
false
false
true
false
false
false
low
28,528,413
Why custom spinner has different style than default?
<p>I have created custom Spinner (called CustomSpinner) using android.widget.Spinner as parent. My CustomSpinner has just only overriden constructors.</p> <p><strong>Issue:</strong> The default Spinner dropdown view has black color, but CustomSpinner dropdown view has white color in the same activity.</p> <p><strong>...
I have created custom Spinner (called CustomSpinner) using android.widget.Spinner as parent. My CustomSpinner has just only overriden constructors. Issue: The default Spinner dropdown view has black color, but CustomSpinner dropdown view has white color in the same activity. What should I add to my CustomSpinner to fol...
android
1
2015-02-15T16:42:52.100Z
2,015
2
16
6
424
1
549
52
1
5
true
false
false
false
false
false
low
28,528,415
Picture is in the wrong orientation
<p>I want to draw an image to an imageview just for testing out things, but the problem is that the image gets drawn in landscape, even though it is a portrait picture. Does anybody know how I can "force" it to be drawn in portrait mode?</p> <pre><code> imageView = (ImageView) findViewById(R.id.imageView); Fi...
I want to draw an image to an imageview just for testing out things, but the problem is that the image gets drawn in landscape, even though it is a portrait picture. Does anybody know how I can "force" it to be drawn in portrait mode? [CODE] I tried to flip the image, but when I try to save the current bitmap into the ...
android
0
2015-02-15T16:42:57.817Z
2,015
2
16
6
280
2
437
35
1
1
true
false
false
false
false
false
zero
28,528,437
android app launch instruction slideshow
<p>Many apps when I launch them for the first time, take me through a slide show. I want to do the same in my app. I have no idea how it's done and how to go about it. Is there a library that does this? What are some ways I can do this? From my question you can see I have no clue how to even start going about it; but y...
Many apps when I launch them for the first time, take me through a slide show. I want to do the same in my app. I have no idea how it's done and how to go about it. Is there a library that does this? What are some ways I can do this? From my question you can see I have no clue how to even start going about it; but you ...
android|android-layout|slideshow|launch
1
2015-02-15T16:44:48.167Z
2,015
2
16
6
710
3
384
40
4
0
false
false
false
false
false
false
low
28,528,463
Expandable List View ignoring margin settings
<p>I'm using the following layout files, which show the margins in place in the preview window.</p> <p>EDIT: For the Java, I used the code here: <a href="http://www.vogella.com/tutorials/AndroidListView/article.html#expandablelistview" rel="nofollow noreferrer">http://www.vogella.com/tutorials/AndroidListView/article....
I'm using the following layout files, which show the margins in place in the preview window. EDIT: For the Java, I used the code here: http://www.vogella.com/tutorials/AndroidListView/article.html#expandablelistview MainActivity layout: [CODE] Group layout: [CODE] List items layout: [CODE] However, as you can see from ...
android|android-layout
1
2015-02-15T16:47:50.023Z
2,015
2
16
6
417
0
407
45
2
3
true
true
false
false
false
false
low
28,528,502
MPAndroidChart PieChart position of x-values
<p>Is it possible to change the <code>xValues</code> of a <code>MPAndroidChart</code> <code>PieChart</code>?` It looks like that by default:</p> <p><img src="https://i.stack.imgur.com/B71DQ.png" alt="enter image description here"></p> <p>But i want it to look like that:</p> <p><img src="https://i.stack.imgur.com/X9p...
Is it possible to change the xValues of a MPAndroidChart PieChart ?` It looks like that by default: But i want it to look like that: So how can i change the position of the xValues ?
android|mpandroidchart
2
2015-02-15T16:51:33.873Z
2,015
2
16
6
908
1
182
44
2
0
false
false
false
false
false
false
low
28,528,516
Calculate Network Speed from TrafficStats Android
<p>i am able to show my <strong>Bandwidth Usage</strong> in textviews via TrafficStats but i want to show <strong>network Speed</strong> per second. how do i achieve that? below is my code </p> <pre><code>public class MainActivity extends Activity { private H...
i am able to show my Bandwidth Usage in textviews via TrafficStats but i want to show network Speed per second. how do i achieve that? below is my code [CODE]
android
1
2015-02-15T16:52:43.620Z
2,015
2
16
6
886
0
158
49
1
1
true
true
false
false
false
false
low
28,528,657
Create android menu via set on click listener
<p>I want create list menu simple : About , Contact us And more ( about 30-40 button )</p> <p>After click on this buttons , i want start new activity</p> <p>I want this code in use class and out of mainactivity</p> <p>My xml code : <a href="http://i.stack.imgur.com/3moSl.png" rel="nofollow">http://i.stack.imgur.com/...
I want create list menu simple : About , Contact us And more ( about 30-40 button ) After click on this buttons , i want start new activity I want this code in use class and out of mainactivity My xml code : http://i.stack.imgur.com/3moSl.png clcAbout , clcContact and clcFB my buttons create by linearlayout Thx
android|onclick|onclicklistener
-1
2015-02-15T17:07:20.003Z
2,015
2
17
6
42
2
312
45
3
0
false
false
false
false
false
true
negative
28,528,692
Android postDelayed does not delay
<p>I have the Problem that my Android app does not delay a second (or 10 seconds), if I use the <code>postDelayed</code> method..</p> <p>Basically I would like my program to wait one second after I clicked the button, then update the text on my <code>textview</code> <code>(&quot;READY&quot;)</code>, wait another 2 seco...
I have the Problem that my Android app does not delay a second (or 10 seconds), if I use the postDelayed method.. Basically I would like my program to wait one second after I clicked the button, then update the text on my textview (&quot;READY&quot;) , wait another 2 seconds, then update the textview again (&quot;SET&q...
android
1
2015-02-15T17:09:52.930Z
2,015
2
17
6
3,015
2
1,379
34
1
4
true
false
true
false
false
false
low
28,528,718
How do you make a pattern lockscreen in android studio?
<p>I was just wondering if anyone could help me with this problem. I am trying to make a pattern lockscreen for my app in android studio, but I can't find the code anywhere and I can't find any video tutorials telling me how to make one. I am new to android studio and I am trying to make a simple app that just stores t...
I was just wondering if anyone could help me with this problem. I am trying to make a pattern lockscreen for my app in android studio, but I can't find the code anywhere and I can't find any video tutorials telling me how to make one. I am new to android studio and I am trying to make a simple app that just stores the ...
android|lockscreen
0
2015-02-15T17:12:36.987Z
2,015
2
17
6
4,527
1
483
55
2
0
false
false
true
false
false
false
zero
28,528,794
How to display my inputted data after clicking "submit" button?
<p>i'm really sorry if im asking too dumb question, im really not a pro in programming, but im trying hard. So here is my problem, i created these 2 layouts. </p> <pre><code> &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_p...
i'm really sorry if im asking too dumb question, im really not a pro in programming, but im trying hard. So here is my problem, i created these 2 layouts. [CODE] and here is the other one: [CODE] So my problem is, in the first layout, i want to be able to after i click next, i should be able to move to the next layout....
java|android|eclipse|android-layout
0
2015-02-15T17:18:09.457Z
2,015
2
17
6
243
1
1,321
63
4
2
true
false
false
false
false
false
zero
28,528,802
GCM Push Notification only works with Debug apk
<p>I have gotten reports that my app does not send or receive notifications from users. When I run the app from Android Studio and send a notification to one of my devices that also has a debug version of the apk, I noticed it works fine. Both devices can receive and send notifications as expected. However when I try t...
I have gotten reports that my app does not send or receive notifications from users. When I run the app from Android Studio and send a notification to one of my devices that also has a debug version of the apk, I noticed it works fine. Both devices can receive and send notifications as expected. However when I try to r...
android|google-cloud-messaging
1
2015-02-15T17:19:07.173Z
2,015
2
17
6
3,712
1
709
47
2
0
false
false
true
false
false
false
low
28,528,810
Android draw route on openstreetmap
<p>I am looking for a way to draw a route path on <code>openstreetmap</code> in my android app.<br> I only have the start and end points, however do not want just a straight line. Any ideas on how I could do this?</p>
I am looking for a way to draw a route path on openstreetmap in my android app. I only have the start and end points, however do not want just a straight line. Any ideas on how I could do this?
android|openstreetmap
4
2015-02-15T17:19:51.893Z
2,015
2
17
6
2,685
2
193
35
2
0
false
false
true
false
false
false
low
28,528,964
Images not showing in browser on Android
<p>I am currently developing a website, which - of course - also needs to be responsive. Everything is working correctly on iOS as well as Android, except the fact that he isn't showing three particular images in a slideshow on Android <em>(tested on the Samsung S5, S3, Galaxy Tab 3 / Lollipop, Jelly Bean / Default bro...
I am currently developing a website, which - of course - also needs to be responsive. Everything is working correctly on iOS as well as Android, except the fact that he isn't showing three particular images in a slideshow on Android (tested on the Samsung S5, S3, Galaxy Tab 3 / Lollipop, Jelly Bean / Default browser, C...
android|css|image
0
2015-02-15T17:34:55.477Z
2,015
2
17
6
1,480
1
920
40
3
2
true
false
false
false
false
false
zero
28,529,004
viewPager with tab in android
<p>hi i have a fragmentAdapter:</p> <pre><code>public class TitleAdapter extends FragmentPagerAdapter { private final String titles[] = new String[] { "Home", "Eventi"}; private final Fragment frags[] = new Fragment[titles.length]; Context context; public TitleAdapter(FragmentManager fm) { sup...
hi i have a fragmentAdapter: [CODE] in each fragment (Home and Eventi) i have a list fragment. What i see in the logcat is that all the fragments are loaded when the activity starts. What i'd like to do is to load one fragment each time . how to do that??
android|tabs|fragmentpageradapter
0
2015-02-15T17:39:14.243Z
2,015
2
17
6
202
1
255
29
3
1
true
false
false
false
false
false
zero
28,529,058
How to Pre-populate An Android Database Backed by ContentProvider
<p>I am loving the flexibility offered by ContentProvider, obviously ContentProvider is the favored route to go for an Android database, however, how does one efficiently populate the resulting database?</p> <p>For instance, let's say I am creating an RSS reader with links to 100 feeds. The feeds themselves should be ...
I am loving the flexibility offered by ContentProvider, obviously ContentProvider is the favored route to go for an Android database, however, how does one efficiently populate the resulting database? For instance, let's say I am creating an RSS reader with links to 100 feeds. The feeds themselves should be in the data...
android|sql|database|insert|records
0
2015-02-15T17:44:53.807Z
2,015
2
17
6
170
1
738
65
5
0
false
false
false
false
false
false
zero
28,529,121
Is there any option to grab to more Views without ViewGroups?
<p>In Android you can select one view with "id", but is there any option to select more views (like "group" in CSS)?</p> <p>For example, I want to select the <strong>View</strong> <em>and</em> the <strong>TextView</strong>, without using an extra LayoutView. Is there any <code>Group-Tag</code>? or is there any other o...
In Android you can select one view with "id", but is there any option to select more views (like "group" in CSS)? For example, I want to select the View and the TextView , without using an extra LayoutView. Is there any Group-Tag ? or is there any other option to use the id more than once? [CODE]
android|xml|viewgroup
0
2015-02-15T17:50:16.443Z
2,015
2
17
6
76
2
297
61
3
1
true
false
false
false
false
false
zero
28,529,223
Enabling Android A2DP SINK and RFCOMM simultaneous traffic (Lollipop)
<p><strong>Background:</strong></p> <p>I’m looking to enable A2DP audio streaming SINK support on my Nexus 4 &amp; 5 devices (running Lollipop) . I also need concurrent SPP/RFCOMM bidirectional traffic for my application command and control. I’ll be sending serial traffic to a microcontroller via a Bluetooth module (s...
Background: I’m looking to enable A2DP audio streaming SINK support on my Nexus 4 & 5 devices (running Lollipop) . I also need concurrent SPP/RFCOMM bidirectional traffic for my application command and control. I’ll be sending serial traffic to a microcontroller via a Bluetooth module (such as the BlueGiga WT32i or ) w...
bluetooth|audio-streaming|android-bluetooth|spp|a2dp
2
2015-02-15T17:59:59.973Z
2,015
2
17
6
1,302
1
616
69
5
0
false
false
false
false
false
false
low
28,529,226
Customizing Support Action Bar / Android
<p>I recently started Android programming, all is good and dandy, but I've came across a problem that I couldn't find an answer to, and I really diged hard for 4 days so far.</p> <p>My app uses support action bar, and to be specific "<strong>android.support.v7.app.ActionBarActivity</strong>". Long story short, I could...
I recently started Android programming, all is good and dandy, but I've came across a problem that I couldn't find an answer to, and I really diged hard for 4 days so far. My app uses support action bar, and to be specific " android.support.v7.app.ActionBarActivity ". Long story short, I couldn't handle most of the stu...
android|android-actionbar
0
2015-02-15T18:00:05.347Z
2,015
2
18
6
1,883
2
970
40
2
0
false
false
false
false
false
false
zero
28,529,231
error on Android.os.NetworkOnMainThreadException
<p>I'm very beginner in Android , I tried to learn how to send data from the mobile to the web server using php but I stuck on this problem android.os.networkonmainthreadexception, need help :|there is on Main.java</p> <pre><code>public class PengaduanKeluhan extends Activity { dbData db; private Button btnKirim; But...
I'm very beginner in Android , I tried to learn how to send data from the mobile to the web server using php but I stuck on this problem android.os.networkonmainthreadexception, need help :|there is on Main.java [CODE] and this CustomHttpClient.java [CODE]
java|android|android-asynctask
0
2015-02-15T18:00:24.287Z
2,015
2
18
6
14
0
256
48
3
2
true
true
false
false
false
false
zero
28,529,241
Input Type as Custom Soft keyboard
<p>Is it possible to set the input type of a <code>TextView</code> to that of a custom IME? I created an IME called "SimpleIME", for example I want to do something like below.</p> <pre><code>android:inputtype="SimpleIME" </code></pre>
Is it possible to set the input type of a TextView to that of a custom IME? I created an IME called "SimpleIME", for example I want to do something like below. [CODE]
android|android-softkeyboard|ime
0
2015-02-15T18:01:32.660Z
2,015
2
18
6
98
1
166
34
3
1
true
false
false
false
false
false
zero
28,529,256
How to open a new activity when a button is clicked?
<p>I am making an android app and I want it so that when someone clicks a button in the main menu activity, they are taken to the corresponding activity. At the moment my code is:</p> <ol> <li><p>button in menu xml:</p> <pre><code>&lt;Button android:layout_width="wrap_content" android:layout_height="wrap_content" and...
I am making an android app and I want it so that when someone clicks a button in the main menu activity, they are taken to the corresponding activity. At the moment my code is: button in menu xml: [CODE] the menu java: [CODE] when I click the button nothing happens. Can someone explain what I need to do?
java|android|android-activity
0
2015-02-15T18:02:36.590Z
2,015
2
18
6
43
1
305
52
3
2
true
false
false
false
false
false
zero
28,529,292
java.lang.IllegalStateException:Make sure the content of your adapter is not modified from a background thread, but only from the UI thread
<pre><code> java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in...
[CODE] I am getting above exception sometimes while scrolling through the dynamic listview and then clicking on item.I researched a lot but unable to find the exact reason that why i am getting this error sometimes and how it can be resolved? [CODE]
android|listview|android-listview|adapter|illegalstateexception
0
2015-02-15T18:05:02.927Z
2,015
2
18
6
2,210
2
249
139
5
2
true
false
false
false
false
false
zero
28,529,294
add item in to Listview Android?
<p>I am trying to add an item to ListView: correct?</p> <pre><code>public class Main extends Activity { ArrayAdapter &lt;String&gt; listAdapter ; ListView list; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ...
I am trying to add an item to ListView: correct? [CODE]
android|listview|android-listview
-1
2015-02-15T18:05:04.433Z
2,015
2
18
6
62
1
55
32
3
1
true
false
false
false
false
true
negative
28,529,327
In a project that depends on a library, how can I override a class definition from that library?
<p>I have two app projects, A and B, based on a library project C.</p> <p>All the java code is contained by library project C. Projects A and B only differ in their AndroidManifests, varying their functionality through setting different flag variables.</p> <p>To give a simplified example, A gives access to a class <c...
I have two app projects, A and B, based on a library project C. All the java code is contained by library project C. Projects A and B only differ in their AndroidManifests, varying their functionality through setting different flag variables. To give a simplified example, A gives access to a class ImportExport , and it...
android|android-studio
0
2015-02-15T18:08:15.720Z
2,015
2
18
6
53
0
733
96
2
0
false
true
false
false
false
false
zero
28,529,380
How to enable sample based profiling of Android on Eclipse?
<p>I have Eclipse Juno with ADT plugin installed.</p> <p>When I try to profile my Android game in DDMS perspective, I see that there is no option to do sample based profiling.</p> <p>My profiling results are skewed toward methods that have more number of calls and hence aren't giving me true CPU time hogging methods....
I have Eclipse Juno with ADT plugin installed. When I try to profile my Android game in DDMS perspective, I see that there is no option to do sample based profiling. My profiling results are skewed toward methods that have more number of calls and hence aren't giving me true CPU time hogging methods. I even updated my ...
android|eclipse|adt
1
2015-02-15T18:13:34.820Z
2,015
2
18
6
90
1
499
59
3
0
false
false
false
false
false
false
low