Questions tagged as 'android'

1
answer

Android how to optimize a large string of ifs

I would like to know how to optimize a large string of ifs so that the code is more efficient and readable. My Android application uses version 2.3.3 (API 10), in this application I have an activity responsible for displaying user account inf...
asked by 20.01.2016 / 17:25
1
answer

Android studio installing the application over another application

I've been using the same apk to perfect it, I went to the folder and gave a ctrl c ctrl c and started to edit the new apk. I changed the name, the name of the folders, I changed some screens, but when I emulate on the phone it installs over what...
asked by 01.06.2016 / 20:00
1
answer

PositiveButton and other alertDialog buttons on android are disabled, how to solve?

I have in my little project a alertDialog , which is called to give some options to the user. Everything was working, until the buttons ( positiveButton , negativeButton and neutralButton ) disabled in all my AlertDia...
asked by 14.01.2016 / 12:32
1
answer

Help between communication between clients WEBSERVICE REST - JSON - JAVA

I'm developing an Android application where devices can communicate with each other through messaging (instant messaging). My application is already connecting to the Web Service (I developed it using NetBeans) and the Web service connecting...
asked by 22.02.2016 / 14:36
1
answer

implementing onClick

My problem is this: I have a string Array with the name phrases, where I have several phrases. And I would like to show them all in the same%% of each by pressing the "next" button. Any tip will be well received thank you.     
asked by 04.01.2016 / 09:40
1
answer

Customizing themes for Android API 9 and 10

I have an App that runs from API 9 to 23 of Android, however the text colors are different from the colors set, the correct Blue Toolbar with white text. The problem occurs only in APIs 9 and 10. Andthestyleisasfollows:<!--Baseapplication...
asked by 05.01.2016 / 13:08
1
answer

View BD SQLite on Android Device Monitor

I'm trying to view my BD Sqlite in Android Device Monitor, but in the folder data , I do not see any files to export so I can not see my DB. What can I do wrong?     
asked by 08.01.2016 / 23:30
1
answer

Slow Motion in Android View Pager Transition

I'm developing an Android application, one of which requires a ViewPager of images, these images will automatically transition from one to another in a time interval I set. This is already done. The problem is that when you move from one im...
asked by 07.01.2016 / 23:21
1
answer

Start class Fragment of another Class Fragment

I have a class GuiaDaCidade . public class GuiaDaCidade extends Fragment { View rootView; @Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { r...
asked by 24.12.2015 / 23:10
2
answers

Read XML file with only one parent node

I need to import an XML file that has the following structure: <?xml version="1.0" encoding="UTF-8"?> <Registos>3</Registos> <Socios> <id>1</id> <nome>Paulo</nome> <email>pa...
asked by 26.12.2015 / 13:43