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,700,409
How can I create an alert Dialog window with a seek bar?
<p>I have the following layout :</p> <pre><code>&lt;SeekBar android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/seekBar" android:max="100" android:progress="20" android:layout_gravity="center_horizontal" android:progressDrawable="@android:color/white" ...
I have the following layout : [CODE] this declared outside the Alert dialog [CODE] and this is the alert dialog which happens when I click a button (edited) [CODE] I am sure that I'm missing something because it doesn't work. How can I fix it ? I'm using android-studio. The error that I'm getting now is : [CODE] and th...
java|android|android-studio
0
2015-02-24T15:56:59.317Z
2,015
2
15
1
492
2
391
56
3
4
true
false
false
false
false
false
zero
28,700,512
Cant populate list view with data from sqlite database
<p>I am attempting to learn Android development. And as a learning project I am creating a 'To Do' application. </p> <p>I am trying to populate the list with data from my table and this is what I have so far:</p> <p>ListCursorAdapter.java</p> <pre><code> package com.ryansmurphy.listado; import android.content.Co...
I am attempting to learn Android development. And as a learning project I am creating a 'To Do' application. I am trying to populate the list with data from my table and this is what I have so far: ListCursorAdapter.java [CODE] I am getting two error here: On extends cursor . I get the error Cannot resolve symbol . On ...
java|android|xml|sqlite|listview
1
2015-02-24T16:01:32.173Z
2,015
2
16
1
679
1
1,054
54
5
5
true
false
false
false
false
false
low
28,700,520
VoiceInteractionService API21 startSession error
<p>i'm tring to write a hotWord application with the latest API21 and with VoiceInteractionService, AlwaysOnHotwordDetector and VoiceInteractionSession.</p> <p>i've created an activity that call to </p> <p><strong>startService</strong>(new Intent(MainActivity.this, MainInteractionService.class));</p> <p>MainInteract...
i'm tring to write a hotWord application with the latest API21 and with VoiceInteractionService, AlwaysOnHotwordDetector and VoiceInteractionSession. i've created an activity that call to startService (new Intent(MainActivity.this, MainInteractionService.class)); MainInteractionService: [CODE] ** when onStartCommand is...
android|android-5.0-lollipop|voice-recognition
1
2015-02-24T16:01:51.943Z
2,015
2
16
1
1,050
1
560
48
3
2
true
false
false
false
false
false
low
28,700,525
Android gradle build: Adding artifacts to Maven local repository from output folders
<p>I'm using Android-Studio to build a project that have a sub module (AAR).</p> <p>In my build I'm creating both DEBUG and RELEASE flavors of my APK / AAR.</p> <p>I used the <a href="https://github.com/dcendents/android-maven-plugin" rel="nofollow">android-maven-plugin</a> to install my APK and AAR to my local repos...
I'm using Android-Studio to build a project that have a sub module (AAR). In my build I'm creating both DEBUG and RELEASE flavors of my APK / AAR. I used the android-maven-plugin to install my APK and AAR to my local repository. After simple integration I found that my .m2 contains both APK and AAR (including POM.xml f...
android-studio|android-gradle-plugin|android-maven-plugin
1
2015-02-24T16:02:01.497Z
2,015
2
16
1
700
1
789
84
3
0
false
false
false
false
false
false
low
28,700,534
JNI - Async task crashing
<p>I'm trying to do the following :</p> <ul> <li><p>Run Java app on Android</p></li> <li><p>Call native C++ code from that Java app</p></li> <li><p>Create and run a native thread from that natice code</p></li> <li><p>return immediatly while the thread keeps running</p></li> <li><p>Call a java method from native code o...
I'm trying to do the following : Run Java app on Android Call native C++ code from that Java app Create and run a native thread from that natice code return immediatly while the thread keeps running Call a java method from native code once the thread is finished Here is my code : [CODE] My problem is that when i call e...
java|android|c++|multithreading|java-native-interface
0
2015-02-24T16:02:17.623Z
2,015
2
16
1
564
0
801
25
5
2
true
true
false
false
false
false
zero
28,700,537
ListView inside SwipeRefreshLayout can't handle onItemLongClick event
<p>My problem is very simple. I have a ListView inside of SwipeRefreshLayout and I want to handle the onItemLongClick event of the ListView. But it won't recognize it being long clicked, i wonder what is wrong?</p> <p>This is my XML:</p> <pre><code> &lt;android.support.v4.widget.SwipeRefreshLayout xmlns:android="...
My problem is very simple. I have a ListView inside of SwipeRefreshLayout and I want to handle the onItemLongClick event of the ListView. But it won't recognize it being long clicked, i wonder what is wrong? This is my XML: [CODE] and here's my java file [CODE]
android|listview|swiperefreshlayout
0
2015-02-24T16:02:27.290Z
2,015
2
16
1
865
1
261
69
3
2
true
false
false
false
false
false
zero
28,700,572
Migrating Library and Apps from Eclipse to Android Studio
<p>In my team, we developed a library in Eclipse with ADT plugin.<br> We have a "big" demo application and several "mini" applications using the library to test different aspects.</p> <p>Since the official IDE for Android is now Android Studio and ADT plugin seems to be abandoned (<a href="https://developer.android.co...
In my team, we developed a library in Eclipse with ADT plugin. We have a "big" demo application and several "mini" applications using the library to test different aspects. Since the official IDE for Android is now Android Studio and ADT plugin seems to be abandoned ( last update on October '14 ), we are studying the m...
android|eclipse|android-studio|adt
1
2015-02-24T16:04:03.520Z
2,015
2
16
1
580
1
1,856
57
4
0
false
false
false
false
false
false
low
28,700,576
go back error: android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views
<p>Hi I was viewing the details then when i hit the bottom right back button, to go back to the listview, I have the error "android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views." but I don't know how to solve this:</p> <pre><code>public cl...
Hi I was viewing the details then when i hit the bottom right back button, to go back to the listview, I have the error "android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views." but I don't know how to solve this: [CODE] From logcat: [CODE] T...
android|user-interface|listview|error-handling|crash
1
2015-02-24T16:04:22.820Z
2,015
2
16
1
1,192
1
330
147
5
2
true
false
false
false
false
false
low
28,700,593
How to import set of icons into Android Studio project
<p>I downloaded collection of icons from <a href="https://developer.android.com/design/downloads/index.html" rel="noreferrer">Android Developers center</a> Each icon in this collection is ordered in forlders according to its resolution: drawable-hdpi, drawable-mdpi, drawable-xhdpi, drawable-xxhdpi.</p> <p>Is there a w...
I downloaded collection of icons from Android Developers center Each icon in this collection is ordered in forlders according to its resolution: drawable-hdpi, drawable-mdpi, drawable-xhdpi, drawable-xxhdpi. Is there a way to import all the 4 icon's files in one action to Android Studio or I need to copy it one by one?...
android|android-studio|android-ui|android-icons
69
2015-02-24T16:05:11.507Z
2,015
2
16
1
168,363
8
650
54
4
0
false
false
true
true
true
false
high
28,700,597
Why IF condition is not fulfilled on android
<p>I just want to know why the compiler allow to continue the program normally in the first condition:</p> <pre><code>public void ButtonOnClickDirectoryList(View v){ try { if (!spnOptionSelectedDepartment.equals(null) &amp;&amp; !spnOptionSelectedCities.equals(null)) { if (!spnOptionSelectedTyp...
I just want to know why the compiler allow to continue the program normally in the first condition: [CODE] the spnOptionSelectedDepartment and spnOptionSelectedTypes are Strings and are defined at the begining of the class like this: [CODE] so when I press the button, it call this method and this are the values that I ...
java|android|if-statement|android-studio
-5
2015-02-24T16:05:19.497Z
2,015
2
16
1
74
1
663
44
4
4
true
false
false
false
false
true
negative
28,700,612
Could it happen that XmlSerializer returns a String which is too long to be a string in Java?
<p>I am currently building an android application and decided to use the Xml implementation rather than a database to store data. I'm loading the xml file into a list at application startup and when i want to save it back i format it to xml using XmlSerializer which then outputs to a StringWriter. I then call .toString...
I am currently building an android application and decided to use the Xml implementation rather than a database to store data. I'm loading the xml file into a list at application startup and when i want to save it back i format it to xml using XmlSerializer which then outputs to a StringWriter. I then call .toString() ...
java|android|xml|tostring|xmlserializer
2
2015-02-24T16:06:00.173Z
2,015
2
16
1
397
1
658
93
5
1
true
false
false
false
false
false
low
28,700,620
How do I get the correct output for the object e1?
<p>I am writing an app that reads a file from the URL when the user input the url address, where the file is located. It will read the data values and then inputs the data values to each class object. When I write the setText command (outside of the while loop), it gets an error when I type e1.getName(). It asks me to ...
I am writing an app that reads a file from the URL when the user input the url address, where the file is located. It will read the data values and then inputs the data values to each class object. When I write the setText command (outside of the while loop), it gets an error when I type e1.getName(). It asks me to ini...
java|android|eclipse
0
2015-02-24T16:06:18.127Z
2,015
2
16
1
67
2
781
50
3
2
true
false
false
false
false
false
zero
28,700,630
Android 4.4.x screen rotation
<p>I'm using Android 4.4.2, and my need is to revert the screen in landscape mode.</p> <p>On the previous versions of Android I was able to do this simply setting </p> <p>ro.sf.hwrotation=180</p> <p>in build.prop file, under /system.</p> <p>Searching with google I've discovered that with Android 4.4.x this option i...
I'm using Android 4.4.2, and my need is to revert the screen in landscape mode. On the previous versions of Android I was able to do this simply setting ro.sf.hwrotation=180 in build.prop file, under /system. Searching with google I've discovered that with Android 4.4.x this option is no more availalbe (in fact it does...
android|screen|hardware|screen-orientation
1
2015-02-24T16:06:55.897Z
2,015
2
16
1
588
0
392
29
4
0
false
true
false
false
false
false
low
28,700,709
Context, storing internal memory and reading from it
<p>Hello I have a problem with the context in the line <code>productLookup(productId, Contexto)</code>, I can't get it right.</p> <p>What I'm trying to do is when I get the data from the DB via web, with the objects I also want to pass the ID of the objects to the <code>productLookup</code> function to download the as...
Hello I have a problem with the context in the line productLookup(productId, Contexto) , I can't get it right. What I'm trying to do is when I get the data from the DB via web, with the objects I also want to pass the ID of the objects to the productLookup function to download the associated jpg and save it in the inte...
android|storage|internal|android-context
0
2015-02-24T16:10:24.603Z
2,015
2
16
1
409
2
824
52
4
5
true
false
false
false
false
false
zero
28,700,844
Iterating over Hashmap causes crash
<p>I've noticed my app has been crashing a lot lately and after debugging I found out that when I iterated over hashmaps some crashed randomly. </p> <p>I iterated over them like that:</p> <pre><code>for (Map.Entry&lt;Point, Particle&gt; entry : spawned.entrySet()) { entry.getValue().Draw(canvas); ...
I've noticed my app has been crashing a lot lately and after debugging I found out that when I iterated over hashmaps some crashed randomly. I iterated over them like that: [CODE] which caused: after that I tried to iterate over them with iterator like that: [CODE] but that caused: here is inside Particle class if anyo...
java|android
1
2015-02-24T16:16:31.080Z
2,015
2
16
1
494
1
557
35
2
4
true
false
false
false
false
false
low
28,700,847
Does stock Nexus 4 natively rotate to reverse portrait?
<p>Not sure if this is the right stack exchange for this question, but seeing how I'm testing an app that I'm developing I thought it would be fitting I ask here. Simple question, does Nexus 4 stock support reverse portrait rotation changes? I can't seem to get anything to rotate to reverse portrait on my Nexus 4 devic...
Not sure if this is the right stack exchange for this question, but seeing how I'm testing an app that I'm developing I thought it would be fitting I ask here. Simple question, does Nexus 4 stock support reverse portrait rotation changes? I can't seem to get anything to rotate to reverse portrait on my Nexus 4 device, ...
android|rotation|screen-orientation|nexus-4
0
2015-02-24T16:16:49.527Z
2,015
2
16
1
68
0
487
55
4
0
false
true
false
false
false
false
zero
28,700,918
Android Spring Rest Template using MockRestServiceServer with Build tool 1.1
<p>I using Spring Android Rest Template to perform HTTP request. I was testing like so :</p> <pre><code>package com.mnubo.platform.android.sdk.internal.user.services.impl; import com.mnubo.platform.android.sdk.models.users.User; import org.junit.Before; import org.junit.Test; import org.springframework.test.web.clie...
I using Spring Android Rest Template to perform HTTP request. I was testing like so : [CODE] All of this was working correctly using the RoboelectricTestRunner. But, yesterday Android Studio updated and asked me to update the build tool version to 1.1.0. (com.android.tools.build:gradle:1.1.0). This version now include ...
android|mockito|powermock|spring-android
1
2015-02-24T16:20:45.570Z
2,015
2
16
1
1,670
1
1,659
76
4
2
true
false
false
false
false
false
low
28,700,938
EditText padding attribute does not work the same for API 19 and 21
<p>I'm attaching a screen capture with both 19 and 21 emulators running: <img src="https://i.stack.imgur.com/ByBrI.png" alt="enter image description here"></p> <p>The one on the left is Android 19 and the one on the right is 21. As you can see, the API 19 based emulator does not respect the padding attribute. Same thi...
I'm attaching a screen capture with both 19 and 21 emulators running: The one on the left is Android 19 and the one on the right is 21. As you can see, the API 19 based emulator does not respect the padding attribute. Same thing happens on a 4.4.x device, so it's not only an emulator problem. This is the .xml code I'm ...
android|android-layout
3
2015-02-24T16:21:39.520Z
2,015
2
16
1
3,013
2
420
67
2
1
true
false
true
false
false
false
low
28,701,004
How to pause the service when the home button is pressed and resume the service when the program is resume?
<pre><code>public class BackgroundMusicService extends Service { int currentPos; /** indicates how to behave if the service is killed */ int mStartMode; /** interface for clients that bind */ IBinder mBinder; /** indicates whether onRebind should be used */ boolean mAllowRebind; MediaPlay...
[CODE] This is the service that play the background music, how to pause the service when the home button is pressed and resume the service when the program is resume? and here is my MainActivity: [CODE] I think need to use onPause() and onResume() function, but how to use it? and it should be use in service class or th...
android|android-service
1
2015-02-24T16:24:46.733Z
2,015
2
16
1
5,337
1
631
107
2
2
true
false
true
false
false
false
low
28,701,075
Trying to get a simple Camera application to work
<p>I'm a beginner to Android app development. I'm getting the hang of it, and I've read a lot of tutorials, but I still can't get the camera to work. Basically what I want to do is take a picture, store the image internally within the app and then display that image to (later) be able to draw on it. I'm not worried abo...
I'm a beginner to Android app development. I'm getting the hang of it, and I've read a lot of tutorials, but I still can't get the camera to work. Basically what I want to do is take a picture, store the image internally within the app and then display that image to (later) be able to draw on it. I'm not worried about ...
java|android|camera|onclicklistener
1
2015-02-24T16:28:22.030Z
2,015
2
16
1
130
1
436
49
4
1
true
false
false
false
false
false
low
28,701,086
Android Bluetooth -- how to "Undiscover" devices
<p>So I'm fairly new to Android and am creating a bluetooth-enabled app. Following this very helpful doc:</p> <p><a href="http://developer.android.com/guide/topics/connectivity/bluetooth.html" rel="nofollow">http://developer.android.com/guide/topics/connectivity/bluetooth.html</a></p> <p>In it they provide a Broadca...
So I'm fairly new to Android and am creating a bluetooth-enabled app. Following this very helpful doc: http://developer.android.com/guide/topics/connectivity/bluetooth.html In it they provide a BroadcastReceiver for ACTION_FOUND which reports any discovered devices, shown below. It works well. [CODE] My question is, ho...
android|bluetooth
4
2015-02-24T16:28:53.117Z
2,015
2
16
1
374
1
1,289
48
2
3
true
false
false
false
false
false
low
28,701,090
ActionItem appears on orientation change
<p>I have 3 fragments: <code>A, B, C</code> and <code>ActionItem</code> called <code>Filters</code>. These <code>Filters</code> should be visible only when Fragment <code>A</code> is visible respectively. </p> <p>So I hide <code>Filters</code> when <code>B</code> or <code>C</code> is substituted over <code>A</code> an...
I have 3 fragments: A, B, C and ActionItem called Filters . These Filters should be visible only when Fragment A is visible respectively. So I hide Filters when B or C is substituted over A and restore them back when A is replaced back. That works fine unless I change orientation of screen. Filters become visible after...
android|android-fragments|android-actionbar
0
2015-02-24T16:28:59.190Z
2,015
2
16
1
19
1
813
40
3
2
true
false
false
false
false
false
zero
28,701,102
How to stream data from MediaCodec to AudioTrack with Xamarin for Android
<p>I'm trying to decode a mp3 file and stream it to AudioTrack. It all works fine but causes a lot of GC on the Java side. I've made sure to not allocate memory in my play/stream loop and blame ByteBuffer.Get(byte[], int, int) binding of allocating a temp Java array. Anyone can confirm and/or show a better way of feedi...
I'm trying to decode a mp3 file and stream it to AudioTrack. It all works fine but causes a lot of GC on the Java side. I've made sure to not allocate memory in my play/stream loop and blame ByteBuffer.Get(byte[], int, int) binding of allocating a temp Java array. Anyone can confirm and/or show a better way of feeding ...
android|xamarin|xamarin.android|android-mediacodec|audiotrack
5
2015-02-24T16:29:27.450Z
2,015
2
16
1
1,769
0
1,872
73
5
4
true
true
false
false
false
false
low
28,701,123
Display ProgressDialog while opening new Fragment and AsyncTask
<p>I have a Navigation Drawer that opens several Fragments, one of them executes a background task using AsyncTask to load some data, showing in the meantime a ProgressDialog.</p> <p>The problem here is the ProgressDialog is "almost" not shown. I say "almost" because it is shown but for a tiny amount of time.</p> <p>...
I have a Navigation Drawer that opens several Fragments, one of them executes a background task using AsyncTask to load some data, showing in the meantime a ProgressDialog. The problem here is the ProgressDialog is "almost" not shown. I say "almost" because it is shown but for a tiny amount of time. What I want to achi...
android|android-fragments|android-asynctask|navigation-drawer|progressdialog
1
2015-02-24T16:30:11.387Z
2,015
2
16
1
693
1
783
63
5
2
true
false
false
false
false
false
low
28,701,128
Unfortunately app has stopped when I use onClickListener for a button
<p>I have no idea why my code isn't working. I am following a tutorial on how to add a listener to buttons but my app doesn't even run anymore. I'm sure it's a silly mistake but I've been stuck for over 5 hours!. Here is my code:</p> <p><strong>MainActivity.java</strong></p> <pre><code>package com.example.simplebutto...
I have no idea why my code isn't working. I am following a tutorial on how to add a listener to buttons but my app doesn't even run anymore. I'm sure it's a silly mistake but I've been stuck for over 5 hours!. Here is my code: MainActivity.java [CODE] fragment_main.xml [CODE] activity_main.xml [CODE] This is the logcat...
java|android|android-layout|android-activity|android-fragments
1
2015-02-24T16:30:25.043Z
2,015
2
16
1
1,012
3
375
69
5
3
true
false
false
false
false
false
low
28,701,185
Nullpointerexception when I try to update in android
<p>I have a problem when I try to update a table. But the problem is not for sentence sql, is calling the method for update. This is the code of button that make the action</p> <pre><code>public void onClick(View v) { switch (v.getId()) { case R.id.btnsave: String id="Act1"; da...
I have a problem when I try to update a table. But the problem is not for sentence sql, is calling the method for update. This is the code of button that make the action [CODE] the code method Actualizar [CODE] This is the log 02-24 15:07:00.474: E/AndroidRuntime(858): FATAL EXCEPTION: main 02-24 15:07:00.474: E/Androi...
android|sqlite|methods|nullpointerexception
0
2015-02-24T16:33:58.267Z
2,015
2
16
1
68
1
1,628
52
4
3
true
false
false
false
false
false
zero
28,701,205
Is it possible to download more styles of widgets in android studio or how do you design your own?
<p>I have tried looking for information on this but cant seem to find any? Could someone point me in the right direction, thanks.</p>
I have tried looking for information on this but cant seem to find any? Could someone point me in the right direction, thanks.
java|android|android-studio|widget
0
2015-02-24T16:34:38.473Z
2,015
2
16
1
910
1
126
98
4
0
false
false
false
false
false
false
zero
28,701,237
Error on importing an Eclipse project into Android Studio
<p>I'm trying to import a project done in Eclipse to Android Studio. While importing, I'm getting the following error:</p> <pre><code>"There are unrecoverable errors which must be corrected first" Library reference ../../../../workspace/android-support-v7-appcompat could not be found </code></pre> <p>I tried copying...
I'm trying to import a project done in Eclipse to Android Studio. While importing, I'm getting the following error: [CODE] I tried copying appcompat folder to the root directory of project, still same error. How can I resolve it? Please refer the screenshot for more details
android|eclipse|android-studio|gradle|android-appcompat
5
2015-02-24T16:36:15.020Z
2,015
2
16
1
7,453
2
274
57
5
1
true
false
true
false
false
false
low
28,701,257
I have a Recyclerview and a list with 5000 items but I only want to load 100 items at a time
<p>I've implemented a <code>Recyclerview</code> in my test app. Currently I pull around 5000 items of data into a model and load my view with this list. Everything is great, and performs nicely but I don't particularly want to load all 5000 items. I would prefer to load 100 items and once the user hits the bottom, load...
I've implemented a Recyclerview in my test app. Currently I pull around 5000 items of data into a model and load my view with this list. Everything is great, and performs nicely but I don't particularly want to load all 5000 items. I would prefer to load 100 items and once the user hits the bottom, load the next 100 an...
android|listview|android-recyclerview
13
2015-02-24T16:37:08.733Z
2,015
2
16
1
15,633
1
734
92
3
1
true
false
true
true
true
false
medium
28,701,439
Android - Display sim and phone contacts
<p>I trying to get sim and phone contacts. I succeed with phone contacts (phone contacts &amp; synced contacts) but with sim contacts I fail... I tried a lot of URI but no one work so I thought that you guys can help me.</p> <pre><code> private void Click (object sender , EventArgs eventArgs) { Intent intent = ...
I trying to get sim and phone contacts. I succeed with phone contacts (phone contacts & synced contacts) but with sim contacts I fail... I tried a lot of URI but no one work so I thought that you guys can help me. [CODE] Thank you in advance!
c#|android|contacts|android-contacts
0
2015-02-24T16:44:55.683Z
2,015
2
16
1
361
2
242
40
4
1
true
false
false
false
false
false
zero
28,701,474
How can I animate the single part of paint in the ondraw canvas?
<p>I am making a custom view application. And I want to animate the single part of paint(Tap to start)in the onDraw canvas, Here is my code, I adjusted the source code from the internet and put it in my application. </p> <pre><code>import android.content.Context; import android.graphics.Bitmap; import android.graphics...
I am making a custom view application. And I want to animate the single part of paint(Tap to start)in the onDraw canvas, Here is my code, I adjusted the source code from the internet and put it in my application. [CODE]
java|android|eclipse|canvas|android-custom-view
0
2015-02-24T16:45:56.297Z
2,015
2
16
1
461
0
219
64
5
1
true
true
false
false
false
false
zero
28,701,598
How to convert URL string into java.io.File in Android
<p>I am overriding the <code>android.webkit.WebViewClient</code> method <code>shouldInterceptRequest(WebView view, String url)</code> in a custom class. In some cases, the <code>url</code> parameter points to an encrypted local file, in the form <code>file:///path/to/file.extension</code>. I need to convert the String ...
I am overriding the android.webkit.WebViewClient method shouldInterceptRequest(WebView view, String url) in a custom class. In some cases, the url parameter points to an encrypted local file, in the form file:///path/to/file.extension . I need to convert the String url into a java.io.File to decrypt it. How do I reliab...
java|android|java.nio.file
1
2015-02-24T16:51:37.350Z
2,015
2
16
1
10,601
2
396
54
3
0
false
false
true
false
false
false
low
28,701,628
Flush google analytics events manually with Google Play Services
<p>Is there any way to manually flush all events in Google analytics queue, when Google Play Services is installed?</p> <p>There is one method in the Android GA documentation: <code>GoogleAnalytics.getInstance(getActivity().getBaseContext()).dispatchLocalHits();</code></p> <p>But this method doesn't work with Google Pl...
Is there any way to manually flush all events in Google analytics queue, when Google Play Services is installed? There is one method in the Android GA documentation: GoogleAnalytics.getInstance(getActivity().getBaseContext()).dispatchLocalHits(); But this method doesn't work with Google Play Services - the docs say : p...
android|google-analytics|google-analytics-api|google-analytics-firebase
2
2015-02-24T16:53:01.580Z
2,015
2
16
1
928
1
732
64
4
0
false
false
false
false
false
false
low
28,701,650
App crashes in release mode only, how to configure proguard?
<p>My app crashes in release mode only, due to proguard (confirmed, I disabled it and worked)... I see somebody had the same problem and tried some solutions like this one: <a href="https://stackoverflow.com/questions/27747739/android-app-crashed-when-starting-after-signing-in-release-mode">Android: app crashed when st...
My app crashes in release mode only, due to proguard (confirmed, I disabled it and worked)... I see somebody had the same problem and tried some solutions like this one: Android: app crashed when starting after signing in release mode . I first tried keeping the MainActivity, then tried keeping the whole package with [...
android|crash|proguard|release-mode
4
2015-02-24T16:54:08.813Z
2,015
2
16
1
1,202
1
572
60
4
1
true
false
false
false
false
false
low
28,701,728
Dynamic set language string source
<p>Is it possible in Android dynamic set language string source? </p> <p>Example: I have in app 2 language resources, now I need force one layout file and here I want use for example English resources but system and UI etc must stay in default language. I want only set language resources for one xml file not for whole...
Is it possible in Android dynamic set language string source? Example: I have in app 2 language resources, now I need force one layout file and here I want use for example English resources but system and UI etc must stay in default language. I want only set language resources for one xml file not for whole system. Is ...
android|xml|lang
1
2015-02-24T16:57:23.127Z
2,015
2
16
1
883
2
351
34
3
0
false
false
false
false
false
false
low
28,701,745
What is the difference between activity_main.xml or fragment_main.xml?
<p>I would just like to know the pros and cons of adding buttons to the activity_main.xml and fragment_main.xml for android app development. I tried looking this up but couldn't find anything useful. I know that you can add buttons to both files but which one is the correct file to add a button to? Can anyone give me a...
I would just like to know the pros and cons of adding buttons to the activity_main.xml and fragment_main.xml for android app development. I tried looking this up but couldn't find anything useful. I know that you can add buttons to both files but which one is the correct file to add a button to? Can anyone give me an i...
java|android|android-layout|android-activity|android-fragments
0
2015-02-24T16:58:11.943Z
2,015
2
16
1
97
1
335
70
5
0
false
false
false
false
false
false
zero
28,701,815
admob banner overlaping portion of app
<pre><code>layout = new RelativeLayout(this); surface = new SurfaceView(this); ads = new AdView(this); ads.setAdSize(AdSize.SMART_BANNER); ads.setAdUnitId("admob banner ID"); Ads.loadAds(ads); layout.addView(surface); RelativeLayout.LayoutParams adParams = ...
[CODE] here s the problem. I tried above code to integrate banner but it is covering portion od my app and hides some buttons. what can be the problem here? need help. please note that i am not using XML layout.
android|admob|banner-ads
0
2015-02-24T17:01:51.793Z
2,015
2
17
1
63
1
211
38
3
1
true
false
false
false
false
false
zero
28,701,943
Build error after migrating from Crashlytics SDK to Fabric
<p>Recently, we've upgraded our organization's Crashlytics account to Fabric, and I'm trying to replace the old Crashlytics SDK with the new Fabric SDK in our existing apps. I've followed <a href="https://dev.twitter.com/twitter-kit/android/integrate" rel="noreferrer">the migration instructions</a>, and it's been large...
Recently, we've upgraded our organization's Crashlytics account to Fabric, and I'm trying to replace the old Crashlytics SDK with the new Fabric SDK in our existing apps. I've followed the migration instructions , and it's been largely painless, except that I'm now receiving a build error when I try to compile. The lin...
android|crashlytics|twitter-fabric
9
2015-02-24T17:07:50.550Z
2,015
2
17
1
2,538
2
1,083
58
3
3
true
false
false
false
false
false
medium
28,702,037
Android, multiples alarms with time picker
<p>I was trying to use the time picker to 5 alarms with meals of the day, the truth investigate much about it and what I found is a little confusing. I did it in a way that is not very "efficient" but having no experience in this matter I could not think otherwise. Now the problem is that if I make the 5 alarms but whe...
I was trying to use the time picker to 5 alarms with meals of the day, the truth investigate much about it and what I found is a little confusing. I did it in a way that is not very "efficient" but having no experience in this matter I could not think otherwise. Now the problem is that if I make the 5 alarms but when I...
android|alarmmanager|timepicker|android-alarms|android-timepicker
2
2015-02-24T17:12:09.060Z
2,015
2
17
1
295
0
1,051
42
5
2
true
true
false
false
false
false
low
28,702,041
SugarORM + Android Studio + Unit Testing
<p>I am trying to create a basic Book CRUD which works fine in the application code but I am trying to write unit tests for that entity.</p> <p>During non-testing normal use, the Android manifest Application tag defines an application called "com.orm.SugarApp". This always gets called upon start up and it becomes the ...
I am trying to create a basic Book CRUD which works fine in the application code but I am trying to write unit tests for that entity. During non-testing normal use, the Android manifest Application tag defines an application called "com.orm.SugarApp". This always gets called upon start up and it becomes the Application...
unit-testing|android-studio|gradle|sugarorm
0
2015-02-24T17:12:32.517Z
2,015
2
17
1
280
1
732
40
4
0
false
false
false
false
false
false
zero
28,702,042
Dialog Show() Hide() and isShowing() methods functionality
<p>I'm working on Dialogs in android and I found something strange in the implementation of Show and Hide methods.</p> <p>Show updates the variable mIsShowing properly but Hide code doesn't have the statement to set mIsShowing to false!</p> <p>I don't want to use Dismiss Dialog as in its OnStop I'm destroying the con...
I'm working on Dialogs in android and I found something strange in the implementation of Show and Hide methods. Show updates the variable mIsShowing properly but Hide code doesn't have the statement to set mIsShowing to false! I don't want to use Dismiss Dialog as in its OnStop I'm destroying the contents with in the d...
android|dialog
2
2015-02-24T17:12:33.437Z
2,015
2
17
1
350
1
352
58
2
0
false
false
false
false
false
false
low
28,702,072
android getWritableDatabase
<pre><code>package ru.phonebook; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.provider.SyncStateContract; import android.util.Log; import java.util.Ar...
[CODE] This is my class for communicate with database, and after in main programm i add new rows: [CODE] In my logCat i view error: "02-24 19:12:41.440 17415-17415/ru.phonebook W/System.err﹕ Invalid int: "" " i am debuging method "AddSubcriber", and this error crush after this line SQLiteDatabase db = this.getWritableD...
java|android
0
2015-02-24T17:14:21.063Z
2,015
2
17
1
341
0
342
27
2
2
true
true
false
false
false
false
zero
28,702,080
Android Studio crashed now can't push to GitHub
<p>This morning AS crashed on statup. I rebooted and it seemed to startup fine. However, when I try to commit and push to GitHub via AS I get an Internal IDE error. I've tracked down a range of errors but am unsure what they mean and how to fix them:</p> <ul> <li><strong>AS IDE error</strong>: collectInfoToPush | Coul...
This morning AS crashed on statup. I rebooted and it seemed to startup fine. However, when I try to commit and push to GitHub via AS I get an Internal IDE error. I've tracked down a range of errors but am unsure what they mean and how to fix them: AS IDE error : collectInfoToPush | Couldn't collect commits to push....f...
android|git|github|android-studio
1
2015-02-24T17:14:59.780Z
2,015
2
17
1
797
1
827
47
4
0
false
false
false
false
false
false
low
28,702,097
Audio files Android
<p>I wanted to know if there is a way to process an audio file via Android. in practice I would upload the audio file and change the bpm for example how does the software audacity. thank you</p>
I wanted to know if there is a way to process an audio file via Android. in practice I would upload the audio file and change the bpm for example how does the software audacity. thank you
java|android|audio|frequency-analysis
0
2015-02-24T17:15:37.517Z
2,015
2
17
1
66
1
187
19
4
0
false
false
false
false
false
false
zero
28,702,101
button for settings on notifications in Android lollipop
<p>Does anyone know how to put the button for settings on notifications in Android lollipop? As shown in the picture (<a href="http://s12.postimg.org/a4zs2kost/photo_2015_02_24_18_12_26.jpg" rel="nofollow">http://s12.postimg.org/a4zs2kost/photo_2015_02_24_18_12_26.jpg</a>)</p> <p>Thanks</p>
Does anyone know how to put the button for settings on notifications in Android lollipop? As shown in the picture ( http://s12.postimg.org/a4zs2kost/photo_2015_02_24_18_12_26.jpg ) Thanks
android|notifications|android-5.0-lollipop
1
2015-02-24T17:15:46.860Z
2,015
2
17
1
379
1
187
56
3
0
false
false
false
false
false
false
low
28,702,157
Showing and hiding the action bar in fragments
<p>I have a project with one activity and several fragments. The fragments are replaced from the activity. The main menu fragment should not have action bar, but the action bar should persist on all other fragments. Also the default back button should work. I am using this code: <i>getActivity().getActionBar().hide();<...
I have a project with one activity and several fragments. The fragments are replaced from the activity. The main menu fragment should not have action bar, but the action bar should persist on all other fragments. Also the default back button should work. I am using this code: getActivity().getActionBar().hide(); to hid...
android|android-fragments
0
2015-02-24T17:18:19.240Z
2,015
2
17
1
1,285
1
678
46
2
2
true
false
false
false
false
false
zero
28,702,174
Change Spinner based on another Spinner Selection
<p>I have string array which contains all the country names and another string array with respective country codes. I am setting the country names string to spinner. When I select the item from spinner its respective country code should be set to the spinner. And that item also should change to Code. Similarly if I sel...
I have string array which contains all the country names and another string array with respective country codes. I am setting the country names string to spinner. When I select the item from spinner its respective country code should be set to the spinner. And that item also should change to Code. Similarly if I select...
android|android-spinner
2
2015-02-24T17:19:05.507Z
2,015
2
17
1
11,504
2
686
49
2
2
true
false
true
false
false
false
low
28,702,212
Exclude files from gradle transitive dependency
<p>It's all in the question i'm trying to exclude a file</p> <p>In this case le lib is <strong>commons-codec-1.8</strong>, the file is LICENSE which is already added in <strong>jackson-core-2.3.2</strong></p> <p>I found this method : </p> <pre><code>compile('com.cognitect:transit-java:0.8.269'){ exclude files: '...
It's all in the question i'm trying to exclude a file In this case le lib is commons-codec-1.8 , the file is LICENSE which is already added in jackson-core-2.3.2 I found this method : [CODE] But I don't know how to use it ? EDIT1: I get this kind of error when trying to execute my app [CODE] And this kind also : [CODE]...
java|android|android-studio|gradle|jackson
2
2015-02-24T17:21:46.097Z
2,015
2
17
1
359
0
393
47
5
3
true
true
false
false
false
false
low
28,702,224
Android how take full screen with more LinearLayout orientation horizontal
<p>i'm trying to do a school day and i use multiple linearLayout with days and hours. With the <code>layout_weight</code> i can set the space for every elements inside the single <code>LinearLayout</code>. But my problem is how can i set the <code>layout_weight</code>for the <code>LinearLayout</code> because they are s...
i'm trying to do a school day and i use multiple linearLayout with days and hours. With the layout_weight i can set the space for every elements inside the single LinearLayout . But my problem is how can i set the layout_weight for the LinearLayout because they are set with orientation horizontal and they don't take th...
android|android-linearlayout
2
2015-02-24T17:22:01.433Z
2,015
2
17
1
10,795
2
621
74
2
1
true
false
true
false
false
false
low
28,702,300
( Android ) Blank Black Screen on switching to new activity
<p>i am using eclipse and when i run my app , first activity works fine , but as soon as i click a button to start another activity , a blank black screen is all i get on emulator. Following is the logcat , appears to be a memory problem , dont know how to deal with it . I tried increasing internal memory to 4 GiB in ...
i am using eclipse and when i run my app , first activity works fine , but as soon as i click a button to start another activity , a blank black screen is all i get on emulator. Following is the logcat , appears to be a memory problem , dont know how to deal with it . I tried increasing internal memory to 4 GiB in the ...
android|eclipse|out-of-memory|android-logcat
0
2015-02-24T17:25:50.137Z
2,015
2
17
1
425
1
2,801
59
4
1
true
false
false
false
false
false
zero
28,702,392
Same layout XMLs rendering differently on device
<p>I'm a bit new to Android, so please bear with me. I have two layout XML files which are practically the same. However, on my test device, they look totally different. They are files for List elements, and I know they should look the same because I copied the first one to make the second one. Here's the first one:</p...
I'm a bit new to Android, so please bear with me. I have two layout XML files which are practically the same. However, on my test device, they look totally different. They are files for List elements, and I know they should look the same because I copied the first one to make the second one. Here's the first one: [CODE...
android|android-xml
0
2015-02-24T17:29:53.417Z
2,015
2
17
1
54
0
764
48
2
2
true
true
false
false
false
false
zero
28,702,403
How to store current locale date and time in SQLite
<p>..and later retrieve and show them as Strings?</p> <p>I'm asking the user some input and I want to store both the date (i.e., day, month and year) and the time (i.e., the hour of the day) this input was submitted. Each submission is then saved in my SQlite database, and later retrieved from a <code>RecyclerView</co...
..and later retrieve and show them as Strings? I'm asking the user some input and I want to store both the date (i.e., day, month and year) and the time (i.e., the hour of the day) this input was submitted. Each submission is then saved in my SQlite database, and later retrieved from a RecyclerView . I'm facing two pro...
android|sqlite|date|android-cursor
0
2015-02-24T17:30:17.190Z
2,015
2
17
1
845
1
2,013
51
4
2
true
false
false
false
false
false
zero
28,702,431
Application did not close cursor, despite getting closed
<p>I have an SQLite database in my Android Application. When I do one operation I always get a Finalizing a Cursor that has not been deactivated or closed. Here is the method:</p> <pre><code>public String getKey(){ net.sqlcipher.database.SQLiteDatabase db = this.getWritableDatabase(Login.authPass); String se...
I have an SQLite database in my Android Application. When I do one operation I always get a Finalizing a Cursor that has not been deactivated or closed. Here is the method: [CODE] It is really frustrating, because I am going to close the Cursor, it just throws an exception before it even gets there. Also I don't get ho...
android|sqlite|cursor
0
2015-02-24T17:31:26.690Z
2,015
2
17
1
1,762
1
2,070
56
3
1
true
false
false
false
false
false
zero
28,702,470
Without connecting my phone via usb, is it possible to install an app I made on Android Studio?
<p>I just bought a second hand phone and when I connected it to the computer it wasn't recognized (code 43). Since I really like the phone would it be possible for me to install apps I make on android studio another way than with an USB cable ? Like via wifi or something ?</p>
I just bought a second hand phone and when I connected it to the computer it wasn't recognized (code 43). Since I really like the phone would it be possible for me to install apps I make on android studio another way than with an USB cable ? Like via wifi or something ?
android|android-studio|usb
6
2015-02-24T17:33:17.100Z
2,015
2
17
1
5,261
3
270
95
3
0
false
false
true
false
false
false
medium
28,702,506
Java Split with delimiter with dynamic value
<p>I need to split my text into pieces and also keep the delimiter as well, I know I can use below code to do that as explained <a href="https://stackoverflow.com/questions/2206378/how-to-split-a-string-but-also-keep-the-delimiters">Here</a>:</p> <pre><code>Arrays.toString("a;b;c;d".split("((?&lt;=;)|(?=;))")) </code>...
I need to split my text into pieces and also keep the delimiter as well, I know I can use below code to do that as explained Here : [CODE] but what I'm stuck is that my text contains delimiter with a value inside it, my delimiter is @[x]@ where x is a value which can be any number . eg: @[1]@, @[44]@. What I want to ac...
java|android|regex|split
1
2015-02-24T17:35:02.333Z
2,015
2
17
1
352
1
435
44
4
3
true
false
false
false
false
false
low
28,702,628
Link of class 'Lorg/opencv/javacv/facerecognition/FdActivity;' failed
<p>I'm trying to build this code : <a href="https://github.com/ayuso2013/face-recognition" rel="nofollow">https://github.com/ayuso2013/face-recognition</a></p> <p>I have successfully install OpenCV libraries like "Open CV Library" "JavaCV-Bin"</p> <p>I can compile application successfully, but when I try to run it I ...
I'm trying to build this code : https://github.com/ayuso2013/face-recognition I have successfully install OpenCV libraries like "Open CV Library" "JavaCV-Bin" I can compile application successfully, but when I try to run it I get the errors below: [CODE] I can see this line [CODE] But I'm sure that the file FdActivity....
java|android|eclipse|opencv
0
2015-02-24T17:41:30.583Z
2,015
2
17
1
161
0
401
69
4
2
true
true
false
false
false
false
zero
28,702,645
Sending ArrayList<integer>() into byte[] format thru USB in Android
<p>My code uses a Modbus CRC16 protocol, which generates a <code>List&lt;Integer&gt;</code> with the hexadecimal values that must be written on the USB port.</p> <p><img src="https://i.stack.imgur.com/EyLyh.png" alt="enter image description here"></p> <p>I'm trying to convert this ArrayList containing Integer objects...
My code uses a Modbus CRC16 protocol, which generates a List<Integer> with the hexadecimal values that must be written on the USB port. I'm trying to convert this ArrayList containing Integer objects to a byte[] array so I can write it via USB. I tried to implement using IntBuffer but got no success. [CODE] Should I us...
java|android|arrays|usb
0
2015-02-24T17:42:40.483Z
2,015
2
17
1
1,030
2
366
67
4
1
true
false
false
false
false
false
zero
28,702,753
Tab Layout with Sliding Views
<p>I want to create an app that uses a tab layout with sliding views (something like this):</p> <p><img src="https://i.stack.imgur.com/miR0F.png" alt="Screenshot"></p> <p>Here's the issue: I searched all over the web for a guide that could explain how to do this kind of thing but all I tried didn't work for me. I re...
I want to create an app that uses a tab layout with sliding views (something like this): Here's the issue: I searched all over the web for a guide that could explain how to do this kind of thing but all I tried didn't work for me. I read somewhere that tabs layout is deprecated with Lollipop, so I tried to find an alte...
android|eclipse|tabs|views|sliding
0
2015-02-24T17:48:52.830Z
2,015
2
17
1
1,645
1
1,145
29
5
0
false
false
false
false
false
false
zero
28,702,856
Playing transport stream MediaPlayer android
<p>I have to try to play a .ts video using a MediaPlayer but it seems that is not capable.</p> <pre><code> @Override public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i, int i2) { Surface surface = new Surface(surfaceTexture); try { mMediaPlayer = new MediaPlayer(); mMediaPl...
I have to try to play a .ts video using a MediaPlayer but it seems that is not capable. [CODE] My tests are in devices over Android 4 but I have found these references URL1 , URL2 and if I play the .ts video in VLC, for example, there is no problem. I have tested the same code in two devices, one STB with android 4.0.4...
android|android-mediaplayer|transport-stream
0
2015-02-24T17:54:34.433Z
2,015
2
17
1
901
1
529
44
3
1
true
false
false
false
false
false
zero
28,702,944
Set customized vibration with incoming call in android
<p>How can we set different vibration pattens for different contacts with incoming call ? </p> <p>During my research and development I have refereed this :</p> <p>1) <a href="https://stackoverflow.com/questions/8800348/android-how-to-provide-customized-vibration-on-specific-incoming-calls">How to provide customized v...
How can we set different vibration pattens for different contacts with incoming call ? During my research and development I have refereed this : 1) How to provide customized vibration on specific incoming calls 2) How to change incoming call Vibration level when incoming call made? But I didnt get success with this, wh...
android|vibration|android-vibration|incoming-call
2
2015-02-24T17:59:05.957Z
2,015
2
17
1
2,118
1
672
54
4
0
false
false
false
false
false
false
low
28,703,033
Jquery does not work in hybrid android but works in web
<p>I try to make this work in my hybrid app however it does not want to function, anybody any idea why it does not work?</p> <pre><code>jQuery().ready(function () { $("#b4all_about").bind('click', function (e) { //alert(); $("#tbb4all_about").removeClass("b4DisplayNone").addClass("b4Di...
I try to make this work in my hybrid app however it does not want to function, anybody any idea why it does not work? [CODE] my MainActivity looks like: [CODE] The buttons as this: [CODE] And the hidden divs like this: [CODE] On thing might be an issues but I am not sure as its a web application but using normal jquery...
android|jquery|xamarin|hybrid
0
2015-02-24T18:03:52.463Z
2,015
2
18
1
882
2
1,494
55
4
6
true
false
false
false
false
false
zero
28,703,134
Sencha Touch Error...."has no method 'getId'"
<p>I am getting this error, in my browser console, after running "sencha app run native testing":</p> <pre><code>Uncaught TypeError: Object [object Object] has no method 'getId' </code></pre> <p>When I look at the code in my browser I see this: </p> <p><img src="https://i.stack.imgur.com/AHN6Z.png" alt="enter image ...
I am getting this error, in my browser console, after running "sencha app run native testing": [CODE] When I look at the code in my browser I see this: When I look at my own code for itemId of "foo3" I have this: Could anyone tell me what I am doing wrong? Sencha cmd 5.1.1.39 Sencha touch 2.4.1 Running with cordova 4.2...
android|extjs|sencha-touch|sencha-cmd
0
2015-02-24T18:09:37.333Z
2,015
2
18
1
135
1
333
45
4
1
true
false
false
false
false
false
zero
28,703,153
How can I tell if an Intent has been launched by parse
<p>If I overwrite ParsePushBroadcastReceiver i see that intent extras are passed to the intent, </p> <ul> <li>Which of this extras (if they do) refer to the fact that this intent has been created by parse?</li> <li>How can i pass/access this flag "launched by parse" through all the activities that will be opened star...
If I overwrite ParsePushBroadcastReceiver i see that intent extras are passed to the intent, Which of this extras (if they do) refer to the fact that this intent has been created by parse? How can i pass/access this flag "launched by parse" through all the activities that will be opened starting from this intent? Do th...
android|android-intent|parse-platform
0
2015-02-24T18:10:47.057Z
2,015
2
18
1
44
0
409
54
3
1
true
true
false
false
false
false
zero
28,703,210
How to stop logging HTTPGET request Urls in Android logcat?
<p>I am trying to develop an application. I removed all the <code>Log</code>s &amp; <code>System.out.prinln()</code> from my application.</p> <p>But, everytime I make a <code>HTTPGet</code> request, then logcat is displaying my request URL.</p> <p>How to stop this ? I dont want to expose these urls. This is how its p...
I am trying to develop an application. I removed all the Log s & System.out.prinln() from my application. But, everytime I make a HTTPGet request, then logcat is displaying my request URL. How to stop this ? I dont want to expose these urls. This is how its printing in the Logcat [CODE] This is my code for fetching dat...
android|httpclient|logcat
2
2015-02-24T18:13:48.763Z
2,015
2
18
1
337
0
350
59
3
2
true
true
false
false
false
false
low
28,703,218
Can not find module "sleep", with Leap motion
<p>I'm trying to connect my Android project with Leap motion controller and am using the procedure and source mentioned on <a href="https://stackoverflow.com/questions/24863925/how-to-connect-leap-motion-directly-to-android">this question</a> as reference.</p> <p>I'm very new to Node.js and am unable to get the JavaSc...
I'm trying to connect my Android project with Leap motion controller and am using the procedure and source mentioned on this question as reference. I'm very new to Node.js and am unable to get the JavaScript file to work with Node and am unable to resolve dependencies. I tried node update but that didn't work. I need t...
javascript|android|node.js|dependencies
0
2015-02-24T18:14:13.017Z
2,015
2
18
1
6,172
1
474
45
4
3
true
false
true
false
false
false
zero
28,703,293
Send Value From onPostExecute() to Activity is always NULL
<p>I created this class:</p> <pre><code>public class GetAddressPositionTask extends AsyncTask&lt;String, Integer, LatLng&gt; { //... } </code></pre> <p>It has the below function in it:</p> <pre><code>@Override public void onPostExecute(LatLng result) { Log.i("GEOCODE", result.toString()); ...
I created this class: [CODE] It has the below function in it: [CODE] I am trying to send data to the Activity called MapsActivity from the onPostExecute method. In MapsActivity I have before onCreate this: [CODE] My onCreate: [CODE] This is my onMapReady that created the pin with the position that I initialized and whe...
java|android|android-intent|android-asynctask
3
2015-02-24T18:18:37.973Z
2,015
2
18
1
577
1
857
58
4
6
true
false
false
false
false
false
low
28,703,304
Changing color of TabHost/TabWidget
<p>I'm having a really hard time changing the color of my TabWidget. I've looked at several posts and tried them out, but none of them worked for me. I'm trying to change the default (blue) color scene to green.</p> <p><a href="http://i.imgur.com/LNjapLs.png" rel="nofollow">Image of my app</a></p> <p>My xml code:</p>...
I'm having a really hard time changing the color of my TabWidget. I've looked at several posts and tried them out, but none of them worked for me. I'm trying to change the default (blue) color scene to green. Image of my app My xml code: [CODE]
java|android|colors|android-tabhost|tabwidget
0
2015-02-24T18:19:10.317Z
2,015
2
18
1
199
1
244
35
5
1
true
false
false
false
false
false
zero
28,703,306
How can I prevent the Nav Bar from leaving behind a black bar? (immersive mode)
<p>An app that uses immersive mode leaves a black bar at the bottom of the screen when the app is returned to after waiting a while (activity is destroyed).</p> <p>What is happening: (I have enabled the developer option: "Don't keep activities" to reproduce this).</p> <ol> <li><p>First time launch of the app. Immersi...
An app that uses immersive mode leaves a black bar at the bottom of the screen when the app is returned to after waiting a while (activity is destroyed). What is happening: (I have enabled the developer option: "Don't keep activities" to reproduce this). First time launch of the app. Immersive mode works as expected. S...
android|android-activity
7
2015-02-24T18:19:17.777Z
2,015
2
18
1
2,262
3
1,290
79
2
3
true
false
false
false
false
false
medium
28,703,339
build.gradle structure for the following requirement in android studio
<p>Requirement,</p> <ol> <li>I want to keep source code inside first project.</li> <li>I will have another second project where this project will not have source code but will depend on first project and generate apk of second project.</li> <li>I will have another third project where this project will not have sour...
Requirement, I want to keep source code inside first project. I will have another second project where this project will not have source code but will depend on first project and generate apk of second project. I will have another third project where this project will not have source code but will depend on first proje...
android-studio|android-gradle-plugin
0
2015-02-24T18:21:13.820Z
2,015
2
18
1
45
1
428
70
2
0
false
false
false
false
false
false
zero
28,703,418
Why both packages are needed in an Android project using google maps v2?
<p>For using google maps v2 api, i imported google_play_services_lib. everything is working fine. But i wanted to know why com.google.android.maps(inside Google APIs) and com.google.android.gms.maps(inside Android Private Libraries) both packages inside library are imported as dependency while com.google.android.maps i...
For using google maps v2 api, i imported google_play_services_lib. everything is working fine. But i wanted to know why com.google.android.maps(inside Google APIs) and com.google.android.gms.maps(inside Android Private Libraries) both packages inside library are imported as dependency while com.google.android.maps is f...
java|android|eclipse|google-maps-android-api-2
0
2015-02-24T18:25:41.567Z
2,015
2
18
1
26
0
401
72
4
0
false
true
false
false
false
false
zero
28,703,419
Trigger android ringer from Pebble watchFACE not watchAPP
<p>I have a watchface built for a medical app , it vibrates the watch for certain alarms based on data received from the server . I would like to be able to trigger phone ringer (for alarms) without a companion android app . Is there any possibility to get around with it ?</p>
I have a watchface built for a medical app , it vibrates the watch for certain alarms based on data received from the server . I would like to be able to trigger phone ringer (for alarms) without a companion android app . Is there any possibility to get around with it ?
android|pebble-watch|pebble-sdk|pebble-js
0
2015-02-24T18:25:41.953Z
2,015
2
18
1
48
1
270
57
4
0
false
false
false
false
false
false
zero
28,703,477
Android Ripple effect not displaying elevation
<p>My goal is to have a list item with a ripple effect on click, and an elevation. I know that in order to have elevation, currently it is required that you also have a non-transparent color for the background of the view which is making the elevation's shadow.</p> <p>This is the background I'm using for my list item:...
My goal is to have a list item with a ripple effect on click, and an elevation. I know that in order to have elevation, currently it is required that you also have a non-transparent color for the background of the view which is making the elevation's shadow. This is the background I'm using for my list item: [CODE] As ...
android
3
2015-02-24T18:28:41.443Z
2,015
2
18
1
673
2
810
46
1
1
true
false
false
false
false
false
low
28,703,484
Override default mobile device keyboard for text input area on website? (HTML/JS/jQuery)
<p>I have been given a task, which up to this point I think might be impossible. I am wondering if it is at all possible to override a default system keyboard for input in a text input area (on mobile devices).</p> <p>Assume the OS is Android. Is there a way for a mobile website to not show the default system keyboard...
I have been given a task, which up to this point I think might be impossible. I am wondering if it is at all possible to override a default system keyboard for input in a text input area (on mobile devices). Assume the OS is Android. Is there a way for a mobile website to not show the default system keyboard when click...
javascript|android|jquery|html|jquery-mobile
1
2015-02-24T18:29:11.967Z
2,015
2
18
1
1,411
1
1,490
88
5
0
false
false
false
false
false
false
low
28,703,487
Where and how to put a progressbar on a existing layout?
<p>i created an activity that includes an AsyncTask for fetching json from internet. I add a progressbar to the existing layout so users can't interact with EditText till up the data download is completed. WHERE to put the progressbar widget on existing layout? HOW to make users not to click on existing widgets (EditTe...
i created an activity that includes an AsyncTask for fetching json from internet. I add a progressbar to the existing layout so users can't interact with EditText till up the data download is completed. WHERE to put the progressbar widget on existing layout? HOW to make users not to click on existing widgets (EditText,...
android|xml|position|progress-bar|center
0
2015-02-24T18:29:16.737Z
2,015
2
18
1
1,552
2
858
56
5
1
true
false
false
false
false
false
zero
28,703,541
udacity sunshine- app crashes on mobile even after I connect to the internet using AsyncTask
<p>These are the logcats i am getting after I run the application on my mobile</p> <pre>02-24 23:40:03.153: E/AndroidRuntime(32501): FATAL EXCEPTION: main 02-24 23:40:03.153: E/AndroidRuntime(32501): Process: sunshine.com.example.himanshu.sunshine, PID: 32501 02-24 23:40:03.153: E/AndroidRuntime(32501): android.os.Net...
These are the logcats i am getting after I run the application on my mobile [CODE] This is my MainActivity.java file: [CODE] And this is my Android Manifest File: [CODE] The app crashes whenever I run it on my mobile. Please help me, and thanks if you find the solution I have created an AsyncTask to connect to the INTE...
java|android
0
2015-02-24T18:31:35.587Z
2,015
2
18
1
63
0
383
92
2
3
true
true
false
false
false
false
zero
28,703,552
Oauth2 for Native Mobile Apps and Backend API?
<p>I'd like to authenticate users on both a native mobile app and API backend via third-party services like facebook, google, etc. As I understand it oauth2 allows "clients" -- like native mobile apps and backend APIs -- to authenticate against third-parties following a request, authorization and access token dance.</p...
I'd like to authenticate users on both a native mobile app and API backend via third-party services like facebook, google, etc. As I understand it oauth2 allows "clients" -- like native mobile apps and backend APIs -- to authenticate against third-parties following a request, authorization and access token dance. But w...
android|ios|django|facebook|oauth-2.0
4
2015-02-24T18:32:19.910Z
2,015
2
18
1
380
0
556
46
5
0
false
true
false
false
false
false
low
28,703,659
Cannot deploy to AVD (I'm using Android Studio on Mac)
<p>When I click run, the AVD boots OK and everything loads, but there's no trace of my app on it; It just shows the android home screen, and my app is not in the applications list.</p> <p>And this is the message I get on my "app" log tab:</p> <pre><code>Waiting for device. /Volumes/iSpace/Radium/Library/Android/sdk/t...
When I click run, the AVD boots OK and everything loads, but there's no trace of my app on it; It just shows the android home screen, and my app is not in the applications list. And this is the message I get on my "app" log tab: [CODE] But my app deploys and runs ok on a real device connected via USB.
android|macos|deployment|avd
0
2015-02-24T18:39:12.577Z
2,015
2
18
1
64
1
302
54
4
1
true
false
false
false
false
false
zero
28,703,686
EditText with not-editable/not-cancellable suffix
<p>i created a layout for one of my activities in which users can insert a value in some EditText widget. I need that some of these EditText must have a suffix (like cm, mm and so on) that has to be not editable. After the user has inserted the value i will parse the content of these EditText avoiding the suffix so i w...
i created a layout for one of my activities in which users can insert a value in some EditText widget. I need that some of these EditText must have a suffix (like cm, mm and so on) that has to be not editable. After the user has inserted the value i will parse the content of these EditText avoiding the suffix so i will...
android|parsing|android-edittext|material-design|fixed
10
2015-02-24T18:40:47.183Z
2,015
2
18
1
12,879
7
602
49
5
0
false
false
true
true
true
false
medium
28,703,718
Is it Possible to scan for a client I.P. with a specific M.A.C. Address in Android?
<p>Currently, I am making an app which will scan the router and search for a client IP having the given MAC Address.</p> <p>Is there any way with which I can determine the list of connected clients on the network with their MAC Addresses respectively?</p>
Currently, I am making an app which will scan the router and search for a client IP having the given MAC Address. Is there any way with which I can determine the list of connected clients on the network with their MAC Addresses respectively?
android|mac-address
0
2015-02-24T18:42:22.723Z
2,015
2
18
1
28
0
241
83
2
0
false
true
false
false
false
false
zero
28,703,734
Error: type SugarRecord does not take parameters
<p>I'm getting this error in compile time after I cloned the repo and imported the library folder as a module in my AndroidStudio project (I need to make some changes to the library so I have to clone it)</p> <pre><code>public class UserBean extends SugarRecord&lt;UserBean&gt; implements Bean, Serializable { ... }...
I'm getting this error in compile time after I cloned the repo and imported the library folder as a module in my AndroidStudio project (I need to make some changes to the library so I have to clone it) [CODE] when I take a look at my SugarRecord I don't see any generic parameter neither [CODE] can anyone help?
android|sugarorm
1
2015-02-24T18:43:14.893Z
2,015
2
18
1
775
1
311
48
2
2
true
false
false
false
false
false
low
28,703,783
Is there any public API to test Volley API?
<p>I am new to Android and I am interested in looking into the Volley API for network requests. My question is how could I test my code? Is there a public service I could send requests to for my testing? JSON requests I mean.<br> My only intent is understanding the API not so much the actual data I get/use.</p>
I am new to Android and I am interested in looking into the Volley API for network requests. My question is how could I test my code? Is there a public service I could send requests to for my testing? JSON requests I mean. My only intent is understanding the API not so much the actual data I get/use.
android|json|eclipse|android-volley
1
2015-02-24T18:45:54.080Z
2,015
2
18
1
203
1
301
43
4
0
false
false
false
false
false
false
low
28,703,807
Android, Async, CallBack and UI
<p>I have one tough problem with combining this things in a whole. Example: I want to get user location and update UI with latitude and longitude values. Because I stick up to the MVC pattern, I've created a separate class for this task (e.g. LocationWorker) and implemented it, following this guide: <a href="http://dev...
I have one tough problem with combining this things in a whole. Example: I want to get user location and update UI with latitude and longitude values. Because I stick up to the MVC pattern, I've created a separate class for this task (e.g. LocationWorker) and implemented it, following this guide: http://developer.andro...
java|android|android-asynctask|callback
1
2015-02-24T18:47:29.780Z
2,015
2
18
1
1,028
5
1,091
31
4
0
false
false
false
false
false
false
low
28,703,843
Extract Image source from nested div and a tag in JSOUP
<pre><code> &lt;div class='ym-gbox adds-header'&gt; &lt;a href='javascript:(void);' &gt; &lt;a href="http://epaper.thedailystar.net/" target="_blank"&gt; &lt;img src="http://epaper.thedailystar.net/images/edailystar.png" alt="edailystar" style="float: left; width: 100px; margin-top: 15px;"&gt; ...
[CODE] This is the html portion. From here I want to extract the image source of image tag with source address src="http://epaper.thedailystar.net/images/edailystar.png" using jsoup in android. But I failed. If anyone give the answer I will be thankful to him. Here is my code [CODE]
android|jsoup
0
2015-02-24T18:49:26.157Z
2,015
2
18
1
1,449
2
283
55
2
2
true
false
false
false
false
false
zero
28,703,870
TYPE_LINEAR_ACCELERATION and TYPE_GRAVITY not working
<p>I'm working on a project where among other things, I'm trying to obtain the accelerometer data without the gravity components. However, I don't seem to be able to get updates from the virtual sensors: "linear acceleration" and "gravity". Here's the code:</p> <pre><code> public class SensorModule implements Senso...
I'm working on a project where among other things, I'm trying to obtain the accelerometer data without the gravity components. However, I don't seem to be able to get updates from the virtual sensors: "linear acceleration" and "gravity". Here's the code: [CODE] I register the listeners onResume() and unregister onPause...
android|android-sensors
0
2015-02-24T18:50:53.303Z
2,015
2
18
1
1,313
1
996
53
2
1
true
false
false
false
false
false
zero
28,703,929
Is there a tool to check supported devices before uploading to Google Play?
<p>When you upload you apk to Google Play, you get a list of devices that are supported or not.</p> <p>Is there a tool which would allow me to investigate which features will make specific devices incompatible other than disabling features one by one and uploading to check for changes in the <em>supported</em> list?</...
When you upload you apk to Google Play, you get a list of devices that are supported or not. Is there a tool which would allow me to investigate which features will make specific devices incompatible other than disabling features one by one and uploading to check for changes in the supported list?
android|google-play
7
2015-02-24T18:54:27.490Z
2,015
2
18
1
1,764
2
298
75
2
0
false
false
false
false
false
false
medium
28,704,024
Simple Qt Quick example isn't drawn in android emulator
<p>By default then creating new Qt Quick 1.3 project it creates stub with 3 buttons and menu. It works fine on my smartphone but in emulator (tried standard one and genymotion, armv7 and x86) it doesn't draw anything. Only white screen. But if I "touch" (click) there buttons are supposed to be it reacts with a pop up a...
By default then creating new Qt Quick 1.3 project it creates stub with 3 buttons and menu. It works fine on my smartphone but in emulator (tried standard one and genymotion, armv7 and x86) it doesn't draw anything. Only white screen. But if I "touch" (click) there buttons are supposed to be it reacts with a pop up as i...
android|c++|qt|android-emulator|qtquick2
2
2015-02-24T18:59:46.963Z
2,015
2
18
1
187
0
633
55
5
0
false
true
false
false
false
false
low
28,704,128
Android how can I set a TextView content inside a TableView
<p>I have a Table with some TextView inside. I click one of them for <code>startActivityForResult</code> and take in input the data and put it into a pressed <code>TextView</code>. The problem is that I have 60 <code>TextView</code> inside this Layout. How can I set the clicked <code>TextView</code> with the results th...
I have a Table with some TextView inside. I click one of them for startActivityForResult and take in input the data and put it into a pressed TextView . The problem is that I have 60 TextView inside this Layout. How can I set the clicked TextView with the results that I take with onActivityResult ? XML: [CODE] Activity...
android|textview
0
2015-02-24T19:06:27.760Z
2,015
2
19
1
77
2
343
59
2
2
true
false
false
false
false
false
zero
28,704,141
Efficient way of adding zeros to a String number?
<p>I would like to turn all values into the following number format, x.xxx. I am doing this fine by using a while loop and concatenating 0 to string values that do not have the correct length. However, I would like to know if there is a more efficient way of doing this. To be more clear of what I am trying to do, here ...
I would like to turn all values into the following number format, x.xxx. I am doing this fine by using a while loop and concatenating 0 to string values that do not have the correct length. However, I would like to know if there is a more efficient way of doing this. To be more clear of what I am trying to do, here are...
java|android|string-concatenation
0
2015-02-24T19:06:58.117Z
2,015
2
19
1
60
2
479
49
3
1
true
false
false
false
false
false
zero
28,704,185
Extract directory from a file path (Android Java)
<p>I want to extract the directory part of a file path in Android. I know I can use </p> <pre><code>File file=new File(path); String dir=file.getParent(); </code></pre> <p>But I am not sure if this may introduce unnecessary overhead.Is there a more straight way?</p>
I want to extract the directory part of a file path in Android. I know I can use [CODE] But I am not sure if this may introduce unnecessary overhead.Is there a more straight way?
android|path|directory
0
2015-02-24T19:09:57.460Z
2,015
2
19
1
354
1
178
49
3
1
true
false
false
false
false
false
zero
28,704,289
eclipse android pass a java value to php by using HTTP
<p>I want to pass the variable <code>q</code> from java to php. </p> <pre><code>String q = "select author from books where 1"; try{ HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost("http://www2.XXXX./XXXX/X.php?qy="+q); //"http:...
I want to pass the variable q from java to php. [CODE] However, the php file cannot get the value from java(php connected to mysql correctly). php coding: [CODE] I found that if I just pass the table name to php, it works. But if the passing variable become longer, it went to caught one. How can I fix this? How about p...
java|php|android|mysql|http
0
2015-02-24T19:15:40.327Z
2,015
2
19
1
545
2
446
54
5
2
true
false
false
false
false
false
zero
28,704,294
Android - The method is undefined
<p>I keep getting this error while trying to convert to CharSequence[].</p> <p>The method toArray(CharSequence[]) is undefined for the type String </p> <p>This is my code</p> <pre><code> CharSequence[] cs = abbrev.toArray(new CharSequence[abbrev.length()]); </code></pre> <p>The abbrev is just splitting...
I keep getting this error while trying to convert to CharSequence[]. The method toArray(CharSequence[]) is undefined for the type String This is my code [CODE] The abbrev is just splitting sentences into its first characters (Hello World --> HW) [CODE] Any Ideas? Thanks
android|arrays|charsequence
0
2015-02-24T19:16:05.437Z
2,015
2
19
1
75
2
270
33
3
2
true
false
false
false
false
false
zero
28,704,301
Conversion issue with nested Fragments: android.support.v4.app.Fragment VS android.app.Fragment
<p>I'm with a cross-API problem. My scenario is as follow:</p> <ol> <li>I'm developing an application that uses <strong>support-v4-AppCompat</strong>, using <strong>android.support.v4.app.Fragment</strong>;</li> <li>I'm using <strong>getChildFragmentManager</strong> to retrieve nested <strong>Fragments</strong>. This ...
I'm with a cross-API problem. My scenario is as follow: I'm developing an application that uses support-v4-AppCompat , using android.support.v4.app.Fragment ; I'm using getChildFragmentManager to retrieve nested Fragments . This is a need because I have a PageView to scroll along several Fragments , one of them using c...
android|fragment|android-appcompat
0
2015-02-24T19:16:17.947Z
2,015
2
19
1
709
2
953
95
3
2
true
false
false
false
false
false
zero
28,704,363
How to use android SQLite cursors to show a row in the table
<p>Don't ask questions here often but I have a MyDBHelper class with a method 'databaseToString' which I'm pretty sure is wrong but what I want to do is get the details that the user enters in the form which are stored in the 'details' table and output them in a seperate fragment/listview using cursors. (focus on one t...
Don't ask questions here often but I have a MyDBHelper class with a method 'databaseToString' which I'm pretty sure is wrong but what I want to do is get the details that the user enters in the form which are stored in the 'details' table and output them in a seperate fragment/listview using cursors. (focus on one tabl...
android|sqlite|android-cursor
0
2015-02-24T19:19:57.517Z
2,015
2
19
1
2,898
2
660
60
3
3
true
false
true
false
false
false
zero
28,704,375
How to add a textview,which shows if its plugged in and its charging or not and if charging then how much time remaining
<p>I Want to add a textview,which shows if its plugged in and its charging or not and if charging then how much time remaining</p> <pre><code>public class MainActivity extends Activity { // Create Broadcast Receiver Object along with class definition private BroadcastReceiver mBatInfoReceiver = new BroadcastR...
I Want to add a textview,which shows if its plugged in and its charging or not and if charging then how much time remaining [CODE]
android
0
2015-02-24T19:20:26.330Z
2,015
2
19
1
49
1
130
120
1
1
true
false
false
false
false
false
zero
28,704,409
Zxing QR Scanner Embeded disable beep sound
<p>I have integrated Zxing QR Scanner in my Android app using the instructions here: <a href="https://github.com/journeyapps/zxing-android-embedded" rel="nofollow">https://github.com/journeyapps/zxing-android-embedded</a> ( Adding aar dependency with Gradle) Everything works great with the scanner but when the scan is ...
I have integrated Zxing QR Scanner in my Android app using the instructions here: https://github.com/journeyapps/zxing-android-embedded ( Adding aar dependency with Gradle) Everything works great with the scanner but when the scan is succesfull and the phone media volume is not on mute the app generates a beep sound. C...
java|android|embedded|zxing
1
2015-02-24T19:22:21.303Z
2,015
2
19
1
6,186
3
364
43
4
0
false
false
true
false
false
false
low
28,704,450
Android RoboGuice with custom view not working
<p>I have a custom view, and I want to use RoboGuice to get views references.</p> <p>I used this example:<a href="https://github.com/roboguice/roboguice/wiki/Your-First-Injection-into-a-Custom-View-class" rel="nofollow">https://github.com/roboguice/roboguice/wiki/Your-First-Injection-into-a-Custom-View-class</a></p> ...
I have a custom view, and I want to use RoboGuice to get views references. I used this example: https://github.com/roboguice/roboguice/wiki/Your-First-Injection-into-a-Custom-View-class I tried both options (v3, v3.1), but it does not seem to work (in onFinishInflate, my members are null) In case it matters, my custom ...
android|roboguice
0
2015-02-24T19:24:18.427Z
2,015
2
19
1
316
1
416
46
2
0
false
false
false
false
false
false
zero
28,704,451
Grid Items are changing when scrolling
<p>Hi I am working with custom GridView.</p> <p>The GridView placed in the following xml/layout file.</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_p...
Hi I am working with custom GridView. The GridView placed in the following xml/layout file. [CODE] The GridView contains the following views music_grid_item.xml [CODE] I have used the custom adapter class and followed this link MusicCategoryAdapter.java [CODE] I am facing the problem that the items are repeating by cha...
android|gridview|android-custom-view|baseadapter
0
2015-02-24T19:24:18.580Z
2,015
2
19
1
122
1
417
38
4
3
true
false
false
false
false
false
zero
28,704,500
Loading images into big size imageviews
<p>I know that ,according to android docs, that if you have a big image. Then you scale it down to size of the image view you are loading it to (using the decodeResources and Options class).</p> <p>Now my question is, lets say you want to load background picture and the source image is of similar size, do you just loa...
I know that ,according to android docs, that if you have a big image. Then you scale it down to size of the image view you are loading it to (using the decodeResources and Options class). Now my question is, lets say you want to load background picture and the source image is of similar size, do you just load the image...
android
0
2015-02-24T19:26:22.407Z
2,015
2
19
1
27
0
461
39
1
0
false
true
false
false
false
false
zero
28,704,531
zooming EditText without losing quality?
<p>I'm using a code for zooming my <code>EditText</code> and it works 100%, but the problem is when zooming the text losses its quality like zooming an image.</p> <p>I need it to zoom the font in the text like making it's size bigger (size up)</p> <hr> <p>This is my code for xml:</p> <pre><code>&lt;ScrollView a...
I'm using a code for zooming my EditText and it works 100%, but the problem is when zooming the text losses its quality like zooming an image. I need it to zoom the font in the text like making it's size bigger (size up) This is my code for xml: [CODE] and java: [CODE] and this is my java code for main activity: [CODE]...
java|android|zooming
1
2015-02-24T19:27:58.147Z
2,015
2
19
1
511
1
412
40
3
3
true
false
false
false
false
false
low
28,704,567
Is it possible to add several strings and a bitmap to a ByteArrayOutputStream
<p>I'm writing several strings to a ByteArrayOutputStream using a DataOutputStream as follows:</p> <pre><code> ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); DataOutputStream dataStream = new DataOutputStream(byteStream); dataStream.writeUTF(string1); etc. </code></pre> <p>However I wo...
I'm writing several strings to a ByteArrayOutputStream using a DataOutputStream as follows: [CODE] However I would also like to add a Bitmap to the ByteArrayOutputStream. Is it possible to first write the strings using the DataOutputStream and then write the bitmap directly to the ByteArrayOutputStream using write()? H...
java|android
0
2015-02-24T19:29:51.947Z
2,015
2
19
1
66
1
526
77
2
1
true
false
false
false
false
false
zero