Tagged Questions
1
vote
1answer
46 views
Android 7 inch tablet 480x800
I'm developing an android application and I have this folders in res
layout - for handstets
layout large - for handsets with big resolution
layout-sw600dp - for tablets 7 inch with 640x1080 ...
1
vote
1answer
27 views
Get All ImageView from custom Listview
Could anybody explain me, how can i get each ImageView in loop. I want save state into the file, when i click BACK button?
Maybe other solution?
Thx!
activity_view_list.xml
<?xml version="1.0" ...
0
votes
1answer
46 views
Designing The ListView in DrawerLayout
I have a DrawerLayout and its working well. I'd like to have this design the one highlighted by orange. The selected item on the ListView will have this background effect. What are good approaches to ...
0
votes
2answers
61 views
Invalid int when parsing integer with “+”
I just got this error today for one of my android applications.
Device nexus 7 with android 4.2.2
java.lang.NumberFormatException: Invalid int: "+5"
at java.lang.Integer.invalidInt(Integer.java:138)
...
0
votes
0answers
26 views
Keep Android ImageButton aspect ratio
I've looked at previous questions on this topic and none of them seem to work.
I have a horizontally oriented linearlayout with two (should-be) perfectly square ImageButtons in them. The linearlayout ...
1
vote
0answers
52 views
Please Help! I am new to android development
I am quite new to android and SQLite.
I would greatly appreciate it if you could pardon my ignorance.
What i am trying to do is create a grid scorecard.I would like the first cell of the top ...
1
vote
1answer
30 views
Continuous Animation Android
I want to make an image move on the Y axis downwards but then come back in the initial position not by redrawing but also by animation. How can I do this? I have tried 2 ways: creating 2 separate ...
-1
votes
5answers
39 views
Unable to retrieve the value of textfield
i am the newbee in Android Development.
I had developed an app contains a login, the credentials must be passed in the text field and later it will call a webservice.
I am facing the issue as user and ...
0
votes
1answer
40 views
how to call activity from application class
i have got an controller which is inherited by application, i have also set it in manifest file. now i want to call a activity from here. i'm not getting how to do?
Here how i'm trying, but it fails
...
0
votes
2answers
59 views
Android dynamically add custom component to LinearLayout
i want add a custom component on a LinearLayout whenever i touch a button.
This is my code:
LayoutInflater vi = (LayoutInflater) ...
-9
votes
4answers
73 views
How can I get the current Day-Month-year? [closed]
How can I get the current Day-Month-year, like :
8-August-2013
number-word-number
i try :
Date now = new Date();
String format = new SimpleDateFormat("yyyy-MM-dd").format(now);
0
votes
2answers
33 views
How to programtically set EditText background to default in Holo theme Api 11-17 Android
Since I was using
EditText et=new EditText(this);
locationEditText.setBackgroundDrawable(et.getBackground());
but setBackgroundDrawable(Drwable) is deprecated in Api 16 as can't use ...
0
votes
1answer
38 views
moving focus to next textBox when user finishes typing text
I have 4 textBoxes.
When a user touches a textBox, i save the current text aside int tmpText
and set the new text to empty string.
The user then type a new text.
If the user hadn't typed ...
1
vote
3answers
35 views
Change Layout when Thread finish
I want to change the layout when a thread ends, but I don't understand the bug; for example:
res/layout:
-mainView.xml
-threadView.xml
MainActivity.java
protected void firstThread() {
...
1
vote
4answers
130 views
NullPointerException: name == null
I'm developing an Android application that uses Fragments. I got this error.
Caused by: java.lang.NullPointerException: name == null
What does name == null mean? Here's the full log
08-04 ...