Questions tagged as 'android'

1
answer

List files from internal memory in the ListView

I want to create an app that when clicking on the "Lists" option, create a list using ListView based on the files found in a particular folder (path)     
asked by 29.04.2015 / 00:03
1
answer

Through this code is there any way to change the background color of each listView item

This is how I am doing the listing I would like to know if it is possible to put each item with a different color for example 1 to white and another to black ArrayAdapter adapter = new ArrayAdapter<>(MainActivity.this, android.R.layout.s...
asked by 13.07.2015 / 16:07
1
answer

How to create a sidebar menu with hamburger icon?

I'm starting to use Intel XDK now and I have a question regarding the development of menus, I would like to create a side menu with the burger icon and after opening the menu, it becomes a X to close. Here are some examples: lin...
asked by 10.04.2015 / 06:43
2
answers

resultCode returns RESULT_CANCELED on onActivityResult

I have two activities and a fragment . Fragment ProfileFragment is embedded within Activity % with%, that is, when I call ProfileActivity , it automatically opens this fragment in the center of your screen with two fields:...
asked by 24.02.2015 / 00:24
1
answer

Android: how to group buttons?

Hello, in my application I have a textview with a question and then I have 3 buttons which are the possible options for the answer. Can anyone tell me how I can group these 3 buttons to have a sort of Group Buttons, is there any way I...
asked by 16.03.2015 / 17:43
1
answer

How to change the content of a spinner by making the selection in another spinner?

I tried to use the following code but the error form.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {...
asked by 18.03.2015 / 20:36
1
answer

Accessing android Wifi settings (IPV4)

I'm accessing the Wifi settings of Android, and it's accusing like I'm looking for an IPv6 default IP. I would like to know if there is any WifiConfiguration property to define as IPV4     
asked by 17.03.2015 / 19:15
1
answer

Android: Exception when executing Toast.makeText

Hello, I'm getting an exception when Toast.makeText is executed: public void onClick(View view){ (...) CharSequence text1 = "Please insert a number."; int id= view.getId(); (...) else if(id== R.id.buttonOK){ if(edit...
asked by 02.03.2015 / 18:33
1
answer

WebService (AsyncTask) only works with Debug?

I'm making my Android application load data from a WebService. In it, I'll load date data into a Spinner, and when it's complete, the same dates will load other types of data into a ListView, but for now I'm using an example to see how it got an...
asked by 04.12.2015 / 11:56
1
answer

Does GCM deliver the messages in real time?

I have two applications that need to communicate and I do not want to be doing requesting to the server asking if it has something new, I wanted something that went from one app to another or from the server to the app. But I do not know if the...
asked by 17.07.2015 / 02:53