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,558,121
How to add item from bottom to top after Pull refresh ListView?
<p>This is my class for Print List-view in Android </p> <pre><code> public class ChatActivity extends FragmentActivity implements OnClickListener { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FE...
This is my class for Print List-view in Android [CODE] This is my XML of listview: [CODE] I am able to display list-view in Android. Using chatadapter I have applied pull to refresh listview to load data 1 - 1 item in listview after refreshing but its working fine but I want to display that after refresh last item come...
android
0
2015-02-17T09:02:20.103Z
2,015
2
9
1
598
2
518
63
1
2
true
false
false
false
false
false
zero
28,558,153
Android WebRTC DataChannel binary transfer mode
<p>I achieved to transfer data between two android phones using WebRTC's <code>DataChannel</code> :</p> <p>On one side, I send the data: </p> <pre><code>boolean isBinaryFile = false; File file = new File(path); // let's assume path is a .whatever file's path (txt, jpg, pdf..) ByteBuffer byteBuffer = ByteBuffer.wrap...
I achieved to transfer data between two android phones using WebRTC's DataChannel : On one side, I send the data: [CODE] On the other side, this callback should be called regardless of isBinaryFile value : [CODE] In the case of any file, when isBinaryFile is false , the callback is called and I'm able to print the text...
android|file|webrtc|file-transfer|rtcdatachannel
1
2015-02-17T09:04:15.277Z
2,015
2
9
1
3,717
1
524
47
5
3
true
false
true
false
false
false
low
28,558,164
How do i change text color when button was pressed once (Android)
<p>what i basically wanna do is this: When i click on the button i want its Text color to appear in a different color. What i tried is this:</p> <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item android:state_pressed="true" android:color="@color/red...
what i basically wanna do is this: When i click on the button i want its Text color to appear in a different color. What i tried is this: [CODE] and then i did use this selector as drawable on the button android:textColor but this doesn solve it since it only changes its color while i press the button. I want it like t...
android
3
2015-02-17T09:05:09.373Z
2,015
2
9
1
4,852
6
911
65
1
3
true
false
true
false
false
false
low
28,558,275
facebook not showing message by sending via Intent
<pre><code>public void shareMessage(){ final Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_TEXT, text); getContext().startActivity(Intent.createChooser(intent, "Share")); </code></pre> <p>} </p> <p>When I use "text/pla...
[CODE] } When I use "text/plain", Facebook comes up as an option but the text does not load up when selecting it. But the text does load for Twitter,email, SMS. Has anyone else encountered this problem?
java|android|facebook
-4
2015-02-17T09:11:21.383Z
2,015
2
9
1
182
1
202
50
3
1
true
false
false
false
false
true
negative
28,558,316
How to keep a Android app in landscape
<p>I want to know if there was good way to keep my application from rotating, but let it go switch from landscape to landscape reversed?</p> <p>I've only found this:</p> <pre><code>setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); </code></pre> <p>How can I restrict my applications to those two sta...
I want to know if there was good way to keep my application from rotating, but let it go switch from landscape to landscape reversed? I've only found this: [CODE] How can I restrict my applications to those two states?
android|performance|android-ui|android-windowmanager
1
2015-02-17T09:13:33.253Z
2,015
2
9
1
94
5
218
38
4
1
true
false
false
false
false
false
low
28,558,321
An empty space shows after translationY animation
<p>I am hiding the <code>Toolbar</code> when scrolled down, the only views left would be the <code>SlidingTabLayout</code> and the <code>ViewPager</code>, just like the behaviour that PlayStore has. But I can see a white empty space after the <code>SlidingTabLayout</code> is moved. How do I eliminate this and let the ...
I am hiding the Toolbar when scrolled down, the only views left would be the SlidingTabLayout and the ViewPager , just like the behaviour that PlayStore has. But I can see a white empty space after the SlidingTabLayout is moved. How do I eliminate this and let the ViewPager occupies that extra space? When scrolled up, ...
android|android-animation|android-toolbar
4
2015-02-17T09:13:51.507Z
2,015
2
9
1
2,025
2
404
49
3
1
true
false
false
false
false
false
low
28,558,385
how we used the xmpp chat between two devices in android
<p>I am started my carrier in android and I want to apply the Xmpp chat between the two devices by OpenFire server,but I don't know about this.please help me.</p>
I am started my carrier in android and I want to apply the Xmpp chat between the two devices by OpenFire server,but I don't know about this.please help me.
java|android
-2
2015-02-17T09:17:16.410Z
2,015
2
9
1
83
1
155
56
2
0
false
false
false
false
false
true
negative
28,558,395
String comparing containing special characters and comma
<p>I am developing a application in which i am comparing strings, all strings return true, when string contains <code>comma</code> then it returns false. e.g</p> <pre><code>String a= edittext.getText().toString().toTrim(); // e.g "string," String b= textView.getText().toString().toTrim(); // e.g "string,"; if(a.equal...
I am developing a application in which i am comparing strings, all strings return true, when string contains comma then it returns false. e.g [CODE] I don't know equals function return false on this type of string. Help how to match these types of strings.
java|android|string-matching
-4
2015-02-17T09:17:45.550Z
2,015
2
9
1
2,811
2
256
56
3
1
true
false
true
false
false
true
negative
28,558,417
Android View iflation exception
<p>I am getting a force closure with this error:</p> <pre><code>android.view.InflateException: Couldn't resolve menu item onClick handler scanBarcode in class com.beerportfolio.beerportfoliopro.MainDrawer2 at android.view.MenuInflater$InflatedOnMenuItemClickListener.&lt;init&gt;(MenuInflater.java) at and...
I am getting a force closure with this error: [CODE] My maindrawer2 file looks liek this: [CODE] main.xml is: [CODE]
android|android-layout|forceclose
0
2015-02-17T09:19:00.057Z
2,015
2
9
1
209
1
116
31
3
3
true
false
false
false
false
false
zero
28,558,492
Circular image with RoundedBitmapDrawable is pixelated
<p>Here is what I am doing</p> <pre><code>public static RoundedBitmapDrawable getRoundedBitmap(Resources res, Bitmap bitmap){ RoundedBitmapDrawable roundBitMap = RoundedBitmapDrawableFactory.create(res,bitmap); roundBitMap.setCornerRadius(Math.max(bitmap.getWidth(), bitmap.getHeight()) / 1.25f); return rou...
Here is what I am doing [CODE] It gives me a circular image but its pixelated on the circle's edge. Any idea how to make it smooth ? Or should I use an older technique ?
android|android-layout
0
2015-02-17T09:22:51.910Z
2,015
2
9
1
2,006
1
169
54
2
1
true
false
false
false
false
false
zero
28,558,568
fully displayed listview in scrollview
<p>I have the following layout:</p> <pre><code>&lt;ScrollView android:id="@+id/scrollview" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="@dimen/activity_vertical_margin" android:overScrollMode="never" &gt; ...
I have the following layout: [CODE] I couldn't modify the layout and inside the listview I have to add a list of adapters defined as: [CODE] The problem is that the list of adapters is not fully shown. I know that is not correct to put a ListView inside a ScrollView, I already found another thread where is suggested to...
listview|android-listview|android-linearlayout|adapter
0
2015-02-17T09:26:48.777Z
2,015
2
9
1
124
1
980
38
4
3
true
false
false
false
false
false
zero
28,558,613
How to display a contact list entry when typing the @ symbol?
<p>Following is the code that I'm using </p> <pre><code>ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_dropdown_item_1line, result); AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.ContactDisplay); Pattern p = ...
Following is the code that I'm using [CODE] But I'm not getting any contacts by typing @ symbol . Should I have to use key-events ?
java|android|regex|drop-down-menu|autocompletetextview
2
2015-02-17T09:29:09.180Z
2,015
2
9
1
63
1
131
61
5
1
true
false
false
false
false
false
low
28,558,625
SDK Project structure and building with Gradle?
<p>As Android Studio became official IDE for Android development, I want to migrate some projects from Eclipse.</p> <p>I have shared Java library project across multiple Android sample applications. In Eclipse i refer the Java library project as project dependency, but when i distribute, Ant script generate library ja...
As Android Studio became official IDE for Android development, I want to migrate some projects from Eclipse. I have shared Java library project across multiple Android sample applications. In Eclipse i refer the Java library project as project dependency, but when i distribute, Ant script generate library jar and copy ...
java|android|android-studio|gradle|sdk
0
2015-02-17T09:29:55.143Z
2,015
2
9
1
201
1
622
47
5
0
false
false
false
false
false
false
zero
28,558,668
parse.com android relationship query
<p>Im using Parse.com and I have 2 tables: recipe and ingredient, now in 1 recipe I have many ingredients In parse I've connected the table using parent in ingredient table, I'm trying to build an <code>ArrayList</code> of Recige (each Recipe contain an ArrayList of ingredients)</p> <p>Something like this:</p> <pre><...
Im using Parse.com and I have 2 tables: recipe and ingredient, now in 1 recipe I have many ingredients In parse I've connected the table using parent in ingredient table, I'm trying to build an ArrayList of Recige (each Recipe contain an ArrayList of ingredients) Something like this: [CODE] Thank a lot guys ingrediant ...
android|parse-platform
1
2015-02-17T09:32:09.713Z
2,015
2
9
1
1,541
1
355
36
2
1
true
false
false
false
false
false
low
28,558,716
Android - java.lang.NullPointerException, CustomAdapter.getView(CustomAdapter.java:XX)
<p>Now I'm facing this error when I trying to populate json data inside my listview. FYI, This app only have one activity because I'm using tabhost and a several of fragments. Is it because of I'm using fragment and tabhost?</p> <p>I got this error message:</p> <pre><code>02-17 17:24:59.761: E/AndroidRuntime(4095): j...
Now I'm facing this error when I trying to populate json data inside my listview. FYI, This app only have one activity because I'm using tabhost and a several of fragments. Is it because of I'm using fragment and tabhost? I got this error message: [CODE] Error happened in this line inside HistoryListAdapter.java . [COD...
java|android
-1
2015-02-17T09:34:52.923Z
2,015
2
9
1
155
2
503
86
2
5
true
false
false
false
false
true
negative
28,558,745
Android Activities are kept in memory, no listeners or references
<p>I have 2 activities (let's say A and B). When i press a button on A, i start an instance of B via StartActivity. When i go back to A, and press the button again, B is still in memory and it will load in a new instance of B, on top of the old one. This goes on until i run out of memory, the old activities are not cle...
I have 2 activities (let's say A and B). When i press a button on A, i start an instance of B via StartActivity. When i go back to A, and press the button again, B is still in memory and it will load in a new instance of B, on top of the old one. This goes on until i run out of memory, the old activities are not cleane...
android|android-activity|memory-leaks|heap-memory|android-actionbaractivity
0
2015-02-17T09:36:31.787Z
2,015
2
9
1
146
0
756
65
5
2
true
true
false
false
false
false
zero
28,558,793
How to make UI like Google Inbox app in Android
<p><a href="https://i.imgur.com/egGrfSw.png" rel="noreferrer">Unscrolled Horizontal RecyclerView</a></p> <p><a href="https://i.imgur.com/6lFV8bq.png" rel="noreferrer">Scrolled Horizontal RecyclerView</a></p> <p> I want to make Google Inbox Android app like UI in my APP, I know its been using `RecyclerView` to achieve t...
Unscrolled Horizontal RecyclerView Scrolled Horizontal RecyclerView I want to make Google Inbox Android app like UI in my APP, I know its been using `RecyclerView` to achieve this. I have two questions 1. How to make First horizontal card start drawing itself after some left padding, coz as per hierarchy viewer Recycle...
android|material-design|android-recyclerview|google-index
5
2015-02-17T09:38:30.640Z
2,015
2
9
1
911
0
637
47
4
0
false
true
false
false
false
false
low
28,558,849
ContactsContract.CommonDataKinds.Phone.CONTENT_URI vs ContactsContract.Contacts.CONTENT_URI
<p>In <a href="https://stackoverflow.com/questions/16124034/how-to-retrieve-the-list-of-contacts-in-android">how to retrieve the list of contacts in android</a> I see code that allows you to read contacts using either <code>ContactsContract.CommonDataKinds.Phone.CONTENT_URI</code> or <code>ContactsContract.Contacts.CON...
In how to retrieve the list of contacts in android I see code that allows you to read contacts using either ContactsContract.CommonDataKinds.Phone.CONTENT_URI or ContactsContract.Contacts.CONTENT_URI . What is the difference between them? When can they be different?
android|android-contacts|android-query
5
2015-02-17T09:41:22.473Z
2,015
2
9
1
1,597
1
266
91
3
0
false
false
false
false
false
false
low
28,558,854
Android Studio 1.0.1 for mac not creating Gen folder and Eclipse not creating Blank activity no-matter what API level Selected
<p>I have had such a rough day, I have been trying to make an android using Android Studio 1.0.1 for Mac yet every time i create a new project the Gen folder which stores R.java is never created, I do not know, maybe its my installation, I was told to download android Build tools and i did. When i use Eclipse ADT Gen f...
I have had such a rough day, I have been trying to make an android using Android Studio 1.0.1 for Mac yet every time i create a new project the Gen folder which stores R.java is never created, I do not know, maybe its my installation, I was told to download android Build tools and i did. When i use Eclipse ADT Gen fold...
android|eclipse
0
2015-02-17T09:41:42.067Z
2,015
2
9
1
83
1
609
126
2
0
false
false
false
false
false
false
zero
28,558,858
What is different of NSD and WifiP2pManager?
<p>There are several choice for making a WiFi program in android, most common methods are using <strong>NSD</strong> and <strong>WifiP2pManager</strong>.</p> <p>What is different between these 2 choice?</p>
There are several choice for making a WiFi program in android, most common methods are using NSD and WifiP2pManager . What is different between these 2 choice?
android|wifi|wifi-direct|wifimanager
6
2015-02-17T09:41:50.960Z
2,015
2
9
1
2,333
1
159
44
4
0
false
false
false
false
false
false
medium
28,558,884
How to put a scroll view to many linear layout?
<p>I have designed this User Interface since it wont show the whole activity I want to put a scrollview to the layout.When I put in to a scroll view some buttons postion changes.how can I change it?</p> <p>XML Code:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:t...
I have designed this User Interface since it wont show the whole activity I want to put a scrollview to the layout.When I put in to a scroll view some buttons postion changes.how can I change it? XML Code: [CODE]
android|layout
1
2015-02-17T09:43:02.263Z
2,015
2
9
1
991
5
212
47
2
1
true
false
false
false
false
false
low
28,558,940
Implementing Nokia Here SDK in Android
<p>I want to develop an app in android using 'here sdk' but i'm unable to find any libraries or files to include in my android project. I have searched over here <a href="https://developer.here.com/mobile-sdks/documentation/android-hybrid-plus/topics/app-simple.html" rel="nofollow">https://developer.here.com/mobile-sdk...
I want to develop an app in android using 'here sdk' but i'm unable to find any libraries or files to include in my android project. I have searched over here https://developer.here.com/mobile-sdks/documentation/android-hybrid-plus/topics/app-simple.html but still no luck. Can anyone guide me. Thanks.
android|sdk
2
2015-02-17T09:45:41.030Z
2,015
2
9
1
383
2
302
38
2
0
false
false
false
false
false
false
low
28,558,986
Track Simple Tap Gesture on ViewPager
<p>I am using a ViewPager. When I am tapping or touching the ViewPager then I want a layout at bottom to get Visible.</p> <p>Problem : I am not able to Track the Tap or Touch Event on the ViewPager. </p> <p>The below image can help to understand my problem. </p> <p><img src="https://i.stack.imgur.com/w6aEW.jpg" alt=...
I am using a ViewPager. When I am tapping or touching the ViewPager then I want a layout at bottom to get Visible. Problem : I am not able to Track the Tap or Touch Event on the ViewPager. The below image can help to understand my problem.
android|android-viewpager|gesture
0
2015-02-17T09:47:40.500Z
2,015
2
9
1
338
1
239
37
3
0
false
false
false
false
false
false
zero
28,559,057
Best way to handle duplicate entry error
<p>I'm trying to use Appium in my android studio project so I had to create a new test package and I had to add a new library in my dependencies for Appium:</p> <pre><code>dependencies { compile 'io.appium:java-client:1.0.1' ... } </code></pre> <p>And after that, when I tried to run my test relative to Appium...
I'm trying to use Appium in my android studio project so I had to create a new test package and I had to add a new library in my dependencies for Appium: [CODE] And after that, when I tried to run my test relative to Appium or even when I tried to run my project I got this error message: [CODE] Indeed I found this dupl...
android|exception|appium|android-multidex
4
2015-02-17T09:51:24.280Z
2,015
2
9
1
375
0
600
40
4
2
true
true
false
false
false
false
low
28,559,061
OnDrawerItemClickListener Does not work.
<p>I have been working on this navigation drawer with toolbar.Now am stuck with the click listener. When i click the items in the drawer it does nothing. My class is fragment. Here its the code. package com.vivek.ss;</p> <pre><code>import android.app.FragmentManager; import android.app.FragmentTransaction; import ...
I have been working on this navigation drawer with toolbar.Now am stuck with the click listener. When i click the items in the drawer it does nothing. My class is fragment. Here its the code. package com.vivek.ss; [CODE]
java|android|fragment|navigation-drawer
2
2015-02-17T09:51:31.967Z
2,015
2
9
1
763
1
220
40
4
1
true
false
false
false
false
false
low
28,559,062
Android color indentification
<p>I'm trying to develop an app that uses android camera to divide screen into 64 blocks and then analyze the percentage of colors present in each block seperaely. Any source codes or any links to achieve it.</p>
I'm trying to develop an app that uses android camera to divide screen into 64 blocks and then analyze the percentage of colors present in each block seperaely. Any source codes or any links to achieve it.
android
-3
2015-02-17T09:51:37.603Z
2,015
2
9
1
26
1
205
29
1
0
false
false
false
false
false
true
negative
28,559,100
What is the right way to upload image to amazon s3 in android?
<p>I used Following way to upload image to amazon s3. But i couldn't get succeed in this.</p> <pre><code>public UploadAmazon() { s3Client = new AmazonS3Client(new BasicAWSCredentials(MY_ACCESS_KEY_ID,MY_SECRET_KEY)); s3Client.createBucket(pictureBucket); s3Client.setBucketAcl(pictureBucket, CannedAccessCon...
I used Following way to upload image to amazon s3. But i couldn't get succeed in this. [CODE] When trying like this i'm getting following error [CODE] i refered here , but no success. Help Predicted. Thanks in advance
java|android|amazon-s3|amazon|image-upload
0
2015-02-17T09:53:11.063Z
2,015
2
9
1
3,927
1
217
62
5
2
true
false
true
false
false
false
zero
28,559,119
How to implement Contact connection (mimetype) to launch my application?
<p>I need some help with this scenario fro my application: When the user is going to a specific contact and click that link icon (like What's up ), the application (eq. WhatsUp) is opened with that contact id.</p> <p><img src="https://i.stack.imgur.com/ENDjl.png" alt="Here you can see the links icons "></p> <p>So far...
I need some help with this scenario fro my application: When the user is going to a specific contact and click that link icon (like What's up ), the application (eq. WhatsUp) is opened with that contact id. So far what I did: - I succeed to add my custom data for a specific contact . I have my app icon and the mimedata...
android|android-intent|android-manifest|mime-types|android-contacts
1
2015-02-17T09:53:55.240Z
2,015
2
9
1
1,181
1
686
72
5
1
true
false
false
false
false
false
low
28,559,149
Can we fetch gps location of one android device and show it in another android device?
<p>Can we fetch gps location of one android device and show it in another android device? Kindly give suggestions and sample code. Need to know whether gps data can be posted from an android device. </p>
Can we fetch gps location of one android device and show it in another android device? Kindly give suggestions and sample code. Need to know whether gps data can be posted from an android device.
java|android|xml|android-mapview|android-maps
0
2015-02-17T09:55:09.887Z
2,015
2
9
1
177
1
195
86
5
0
false
false
false
false
false
false
zero
28,559,221
Android gradle build failed : aapt error 137
<p>Randomly, while trying to build my android applications, I have this message during the mergeResources : </p> <p>Execution failed for task ':ImmoStruct:mergeReleaseResources'.</p> <blockquote> <p>Failed to run command:<br> /home/android/adt-bundle/sdk/build-tools/21.1.2/aapt s -i /home/android/queue/294c28...
Randomly, while trying to build my android applications, I have this message during the mergeResources : Execution failed for task ':ImmoStruct:mergeReleaseResources'. Failed to run command: /home/android/adt-bundle/sdk/build-tools/21.1.2/aapt s -i /home/android/queue/294c2840260c2d59c396a7e08ac3c32ba045cb28/ImmoStruct...
android|android-gradle-plugin|aapt
5
2015-02-17T09:57:56.950Z
2,015
2
9
1
955
1
872
44
3
0
false
false
false
false
false
false
low
28,559,224
Display Date in 24-hour issue
<p>I am working simple app where I can get current <code>DateTime</code> and convert that into <code>24-hour</code> format.</p> <h2>Code:</h2> <pre><code> String DATE_yyyy_MM_dd_hh_mm_ss = &quot;yyyy-MM-dd hh:mm:ss&quot;; String DATE_yyyy_MM_dd_HH_mm_ss = &quot;yyyy-MM-dd HH:mm:ss&quot;; TextView tv=(TextV...
I am working simple app where I can get current DateTime and convert that into 24-hour format. Code: [CODE] Problem: It's perfectly working in my devices Samsung Galaxy S3(Android 4.3), S4(Android 4.3) and Nexus 5(Android 4.4) . while the same code I am running in Huawei Ascend Y330 device(Android 4.2.2) it's not displ...
android|datetime|android-date
3
2015-02-17T09:58:01.330Z
2,015
2
9
1
1,093
4
531
29
3
1
true
false
false
false
false
false
low
28,559,281
Android frame by frame live wallpaper animation
<p>I have a problem. I write the live wallpapers for android with frame by frame animation, and i already finished it, but animation plays very slowly something about of 1 frame per second.</p> <p>Here is my code</p> <pre><code> public class WallpaperSer extends WallpaperService { static final Handler mHandle...
I have a problem. I write the live wallpapers for android with frame by frame animation, and i already finished it, but animation plays very slowly something about of 1 frame per second. Here is my code [CODE] What I do wrong? UPDATE #1 My error log with @chipopo code: java.lang.IllegalArgumentException: Problem decodi...
java|android|live-wallpaper
1
2015-02-17T10:00:53.073Z
2,015
2
10
1
610
1
1,686
47
3
2
true
false
false
false
false
false
low
28,559,365
get captured image from android app cache and display as string builder In Oracle MAF
<p>I'm using Oracle MAF 2.1.0.0.41 when I take an image using android device, I've seen that the path of this image is:file:/storage/emulated/0/Android/data/com.example.app/142416553.jpg</p> <p>I tried to access to this image using java bean class:</p> <pre><code>try { Object imageSource = (Object) AdfmfJava...
I'm using Oracle MAF 2.1.0.0.41 when I take an image using android device, I've seen that the path of this image is:file:/storage/emulated/0/Android/data/com.example.app/142416553.jpg I tried to access to this image using java bean class: [CODE] but I faced this Error: No such file or directory cannot Read, write and n...
android|oracle|oracle-maf
0
2015-02-17T10:04:12.517Z
2,015
2
10
1
479
1
389
85
3
1
true
false
false
false
false
false
zero
28,559,377
Sending MultipartEntity using HttpURLConnection
<p>using the below code, i am able to send a large file to the server, but i cant seem to find out how send a text with the file.(send the file plus extra data(username, password..) for example). and also receive it at the server side.</p> <pre><code>FileInputStream fileInputStream = new FileInputStream(new File( ...
using the below code, i am able to send a large file to the server, but i cant seem to find out how send a text with the file.(send the file plus extra data(username, password..) for example). and also receive it at the server side. [CODE] the server part: [CODE] please any help will be appreciated. i know i can do thi...
java|c#|android
6
2015-02-17T10:04:31.327Z
2,015
2
10
1
9,193
2
416
47
3
2
true
false
true
false
false
false
medium
28,559,394
Suppress UsbRequestJNI / ALOGD log messages
<p>I'm developing an Android app which is streaming serial data from some custom hardware. I'm using mik3y's <a href="https://github.com/mik3y/usb-serial-for-android" rel="nofollow noreferrer">usb-serial-for-android</a> library to get the serial data over USB in OTG mode, which after some tweaks is working fine.</p> <...
I'm developing an Android app which is streaming serial data from some custom hardware. I'm using mik3y's usb-serial-for-android library to get the serial data over USB in OTG mode, which after some tweaks is working fine. However, for every transaction over the USB interface, UsbRequestJNI is logging an init and close...
java|android|usbserial|android-usb
5
2015-02-17T10:05:52.463Z
2,015
2
10
1
1,338
2
1,305
43
4
1
true
false
false
false
false
false
low
28,559,458
local notification not repeating
<p>I need to show notification for completing registration to user in every 2 hrs , I have set it to few mins for testing , but my notification comes only once it never come again . Please suggest.</p> <p>My code for repeating task :</p> <pre><code>public void createNotification() { Intent notificationIntent = ne...
I need to show notification for completing registration to user in every 2 hrs , I have set it to few mins for testing , but my notification comes only once it never come again . Please suggest. My code for repeating task : [CODE] My Code in service : [CODE] }
android|notifications|alarmmanager|repeatingalarm
1
2015-02-17T10:09:22.390Z
2,015
2
10
1
341
3
260
32
4
2
true
false
false
false
false
false
low
28,559,463
PhoneGap XHR responseText empty, status 0, CORS?
<p>I have Android 4.0.4 and a PhoneGap 3.6.3 app that makes a synchronous XmlHttpRequest:</p> <pre><code>var xhr = new XMLHttpRequest(); xhr.open('GET', 'http://myserver/myapp/api/ProgramOptions', false); xhr.setRequestHeader("Accept","application/json"); xhr.send(null); window.alert(xhr.responseType); window.alert(xh...
I have Android 4.0.4 and a PhoneGap 3.6.3 app that makes a synchronous XmlHttpRequest: [CODE] When loading the web app in the browser, I get [CODE] When loading the phonegap app, I get [CODE] Does anyone know why that is? I already searched for status 0, but there's helluva lot of reasons, and none I found - except the...
javascript|android|ajax|cordova
1
2015-02-17T10:09:31.960Z
2,015
2
10
1
913
0
557
48
4
3
true
true
false
false
false
false
low
28,559,467
Toolbar Item Click
<p>I am using toolbar in my app. Toolbar layout looks like this. I add <code>imageButton</code> inside toolbar as menu item. (Is that is a problem?) As I am new to Toolbar I don't know if this is the right way.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.v7.widget.Toolbar xmlns:andr...
I am using toolbar in my app. Toolbar layout looks like this. I add imageButton inside toolbar as menu item. (Is that is a problem?) As I am new to Toolbar I don't know if this is the right way. [CODE] And in onCreate : [CODE] And onOptionItemSelected : [CODE] The click on shareButton in toolbar is not firing. Can anyo...
android|android-toolbar
7
2015-02-17T10:09:40.137Z
2,015
2
10
1
27,062
3
348
18
2
3
true
false
true
true
false
false
medium
28,559,469
Justify text in FlowTextView
<p>I'm using the library FlowTextView for wrapping TextView in Android. The text is wrapping around ImageView inside the layout. I want to justify the text but I don't know how can do this. I try with Html.fromHtml but it doesn't work.</p> <p>Here is the code for layout:</p> <pre><code>&lt;LinearLayout xmlns:android=...
I'm using the library FlowTextView for wrapping TextView in Android. The text is wrapping around ImageView inside the layout. I want to justify the text but I don't know how can do this. I try with Html.fromHtml but it doesn't work. Here is the code for layout: [CODE] And this is the code to set the text in FlowTextVie...
android|textview|justify
0
2015-02-17T10:10:01.297Z
2,015
2
10
1
761
0
380
28
3
2
true
true
false
false
false
false
zero
28,559,491
Translate java to javascript like google inbox did
<p>Lately I've read <a href="http://gmailblog.blogspot.com.es/2014/11/going-under-hood-of-inbox.html" rel="nofollow">a blog post</a> that Google has used GWT for translating model classes in java to javascript for their Inbox android and web app. I'm evaluating if that would make sense to do for a next android project ...
Lately I've read a blog post that Google has used GWT for translating model classes in java to javascript for their Inbox android and web app. I'm evaluating if that would make sense to do for a next android project which could share the model code basis with the web app (java script), so I have started a little java /...
java|javascript|android|gwt
0
2015-02-17T10:11:00.307Z
2,015
2
10
1
495
1
1,725
50
4
5
true
false
false
false
false
false
zero
28,559,538
Recreating Google Maps API for Android
<p>I have an android application that is on Google Play right now. It uses Google Maps v2 to display maps so it has an API Key. But another developer who has worked before me, used his own gmail account to create the API Project. So I created a new API Project with my own gmail account but I wonder that when I publish ...
I have an android application that is on Google Play right now. It uses Google Maps v2 to display maps so it has an API Key. But another developer who has worked before me, used his own gmail account to create the API Project. So I created a new API Project with my own gmail account but I wonder that when I publish the...
android|api|google-maps|key
1
2015-02-17T10:13:41.243Z
2,015
2
10
1
75
1
355
38
4
0
false
false
false
false
false
false
low
28,559,546
Android Google+ Login - Unique ID
<p>I try to make a Google-Login on my app!</p> <p>And it works, perfectly.</p> <p>But i would like to get a String or Number that is unique for User and App. So that i can Authorize it on my own Server...</p> <p>My actually way is: </p> <ul> <li>Andorid connect to Google </li> <li>Google send login facts to andro...
I try to make a Google-Login on my app! And it works, perfectly. But i would like to get a String or Number that is unique for User and App. So that i can Authorize it on my own Server... My actually way is: Andorid connect to Google Google send login facts to android Android send login state to my server But for the l...
android|authentication|google-plus|unique
0
2015-02-17T10:14:17.613Z
2,015
2
10
1
1,146
2
408
33
4
0
false
false
false
false
false
false
zero
28,559,556
Android SQLite adding rows only once
<p>From what I understand, once a <code>SQL db</code> is created and populated it remains on the device until the app is uninstalled. For performance reasons I don't want to re insert all my rows every time the app is lauched, how can I wrap my insert statements so that I populated the db only the first time the app is...
From what I understand, once a SQL db is created and populated it remains on the device until the app is uninstalled. For performance reasons I don't want to re insert all my rows every time the app is lauched, how can I wrap my insert statements so that I populated the db only the first time the app is launched? Right...
android|sqlite
0
2015-02-17T10:14:39.597Z
2,015
2
10
1
90
2
424
36
2
0
false
false
false
false
false
false
zero
28,559,623
Countdown timers in a ListView
<p>I have a ListView with the name of the timer, and the time of the timer, I don't know how to implement the countdown part. In each row in the ListView I have two TextViews: the time and the name of the timer, and then a Button which should start and stop the timer. This is my custom ListViewAdapter class, where I be...
I have a ListView with the name of the timer, and the time of the timer, I don't know how to implement the countdown part. In each row in the ListView I have two TextViews: the time and the name of the timer, and then a Button which should start and stop the timer. This is my custom ListViewAdapter class, where I belie...
java|android|timer|countdowntimer
0
2015-02-17T10:18:04Z
-1
-1
-1
-1
862
1
554
30
4
1
true
false
false
false
false
false
zero
28,559,644
LinearLayout set border color dynamically using java code without XML
<p>I have done some research on that issue , but I have not found anything similar just yet.</p> <p>First I make a border of Linear Layout using ShapeDrawable then I have try to set background color on LinearLayout but color is not set then I have comment two line of ShapeDrawable then after I have set the background ...
I have done some research on that issue , but I have not found anything similar just yet. First I make a border of Linear Layout using ShapeDrawable then I have try to set background color on LinearLayout but color is not set then I have comment two line of ShapeDrawable then after I have set the background color of Li...
android|android-layout
2
2015-02-17T10:19:20.057Z
2,015
2
10
1
4,257
2
579
69
2
1
true
false
true
false
false
false
low
28,559,656
How to list items 5 by 5 in HorizontalListView in android on scrolling?
<p>Well right now i am able to display all items in horizontallistview with scroll, right now i need to display items 5 by 5 on scrolling in view like <a href="https://github.com/Seitk/InfiniteScrollPicker" rel="nofollow">this one</a>. I tried to find any link or sample codes, still i can't find anything. Can you guys ...
Well right now i am able to display all items in horizontallistview with scroll, right now i need to display items 5 by 5 on scrolling in view like this one . I tried to find any link or sample codes, still i can't find anything. Can you guys suggest any link or ideas for solving my problem. Thanks in advance XML: [COD...
android|horizontalscrollview
0
2015-02-17T10:20:05.240Z
2,015
2
10
1
52
1
322
71
2
1
true
false
false
false
false
false
zero
28,559,752
get online users(Roster entries) using smack 4.1 in android
<p>I have been trying to get roster entries using smack 4.1 beta 2 in android.</p> <p><a href="https://github.com/igniterealtime/Smack/wiki/Smack-4.1-Readme-and-UpgradeGuide">https://github.com/igniterealtime/Smack/wiki/Smack-4.1-Readme-and-UpgradeGuide</a> Quotes from above link..</p> <p>"Roster now follows the Man...
I have been trying to get roster entries using smack 4.1 beta 2 in android. https://github.com/igniterealtime/Smack/wiki/Smack-4.1-Readme-and-UpgradeGuide Quotes from above link.. "Roster now follows the Manager pattern (use Roster.instanceFor to obtain an instance, no more XMPPConnection.getRoster)" First of all i am ...
android|xmpp|smack|asmack
7
2015-02-17T10:24:44.793Z
2,015
2
10
1
8,457
2
556
59
4
0
false
false
true
false
false
false
medium
28,559,918
Adding a view inside a custom view
<p>I am trying to add a progressbar(circular spinner) inside a RelativeLayout. The relativeLayout is visible, however the progressbar doesn't show up. Following is the code I am using but it doesn't seem to work.</p> <pre><code>public class MyCustomView extends RelativeLayout { RelativeLayout rLayout; Progres...
I am trying to add a progressbar(circular spinner) inside a RelativeLayout. The relativeLayout is visible, however the progressbar doesn't show up. Following is the code I am using but it doesn't seem to work. [CODE] What am I doing wrong? EDIT: I am trying to add a progressbar(circular spinner) inside a RelativeLayout...
android|views|custom-view
0
2015-02-17T10:33:27.170Z
2,015
2
10
1
718
0
565
34
3
2
true
true
false
false
false
false
zero
28,559,974
Bluetooth broadcast receiver never call ACTION_DISCOVERY_STARTED
<p>I have a service running in which I am receiving broadcast receiver for bluetooth. But it never reach ACTION_DISCOVERY_FINISH and ACTION_DISCOVERY_STARTED. I don't know why cause when I manually go to bluetooth portal in android settings, then finish and start, I can see the logs inside my broadcast receiver.</p> <...
I have a service running in which I am receiving broadcast receiver for bluetooth. But it never reach ACTION_DISCOVERY_FINISH and ACTION_DISCOVERY_STARTED. I don't know why cause when I manually go to bluetooth portal in android settings, then finish and start, I can see the logs inside my broadcast receiver. Here is c...
android|bluetooth|broadcastreceiver|intentfilter
1
2015-02-17T10:36:19.180Z
2,015
2
10
1
696
0
404
64
4
1
true
true
false
false
false
false
low
28,559,981
Android webview an internal error has occurred (TypeError) gwt
<p>I built an android app that gives two choices, to open a special webpage inside a web view or through browser. The webpage containing java script and ajax, return a list of items.</p> <p>There is no problem when the webpage is opened through browser but when trying to open the webpage through a <code>webview</code>...
I built an android app that gives two choices, to open a special webpage inside a web view or through browser. The webpage containing java script and ajax, return a list of items. There is no problem when the webpage is opened through browser but when trying to open the webpage through a webview , it return list of ite...
android|gwt|webview
1
2015-02-17T10:36:29.937Z
2,015
2
10
1
160
0
561
62
3
1
true
true
false
false
false
false
low
28,560,006
How to set a buttons in splash screen , in Android or IOS?
<p>I need to create a splash screen with buttons or custom div/images with click listener . But how is this possible in Titanium . Or how is this possible in Android or IOS app . </p> <p>Also this buttons will be displayed on the first time only . </p> <p>Any help . thanks </p>
I need to create a splash screen with buttons or custom div/images with click listener . But how is this possible in Titanium . Or how is this possible in Android or IOS app . Also this buttons will be displayed on the first time only . Any help . thanks
android|ios|titanium|titanium-mobile|titanium-alloy
0
2015-02-17T10:38:00.183Z
2,015
2
10
1
819
1
254
58
5
0
false
false
false
false
false
false
zero
28,560,029
Google Maps Directions intent for bicycle
<p>When using an intent to launch navigation via Google Maps Directions, is there a way to specify you want a route for walking / bicycle?</p>
When using an intent to launch navigation via Google Maps Directions, is there a way to specify you want a route for walking / bicycle?
android|google-maps|directions
0
2015-02-17T10:39:28.467Z
2,015
2
10
1
3,366
2
135
41
3
0
false
false
true
false
false
false
zero
28,560,030
How to develop UI Screen based on carousel for Android Tablet
<p>I have screen in which there are two containers placed vertically one after other,First One contains information of component which is displayed by carousel view placed in second container.</p> <p>How can these be achieved,what are UI Components to be used ,For Carousel View any demo codes will be useful.For first ...
I have screen in which there are two containers placed vertically one after other,First One contains information of component which is displayed by carousel view placed in second container. How can these be achieved,what are UI Components to be used ,For Carousel View any demo codes will be useful.For first component,S...
android|android-layout|android-fragments|tablet
0
2015-02-17T10:39:30.613Z
2,015
2
10
1
418
3
437
61
4
0
false
false
false
false
false
false
zero
28,560,060
black sprite on jni callback
<p>I've made simple helper class in c++ to call native methods from android. </p> <p>My c++ function:</p> <pre><code>extern "C" { JNIEXPORT void JNICALL Java_org_cocos2dx_cpp_AppActivity_imagePicked(JNIEnv* env, jobject thiz, jstring filename); }; JNIEXPORT void JNICALL Java_org_cocos2dx_cpp_AppActivity_imagePicked(...
I've made simple helper class in c++ to call native methods from android. My c++ function: [CODE] Callback implementation: [CODE] It just loads an image, scales it to 10% and place a random position on screen. I also can see CCLOG. Finally java implementation: [CODE] Before I was just directly calling imagePicked from ...
java|android|c++|java-native-interface|cocos2d-x
1
2015-02-17T10:41:05.013Z
2,015
2
10
1
432
1
1,282
28
5
4
true
false
false
false
false
false
low
28,560,096
Bitcoinj will not compile onto Nexus 5 with Android Studio
<p>I am building an app using Bitcoinj and I am trying to run it on a Nexus 5. When using grade to build Bitcoinj - compile 'org.bitcoinj:bitcoinj-core:0.12' - and subsequently running the app on the phone, I receive this error...</p> <p><strong>"Failure [INSTALL_FAILED_NO_MATCHING_ABIS]"</strong></p> <p>Does anyone ...
I am building an app using Bitcoinj and I am trying to run it on a Nexus 5. When using grade to build Bitcoinj - compile 'org.bitcoinj:bitcoinj-core:0.12' - and subsequently running the app on the phone, I receive this error... "Failure [INSTALL_FAILED_NO_MATCHING_ABIS]" Does anyone have any idea why this is, or how to...
android|android-studio|nexus-5|bitcoinj
2
2015-02-17T10:43:03.853Z
2,015
2
10
1
2,214
1
341
58
4
0
false
false
false
false
false
false
low
28,560,144
How to apply animation only to specific views in LayoutAnimationController
<p>This question has already been asked before( <a href="https://stackoverflow.com/questions/4658416/how-to-apply-android-layout-animation-only-to-children-above-a-certain-index">here</a> ). But there is no good answer. </p> <p>I want to apply animation using <code>LayoutAnimationController</code> only to only few vie...
This question has already been asked before( here ). But there is no good answer. I want to apply animation using LayoutAnimationController only to only few views in the ViewGroup( The viewgroup here is a ListView). How should i do that? [CODE] Or by any way can i apply two types of animation in a single LayoutAnimatio...
android|animation
0
2015-02-17T10:45:32.510Z
2,015
2
10
1
96
0
426
74
2
1
true
true
false
false
false
false
zero
28,560,155
Target does not exist error building an Ant project for a Cordova app on OS X
<p>When I try to build a phonegap/cordova app with command:</p> <pre><code>cordova build android </code></pre> <p>I'm getting an error:</p> <pre><code>BUILD FAILED Target "debug" does not exist in the project "CordovaApp". Total time: 0 seconds /path_to_app/platforms/android/cordova/node_modules/q/q.js:126 ...
When I try to build a phonegap/cordova app with command: [CODE] I'm getting an error: [CODE] I think it can be related with my ~/Library/Android/sdk/tools/ant/build.xml file - I maybe accidentally mess it up - could anyone provide me code from that file? Please help.
android|macos|cordova|ant
1
2015-02-17T10:46:10.027Z
2,015
2
10
1
489
1
267
77
4
2
true
false
false
false
false
false
low
28,560,160
ViewPager Fragments disappear after screen rotation
<p>I have the following problem:</p> <p>The content of my fragments is dependet on the content of xml files. So in the <code>onStart</code> method of my <code>FragmentActivity</code> I call a method which reads those files and generates fragments and puts them in a list. These fragments hold an ArrayList which contain...
I have the following problem: The content of my fragments is dependet on the content of xml files. So in the onStart method of my FragmentActivity I call a method which reads those files and generates fragments and puts them in a list. These fragments hold an ArrayList which contains all the views to display in this fr...
android|android-viewpager|fragment
0
2015-02-17T10:46:25.793Z
2,015
2
10
1
547
1
938
51
3
0
false
false
false
false
false
false
zero
28,560,167
SimpleAdapter on HashMap does not work properly
<p>I have a JSON like this:</p> <pre><code> [{"message":"Hello","id":1,"name":"Hello"},{"message":"James","id":2,"name":"Smith"}] </code></pre> <p>Which I use to populate an <code>ArrayList&lt;HashMap&lt;String, String&gt;&gt;</code> in order to diplay the json's items into a ListView. <br /> This is the code I am cu...
I have a JSON like this: [CODE] Which I use to populate an ArrayList<HashMap<String, String>> in order to diplay the json's items into a ListView. This is the code I am currently using: [CODE] This code almost work, but not the way I would. It display only the name field. How can I modify it in order to display both th...
java|android|json|android-listview|simpleadapter
0
2015-02-17T10:46:44.140Z
2,015
2
10
1
218
5
346
47
5
2
true
false
false
false
false
false
zero
28,560,202
Android - get X and Y coordinates of dynamically drawn bitmaps
<p>I am making an Android app with OpenStreetMaps (using osmdroid). On this map, markers are shown (the long/lat and other data for these markers are retrieved from a json file). These markers are OverlayItems and are all shown correctly on the MapView. The X and Y coordinates for these bitmaps are calculated by getti...
I am making an Android app with OpenStreetMaps (using osmdroid). On this map, markers are shown (the long/lat and other data for these markers are retrieved from a json file). These markers are OverlayItems and are all shown correctly on the MapView. The X and Y coordinates for these bitmaps are calculated by getting a...
android|bitmap|osmdroid|android-bitmap
1
2015-02-17T10:48:35.163Z
2,015
2
10
1
800
1
1,230
62
4
2
true
false
false
false
false
false
low
28,560,205
FAILURE: Build failed with an exception. While uploading apk with Savillians-gradle and Triple-T gradle
<p>I have try with <a href="https://github.com/bluesliverx/savillians-gradle" rel="nofollow"><strong>savillians-gradle</strong></a> and <a href="https://github.com/Triple-T/gradle-play-publisher" rel="nofollow"><strong>Triplet-T</strong></a> for publishing my apk to Play Store with gradle. However i got same issue in b...
I have try with savillians-gradle and Triplet-T for publishing my apk to Play Store with gradle. However i got same issue in both way. I guess i might doing something wrong or there might be issue from both library. I don't know where is the problem. I have configure everything as mention there i can able to build grad...
android|gradle|google-play|app-store|android-gradle-plugin
0
2015-02-17T10:48:40.273Z
2,015
2
10
1
1,783
1
3,194
103
5
0
false
false
false
false
false
false
zero
28,560,282
Automatically tag with git and gradle during Android assemble
<p>I saw that a lot of people is using git tag to read the version during build and then assemble however i would like to do the opposite. </p> <p>I already have my version name and code dynamically created in my build.gradle and i want to tag the current git commit every time i do an assemble (which changes the versi...
I saw that a lot of people is using git tag to read the version during build and then assemble however i would like to do the opposite. I already have my version name and code dynamically created in my build.gradle and i want to tag the current git commit every time i do an assemble (which changes the version name) wit...
android|git|gradle|versioning
2
2015-02-17T10:52:07.543Z
2,015
2
10
1
331
0
606
61
4
1
true
true
false
false
false
false
low
28,560,318
Dialog and Asynctaks behaviour
<p>I have a doubt with the behaviour of an Asynctask with a Dialog that I'm doing. Basically I have a field in my preferences. If it's true I must show a Dialog with 3 fields fill them and after that I append this info into a file that I have and send it through FTP. If it's false I send directly my File using FTP. </p...
I have a doubt with the behaviour of an Asynctask with a Dialog that I'm doing. Basically I have a field in my preferences. If it's true I must show a Dialog with 3 fields fill them and after that I append this info into a file that I have and send it through FTP. If it's false I send directly my File using FTP. [CODE]...
android|android-asynctask|ftp|android-alertdialog
0
2015-02-17T10:54:23.600Z
2,015
2
10
1
32
0
570
30
4
1
true
true
false
false
false
false
zero
28,560,320
Integration of Apple Pay With Android App Via NFC(Wallet Payments)
<p>I am working on a POS wystem, which runs on android tablet(NFC enabled), in this app a feature is there to pay with Google wallet, which is working fine, now client has a new requirement to integrate apple pay also, i searched on Google and haven't find any good links that explain it is feasible or not, i am curious...
I am working on a POS wystem, which runs on android tablet(NFC enabled), in this app a feature is there to pay with Google wallet, which is working fine, now client has a new requirement to integrate apple pay also, i searched on Google and haven't find any good links that explain it is feasible or not, i am curious, i...
android|nfc|payment-processing|applepay
0
2015-02-17T10:54:27.953Z
2,015
2
10
1
1,294
1
471
66
4
0
false
false
false
false
false
false
zero
28,560,327
Receive SMS Messages only when Activity in Running
<p>I am building an Android application that receives SMS messages and displays them from a particular gateway/sender.</p> <p>The problem is, if I declare the receiver in the AndroidManifest file, it keeps receiving messages from everyone and at all times, even when the app is paused/closed. This causes a force crash ...
I am building an Android application that receives SMS messages and displays them from a particular gateway/sender. The problem is, if I declare the receiver in the AndroidManifest file, it keeps receiving messages from everyone and at all times, even when the app is paused/closed. This causes a force crash of the app ...
android|crash|sms|manifest
1
2015-02-17T10:54:53.883Z
2,015
2
10
1
904
2
609
50
4
2
true
false
false
false
false
false
low
28,560,405
Google In App Billing does not return any items
<p>I am desperate enough now to post my very first question here :-) I did an App and published it to Google Play Store. I also have an In-App product that is a monthly subscription. The funny thing now is that buying the product from the App works fine, but when i do a queryInventoryAsync i do not get any product info...
I am desperate enough now to post my very first question here :-) I did an App and published it to Google Play Store. I also have an In-App product that is a monthly subscription. The funny thing now is that buying the product from the App works fine, but when i do a queryInventoryAsync i do not get any product info in...
android|in-app-purchase|in-app-billing
1
2015-02-17T10:58:59.373Z
2,015
2
10
1
405
2
705
47
3
2
true
false
false
false
false
false
low
28,560,460
Android create custom NumberPicker widget
<p>I'm using some <code>simvot</code> number picker in application, I want to create custom widget for that and use in all of project, now i'm create this files but I can not set any value for custom widget.</p> <p>My attributes:</p> <pre><code>&lt;declare-styleable name="CNumberPicker"&gt; &lt;attr name="maxValu...
I'm using some simvot number picker in application, I want to create custom widget for that and use in all of project, now i'm create this files but I can not set any value for custom widget. My attributes: [CODE] My Custom NumberPicker widget: [CODE] My defined widget into xml: [CODE] how to set value defined into xml...
android
0
2015-02-17T11:02:14.693Z
2,015
2
11
1
3,507
1
331
41
1
3
true
false
true
false
false
false
zero
28,560,551
Call C++ executables insider Android
<p>I am now porting a linux C++ library to Android using JNI. The library porting itself is very straightforward, and I have built a C++ library that can be invoked by Android via JNI. Now my problem is to verify that the library works well in Android environment as well. In the linux development environment, some unit...
I am now porting a linux C++ library to Android using JNI. The library porting itself is very straightforward, and I have built a C++ library that can be invoked by Android via JNI. Now my problem is to verify that the library works well in Android environment as well. In the linux development environment, some unit-te...
android|c++|java-native-interface
0
2015-02-17T11:06:34.993Z
2,015
2
11
1
29
1
863
36
3
1
true
false
false
false
false
false
zero
28,560,555
Gravity and wrong size
<p>There was a problem with box2d. I wanted to add to the already existing game physics , but ran into problems. First, the game world I draw with calculation</p> <pre><code>public Hero(float x, float y, int width, int height) { this.width = width; this.height = height; position = new Vector2(x, y); v...
There was a problem with box2d. I wanted to add to the already existing game physics , but ran into problems. First, the game world I draw with calculation [CODE] the body of the hero falls from the standard setting, but the body box that I have added to the test behaves very strangely. Question number 1. Why box2d box...
java|android|libgdx|box2d
1
2015-02-17T11:06:50.063Z
2,015
2
11
1
88
1
750
22
4
4
true
false
false
false
false
false
low
28,560,560
Unable to start activity when calling activity from fragment using intent?
<p>03-04 16:37:49.476: E/AndroidRuntime(29739): FATAL EXCEPTION: main 03-04 16:37:49.476: E/AndroidRuntime(29739): Process: com.h3ck.choicemobileno, PID: 29739 03-04 16:37:49.476: E/AndroidRuntime(29739): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.h3ck.choicemobileno/com.h3ck...
03-04 16:37:49.476: E/AndroidRuntime(29739): FATAL EXCEPTION: main 03-04 16:37:49.476: E/AndroidRuntime(29739): Process: com.h3ck.choicemobileno, PID: 29739 03-04 16:37:49.476: E/AndroidRuntime(29739): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.h3ck.choicemobileno/com.h3ck.ch...
android
-2
2015-02-17T11:07:04.670Z
2,015
2
11
1
206
2
2,947
74
1
1
true
false
false
false
false
true
negative
28,560,605
Layout Design layout x next to layout y
<p>I have some problem designing a layout</p> <ol> <li>Layout has Textview and another customlayout</li> </ol> <p>I want to put customLayout Next to Textview. It looks quite simple but my problem is when textview size increases the custom layout is going out of view .</p> <p>when it reaches end Textview should elips...
I have some problem designing a layout Layout has Textview and another customlayout I want to put customLayout Next to Textview. It looks quite simple but my problem is when textview size increases the custom layout is going out of view . when it reaches end Textview should elipsize and customlayout must come next to i...
android|android-layout
1
2015-02-17T11:09:14.543Z
2,015
2
11
1
52
2
350
39
2
0
false
false
false
false
false
false
low
28,560,610
How to execute a runnable after another in Android for a set of buttons?
<p>I'm pretty new to Android. My goal is to make each of those 4 buttons flash red (and back to default) one after another. button0 flash for a second, and switch back to default color. button1 flash for a second, and switch back to default color. etc... till full sequence is finished. For that reason I created a loop...
I'm pretty new to Android. My goal is to make each of those 4 buttons flash red (and back to default) one after another. button0 flash for a second, and switch back to default color. button1 flash for a second, and switch back to default color. etc... till full sequence is finished. For that reason I created a loop for...
android|loops|button|handler|runnable
0
2015-02-17T11:09:22.877Z
2,015
2
11
1
1,412
1
893
72
5
1
true
false
false
false
false
false
zero
28,560,636
Navigation bar disappears
<p>The navigation bar is fixed at the header and when the menu icon is clicked the entire container slides to right</p> <p>This is my main page</p> <p><img src="https://i.stack.imgur.com/Igh2b.jpg" alt="main page"></p> <p>When the menu icon is clicked <img src="https://i.stack.imgur.com/yFczo.jpg" alt="Home page whe...
The navigation bar is fixed at the header and when the menu icon is clicked the entire container slides to right This is my main page When the menu icon is clicked But when the page is scrolled down and clicked on menu icon, the header disappear This is my css code [CODE] This is my html code [CODE] My jquery [CODE]
javascript|android|jquery|html|css
0
2015-02-17T11:11:05.517Z
2,015
2
11
1
77
2
317
25
5
3
true
false
false
false
false
false
zero
28,560,651
Can't find Custom App APK
<p>I built my first android app a few months ago and had it installed on my phone. After a few weeks I lost the app from my Windows PC because of a new installation of Windows. Now I need the app and it still resides inside the phone but I can't seem to find the apk file anywhere! I have tried looking in the app and ap...
I built my first android app a few months ago and had it installed on my phone. After a few weeks I lost the app from my Windows PC because of a new installation of Windows. Now I need the app and it still resides inside the phone but I can't seem to find the apk file anywhere! I have tried looking in the app and app-p...
android|apk
0
2015-02-17T11:11:55.453Z
2,015
2
11
1
819
1
421
25
2
0
false
false
false
false
false
false
zero
28,560,692
Place ImageView over Button android
<p>I am trying to place an ImageView over a Button using RelativeLayout. Here is my xml:</p> <pre><code>&lt;RelativeLayout android:layout_width="0dip" android:layout_height="match_parent" android:layout_margin="10dp" android:layout_weight="0.50" &gt; ...
I am trying to place an ImageView over a Button using RelativeLayout. Here is my xml: [CODE] Here is the image screenshot: As you can see, the ImageView's src image is not visible. However if i change the button at the back to an ImageView, the image of the top ImageView is visible. Please refer below.. Changed xml: [C...
android|android-layout
27
2015-02-17T11:14:17.737Z
2,015
2
11
1
22,518
10
404
35
2
2
true
false
true
true
true
false
high
28,560,722
Can't set method setResult in RecyclerAdapter
<p>In my app i need to start <strong>RecyclerAdapter.class</strong> and wait for result, but i cant write lines setResult and finish:</p> <pre><code>public static class MyViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { TextView title; ImageView icon; public MyViewHolder(View ...
In my app i need to start RecyclerAdapter.class and wait for result, but i cant write lines setResult and finish: [CODE] how i need to write it?Please help me and explain what i do wrong I need to setResult from all my cases EDIT: [CODE] }
android|android-recyclerview
7
2015-02-17T11:16:16.600Z
2,015
2
11
1
6,865
5
239
45
2
2
true
false
true
false
false
false
medium
28,560,730
How to scroll first row and last row in centre on the basis of selection in list view in android
<p>I have implemented bringing selected item in centre of list view visible position but first row and last row is not coming in centre of list view .In On item click of Click List View Can anybody tell How to move first and last row moving centre </p> <pre><code> int h1 = cardList.getHeight(); ...
I have implemented bringing selected item in centre of list view visible position but first row and last row is not coming in centre of list view .In On item click of Click List View Can anybody tell How to move first and last row moving centre [CODE] Thanks
android
1
2015-02-17T11:16:44.007Z
2,015
2
11
1
32
0
258
96
1
1
true
true
false
false
false
false
low
28,560,766
Same App listed twice in Device aministrators list of Settings
<p>Developed device admin application which just after installed &amp; go to settings --> Security --> Device administrators same app is listed twice. This happens only in Nexus 6 Android 5.0 device. </p> <p>Manifest declaration</p> <pre><code> &lt;receiver android:name="com.app.android.lock.DeviceLockRecieve...
Developed device admin application which just after installed & go to settings --> Security --> Device administrators same app is listed twice. This happens only in Nexus 6 Android 5.0 device. Manifest declaration [CODE] P.S: when enabled device admin by the app, only one is checked in settings --> Security --> Device ...
android|android-5.0-lollipop|device-admin|android-settings
1
2015-02-17T11:18:29.160Z
2,015
2
11
1
176
0
373
62
4
1
true
true
false
false
false
false
low
28,560,781
Proguard error android - oauth.signpost.signature
<p>I am getting this error during build process </p> <pre><code>Warning:oauth.signpost.signature.OAuthMessageSigner: can't find referenced class org.apache.commons.codec.binary.Base64 </code></pre> <p>Its a jar file inside the libs folder that i am using inside my project. </p> <p><strong>Edit:</strong> Here is the ...
I am getting this error during build process [CODE] Its a jar file inside the libs folder that i am using inside my project. Edit: Here is the build.gradle file but it doesn't include all the dependencies. I have some jars in the libs folder as well. [CODE] Update: i am able to build the project now using the rules spe...
android|proguard
0
2015-02-17T11:19:07.490Z
2,015
2
11
1
585
1
415
49
2
2
true
false
false
false
false
false
zero
28,560,810
how to simulate touch at specific location providing (x,y) coordianates in android programatically
<p>I am developing an android app which involves connecting mouse to your phone wirelessly so that,we can operate our phone using mouse...i've implemented almost everything but couldnt figure out the way to simulate human touch at (x,y) coordinates..this question has been asked few times but for other languages.. (java...
I am developing an android app which involves connecting mouse to your phone wirelessly so that,we can operate our phone using mouse...i've implemented almost everything but couldnt figure out the way to simulate human touch at (x,y) coordinates..this question has been asked few times but for other languages.. (javascr...
android|monkeyrunner|monkey
-1
2015-02-17T11:20:31.670Z
2,015
2
11
1
1,146
2
538
98
3
0
false
false
false
false
false
true
negative
28,560,816
How to add 2 listeners to map?
<p>i'm developing my first app and i created the following map viewer activity:</p> <pre><code>public class MapViewer extends Activity implements OnInfoWindowClickListener, ClusterManager.OnClusterClickListener&lt;MyItem&gt; { private GoogleMap map; private LatLng defaultLatLng = new LatLng(X, Y); private...
i'm developing my first app and i created the following map viewer activity: [CODE] As you can see i set a listener to map object [CODE] that adds or removes clusters on markers groups, according to zoom level. Now i would add a listener that checks if user moves on map within some bounds: [CODE] But it doesn't work. I...
android|dictionary|listener|cluster-computing
1
2015-02-17T11:20:52.270Z
2,015
2
11
1
160
1
511
30
4
3
true
false
false
false
false
false
low
28,560,819
Unity: https post and get requests using JSONObj
<p>i'm. i'm making a 2d game for android device in unity and i'm having difficulties to understand the all WWW and http Forms thing.</p> <p>what i basically need to do is post request to https url and get access token using credentials(username and password) and i must use JSON object.</p> <p>in more detailed way i n...
i'm. i'm making a 2d game for android device in unity and i'm having difficulties to understand the all WWW and http Forms thing. what i basically need to do is post request to https url and get access token using credentials(username and password) and i must use JSON object. in more detailed way i need to : 1.create 2...
c#|android|json|https|unity3d
1
2015-02-17T11:21:06.743Z
2,015
2
11
1
4,491
1
1,117
48
5
0
false
false
true
false
false
false
low
28,560,823
Replacing a Fragment with another fragment after a asynctask
<p>I have been spending so many hours on this, and I just want the quickest solution without altering my whole project. I have a Fragment1 that calls another fragment2 for data acquisition purposes. after fragment2 has acquired the data needed it then replace itself with fragment3 that shows all those data gathered. ...
I have been spending so many hours on this, and I just want the quickest solution without altering my whole project. I have a Fragment1 that calls another fragment2 for data acquisition purposes. after fragment2 has acquired the data needed it then replace itself with fragment3 that shows all those data gathered. My fr...
java|android|android-fragments|android-asynctask
0
2015-02-17T11:21:11.900Z
2,015
2
11
1
778
1
1,262
60
4
3
true
false
false
false
false
false
zero
28,560,827
How to hide android application folder from being shown in file explorer?
<p>My android application creates a folder in sd card which has some json files and html files inside.I want to hide this from the user so that the resource file remains safe.How to do this ??I saw that prefixing the folder name with "." will help.But this is not working for me.</p>
My android application creates a folder in sd card which has some json files and html files inside.I want to hide this from the user so that the resource file remains safe.How to do this ??I saw that prefixing the folder name with "." will help.But this is not working for me.
android|android-sdcard
0
2015-02-17T11:21:21.380Z
2,015
2
11
1
807
0
276
73
2
0
false
true
false
false
false
false
zero
28,560,834
Creating an activity that overlays all other activities
<p>I am trying to figure out how to create an Activity that overlays all other Activities within my Android app.</p> <p>What I mean by this is for the app to launch, then have the default launching activity show and then have a bar at the bottom of the screen that is always displayed, even if you call another activity...
I am trying to figure out how to create an Activity that overlays all other Activities within my Android app. What I mean by this is for the app to launch, then have the default launching activity show and then have a bar at the bottom of the screen that is always displayed, even if you call another activity to start t...
android|android-activity
0
2015-02-17T11:21:46.157Z
2,015
2
11
1
122
1
441
55
2
0
false
false
false
false
false
false
zero
28,560,847
Polygon fillColor issue
<p>I'm using Polyline feature for drawing on the map I stored polylines into array in drawing :</p> <pre><code>List&lt;Polyline&gt; polylines; </code></pre> <p>And After draw finished, i want to convert this polylines to polygons , but some times Polygons does not fill with color,</p> <pre><code>for(Polyline polyline...
I'm using Polyline feature for drawing on the map I stored polylines into array in drawing : [CODE] And After draw finished, i want to convert this polylines to polygons , but some times Polygons does not fill with color, [CODE] This problem will occur when my polyline is like this image :
android|google-maps-android-api-2
3
2015-02-17T11:22:07.147Z
2,015
2
11
1
232
0
290
23
2
2
true
true
false
false
false
false
low
28,560,890
Eclipse shortcut to always run the same project
<p>My workspace is made up of one Android project and several other projects that my Android project depends upon. The Android project is the only project out of my workspace that I want to <strong><em>Run</em></strong>.</p> <p>How can I always <strong><em>Run</em></strong> the Android project without having to do </p...
My workspace is made up of one Android project and several other projects that my Android project depends upon. The Android project is the only project out of my workspace that I want to Run . How can I always Run the Android project without having to do Right click -> Run as.. but instead by pressing a shortcut no mat...
android|eclipse
0
2015-02-17T11:28:10.693Z
2,015
2
11
1
128
5
356
47
2
0
false
false
false
false
false
false
zero
28,560,920
How to properly create/use .aar or .jar file from multple java classes ( single package) to use it in different projects in android studio
<p>i tried many different approaches, to use my library in different projects but in each on of them i failed miserably.</p> <p>here is what i did for the last try,</p> <p>I created a module / android library</p> <p>and inside of them i created my Java Classes (3 to be exact)</p> <p>this is my moduke's gradle</p> ...
i tried many different approaches, to use my library in different projects but in each on of them i failed miserably. here is what i did for the last try, I created a module / android library and inside of them i created my Java Classes (3 to be exact) this is my moduke's gradle [CODE] and than i builded my application...
java|android|jar|android-studio|aar
3
2015-02-17T11:29:40.460Z
2,015
2
11
1
616
1
818
138
5
2
true
false
false
false
false
false
low
28,560,932
Trouble synchronizing Filters
<p>I have implemented several <code>Filter</code> Types and they work fine when I select them in an <code>AlertDialog</code> (MultiChoice) and I save this selection for future uses, i.e. if I again open the app but in this case, it just works the last filter. </p> <p>The aspect looks like this</p> <p><img src="https:...
I have implemented several Filter Types and they work fine when I select them in an AlertDialog (MultiChoice) and I save this selection for future uses, i.e. if I again open the app but in this case, it just works the last filter. The aspect looks like this The selected criteria are fine saved and the selection in Aler...
android|filter|android-alertdialog|android-adapter
0
2015-02-17T11:47:19.297Z
2,015
2
11
1
24
1
1,297
29
4
4
true
false
false
false
false
false
zero
28,560,941
Return result value with RxJava
<p>I want to implement click debouncing with RxJava in WebView.<br> For example, user clicks links rapidly, i want to treat only first click.<br> First, i thought <code>throttleFirst</code> is good for this.</p> <pre><code> private final BehaviorSubject&lt;String&gt; urlLoading = BehaviorSubject.create(); private ...
I want to implement click debouncing with RxJava in WebView. For example, user clicks links rapidly, i want to treat only first click. First, i thought throttleFirst is good for this. [CODE] throttleFirst works fine, but I noticed I can't return value this way. Question: How can I return value with RxJava when methods ...
android|rx-java|rx-android
1
2015-02-17T11:47:56.287Z
2,015
2
11
1
2,660
1
469
31
3
1
true
false
true
false
false
false
low
28,560,981
Unexpected End Of Stream error in reading xml data with InputStream of HttpsURLConnection
<pre><code>public class MainActivity extends Activity { Button submit; EditText textBox; String xmlRequest = "&lt;Request&gt;&lt;Merchant_Number&gt;111111111111&lt;/Merchant_Number&gt;&lt;Terminal_ID&gt;001&lt;/Terminal_ID&gt;&lt;Action_Code&gt;05&lt;/Action_Code&gt;&lt;Trans_Type&gt;N&lt;/Trans_Type&gt;&lt;POS_Entry...
[CODE] Above is my complete source code for XML HTTP Request. I getting XML response from the server. But I am getting the below error in logcat whenever I send request to the server. Can anyone help me on this issue. Any help will be appreaciated. Here is the log: [CODE]
java|android|xml|xml-parsing|xmlhttprequest
1
2015-02-17T11:55:11.080Z
2,015
2
11
1
879
1
272
89
5
2
true
false
false
false
false
false
low
28,561,010
How to use setOnItemClickListener and setOnTouchListener both in Gridview case?
<p>I have a <code>GridView</code> and I want to access SD card on clicking it. I have used <code>setOnItemClickListener</code> for access a memory card folder. I also want to access element <code>setOnTouchListener</code> for drag and drop.</p> <pre><code>grid1.setOnItemClickListener(new OnItemClickListener() ...
I have a GridView and I want to access SD card on clicking it. I have used setOnItemClickListener for access a memory card folder. I also want to access element setOnTouchListener for drag and drop. [CODE] public class MyClickListener implements OnTouchListener { [CODE] }
android|ontouchlistener|onitemclicklistener
0
2015-02-17T11:57:12.163Z
2,015
2
11
1
528
1
272
79
3
2
true
false
false
false
false
false
zero
28,561,060
How to get hash key for Facebook Login on Android
<p>Creating an app with Xamarin that has Facebook Login. On Android I create a hash key, add it to the developers console on Facebook, but I get an error when I login with my app that the hashkey does not match the one at facebook. Do anyone know how to either get the hash key from my app trough code with C# or why the...
Creating an app with Xamarin that has Facebook Login. On Android I create a hash key, add it to the developers console on Facebook, but I get an error when I login with my app that the hashkey does not match the one at facebook. Do anyone know how to either get the hash key from my app trough code with C# or why the ha...
android|facebook|hash|xamarin
0
2015-02-17T12:05:17.457Z
2,015
2
12
1
973
1
378
49
4
0
false
false
false
false
false
false
zero
28,561,076
Android HttpUrlConnection not working
<p>Basically, I'm trying to connect to a web interface through an Android App. </p> <p>I managed to send commands to the form successfully using HttpClient. However, I want to accomplish this using HttpUrlConnection as recommended here <a href="http://android-developers.blogspot.com/2011/09/androids-http-clients.html"...
Basically, I'm trying to connect to a web interface through an Android App. I managed to send commands to the form successfully using HttpClient. However, I want to accomplish this using HttpUrlConnection as recommended here http://android-developers.blogspot.com/2011/09/androids-http-clients.html with the intention of...
java|android|httpclient|httpurlconnection
2
2015-02-17T12:06:36.337Z
2,015
2
12
1
15,739
6
528
37
4
1
true
false
true
true
false
false
low
28,561,103
Translate android app made by Adobe Air
<p>After further researches, I found that for making android apps with AIR technologies, it requires AIR runtime on the android device, and Flash professional CS5, then, youn can publish your flash project under apk extension, even install it as an android application automatically after publishing it, if you are conn...
After further researches, I found that for making android apps with AIR technologies, it requires AIR runtime on the android device, and Flash professional CS5, then, youn can publish your flash project under apk extension, even install it as an android application automatically after publishing it, if you are connecti...
android|actionscript-3|flash|air|translation
0
2015-02-17T12:08:03.810Z
2,015
2
12
1
142
0
982
39
5
0
false
true
false
false
false
false
zero
28,561,163
SettingsFragment().findPreference always returns NULL
<p>I always get NULL, when I try to find a Preference in the SettingsFragment.</p> <p><strong>Settings Fragment</strong></p> <pre><code>public static class SettingsFragment extends PreferenceFragment { public final String KEY_PREF_SERVER_IP = "key_pref_server_ip"; @Override public void onCreate(Bundle savedInstance...
I always get NULL, when I try to find a Preference in the SettingsFragment. Settings Fragment [CODE] } So, when I try EditTextPreference muffin = (EditTextPrefernce) new SettingsFragment.findPreference(key) I always get NULL. What's the trick? Edit: Here the whole code now: [CODE] preferences.xml [CODE] [CODE] I think ...
java|android|sharedpreferences
0
2015-02-17T12:11:20.627Z
2,015
2
12
1
2,137
2
348
53
3
4
true
false
false
false
false
false
zero
28,561,174
Gets the list of all partition that I have in my phone + copy them
<p>How can I get a list of all the partition that i have in my phone (Block list) + copy them outside my phone to external memory card.</p> <p>I can implement this with ADB or #C.</p> <p>Thanks,</p>
How can I get a list of all the partition that i have in my phone (Block list) + copy them outside my phone to external memory card. I can implement this with ADB or #C. Thanks,
c#|android|adb
-2
2015-02-17T12:11:57.120Z
2,015
2
12
1
1,478
2
177
66
3
0
false
false
false
false
false
true
negative
28,561,231
How to extract +93 form Country name with code
<p>I want to extract country code(+93) ex: <code>Afghanistan(+93)</code> here i need only <code>+93</code> how to remove Country name and braces </p> <pre><code> final Bundle GetData = getIntent().getExtras(); String rl = GetData.getString("countrycode"); for (String country : rl) { StringTo...
I want to extract country code(+93) ex: Afghanistan(+93) here i need only +93 how to remove Country name and braces [CODE]
java|android
-3
2015-02-17T12:15:12.963Z
2,015
2
12
1
100
2
122
46
2
1
true
false
false
false
false
true
negative
28,561,248
Using Map Quest/OpenStreetMap for Routing - Trying to avoid certain markers when drawing the path to destination
<p>Hi I'm trying develop an application for android using OpenStreetMap/MapQuest. is it possible to manipulate the routing feature in order to avoid certain streets while drawing the path to destination, with these streets defined using map markers? if so do you know any tutorial or sample code that could give me an id...
Hi I'm trying develop an application for android using OpenStreetMap/MapQuest. is it possible to manipulate the routing feature in order to avoid certain streets while drawing the path to destination, with these streets defined using map markers? if so do you know any tutorial or sample code that could give me an idea ...
android|openstreetmap|mapquest|maproute
0
2015-02-17T12:15:57.733Z
2,015
2
12
1
389
1
380
112
4
0
false
false
false
false
false
false
zero
28,561,263
How to convert bitmap to File without compressing
<p>I need to download image from a server and save it in its original quality, but apparently the after saving the image is compressed and the quality decreased.</p> <p>I use android-async-http library for http requests. my code of the request and saving file:</p> <pre><code> AsyncHttpClient client = new AsyncHtt...
I need to download image from a server and save it in its original quality, but apparently the after saving the image is compressed and the quality decreased. I use android-async-http library for http requests. my code of the request and saving file: [CODE]
android|android-async-http
4
2015-02-17T12:16:28.430Z
2,015
2
12
1
3,484
1
257
49
2
1
true
false
true
false
false
false
low