Questions tagged as 'android'

1
answer

"stretch" row in tablelayout

Well, I'm programming android, and building layouts for my app. My problem: I can not make the layout of my app fit vertically to different devices. My xml code: '' ' <TableRow android:id="@+id/tableRow2" android:layout_width=...
asked by 20.10.2014 / 13:26
1
answer

How to get a Drawable id by name

I tried this way more is returning 0 try { String nome_foto = itens.get(position).nome_foto; int drawableId = context.getResources().getIdentifier(nome_foto, "drawable", context.getPackageName()); Log.e("",""+drawableId...
asked by 05.02.2015 / 21:18
1
answer

How to change the text color of ActionBar menu items?

In addition to changing the text of the menu item, how do I change the background of the menu that is suspended? In this case, which only appears when clicking on the 3 balls.     
asked by 16.04.2015 / 02:45
1
answer

3G PhoneGap application increases to almost 220MB. Could you explain?

I'm developing my first PhoneGap application for Android and I come across something that scared me a lot. The application, which until now has only interface, no business rule has increased its size drastically. Initially it was only 3mb, howev...
asked by 26.08.2014 / 04:42
1
answer

How do I make my app use the default "Gallery" to get the path of an image?

I've seen some apps that use the standard Android Gallery to grab images from a particular folder, how do I do that? Is it possible for some Android to come without the Gallery app? Or does the person remove?     
asked by 21.08.2014 / 07:25
1
answer

Picking String values and separating them

Ex: (TextView) result="text1; text2; text3; text4"; I want to get them in sequence and do it in the following way, so I can then manipulate them separately. String tx1="texto1"; String tx2="texto2"; String tx3="texto3"; String tx4="t...
asked by 18.08.2014 / 01:14
2
answers

Is there any risk when disconnecting the android device during debugging?

I do not know why, but I was a bit afraid to think that once my ADT is in constant contact with my Device (Nexus 5) when disconnecting during an exchange of information, there may be damage. Is it just like a pendrive when disconnecting abruptly...
asked by 08.08.2014 / 15:40
1
answer

java.lang.RuntimeException: Unable to start activity ComponentInfo java.lang.NullPointerException

Hello, I'm new to android, and when I try to run my app, these errors: 08-15 18:10:49.828: E/AndroidRuntime(1769): FATAL EXCEPTION: main 08-15 18:10:49.828: E/AndroidRuntime(1769): java.lang.RuntimeException: Unable to start activity Componen...
asked by 17.08.2014 / 01:51
2
answers

Refresh layout from a button

On the main screen of my app there are two buttons, one to the right and the other to the left, symbolizing the previous and next months, in them I call an attempt to reload the page with the values of the previous / next month, but it does not...
asked by 03.03.2015 / 21:48
2
answers

ListView does not display data loaded from DB

I have a query screen, where it should display the items already registered. Only it does not display. First, I thought it was because the information was not being written to the BD, but they are. But, I do not think why they are not loaded ......
asked by 17.07.2014 / 14:26