So I have an ImageView sitting on a FrameLayout. I want to move this image view when user taps on it and drags it somewhere. This is what I tried to do:
FrameLayout.LayoutParameters params = new FrameLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT);
params.setMargin(marginLeft, marginTop, 0, 0);
view.setLayoutParams(params);
This does ...
Hi ,
I did log in form in android ,
How to add the event functionality for this login form,
Now login form display,
I want to add the java code ,
That is When user enter his username and password ,
Get the value into variable and page redirect and system should show , you have enter this username and password ..chk the scrren s...
For example, I want to parse the string below:
Tue Sep 28 18:02:24 GMT+08:00 2010
And I use the pattern for the SimpleDateFormat:
new SimpleDateFormat("EEE MMM dd HH:mm:ss zzzzzzzzz yyyy");
But I keep getting the ParseException.
How to fix this?
Thanks a lot.
...
I have a TextView which I fill with text from a string resources in strings.xml. The string resource contains < li > elements to create a bullet list inside the TextView. My problem is that I want to control the indention of lines in the bullet list that span over more than one line. Default the text isn't indented past the bullet so it ...
I'd like to test an application on a variety of screen configurations so I know that it'll work (and the layouts will look right) on tablets and other oddly sized devices. Does anyone have any tips or configuration settings that would be helpful?
...
I have spent the last two days trying to figure this out. I have a service that I am creating to practice with services and IPC. I have checked the code against the book that I am reading it is almost exact only difference being identifiers. I get a ResourcesNotFoundException thrown in the mainwindow.java file. It is thrown when I tr...
I have one edittext
EditText et1=(EditText)findViewById(R.id.EditText01);
when i want to clear edittext i use et1.setText("");
but if i have to clear edittext one by one character from the last
for this i have no solution can u pls give me solution
...
I want update my widget every seconds. So I use Service and Alarm Manager, but it doesn't update exactly every second.
This my log list:
09-15 11:16:08.876: INFO/REPEAT(2850): time=11:16:08am
09-15 11:16:09.970: INFO/REPEAT(2850): time=11:16:09am
**09-15 11:16:11.025: INFO/REPEAT(2850): time=11:16:11am
09-15 11:16:11.978: INFO/...
Hi, there
While I was diving into the Android kernel. I had a question about audio device driver.
People say that...
- Android uses ALSA audio driver.
- HAL layer is C/C++ library
- ALSA driver runs in user space, not in kernel space
Then, questions:
1. What is the Audio Drivers(I guess it's ALSA driver) in the picture below?
ALSA dri...
My application has the following components:
2 Activities
A Service and a
BroadcastReceiver
Whenever the user updates the system time, my broadcast receiver receives the Intent.ACTION_TIME_CHANGED. Now when this happens I want to reschedule a Handler in my Service. How do I bind to a Service within my BroadcastReceiver?
...
what is the use of xmlns:android ? could you explain little bit more? Thanks in advance
Note :
xmlns:android
Defines the Android namespace. This attribute should always be set to "http://schemas.android.com/apk/res/android".
...
Hi friends,
i want to mount sdcard programmatic,how can i check?
...
I'm happy reading and writing to a pre-set file, and could manually populate a listview, but I'm hoping there is an official(or not) filebrowser I missed, or other more elegant solution to present the user with a directory listing, and let them select a file.
...
Hello all,
I was wondering what the feasibility would be for creating a custom Android build and deploying it on a currently available device on the market. Are there any documents or guidelines that describe the process?
Thank you in advance,
Sammy
...
here is the deal.
i was looking over this code about extending an ImageView:
http://marakana.com/forums/android/examples/98.html
and i was wondering how can i add the new View to an existing xml layout file, along with some other views.
already i did this inside my main linear layout:
<FrameLayout android:id="@+id/FrameLayout01" an...
HI all,
I want to develop an fake call application in android. After clicking on button i have to receive a fake call with in a given time period. Is there any way to do this..
any clues or sample code...? Please let me know..Thanks in advance.
...
Is there any need to use something other than a http POST for small files? (<1mb)
With large files anyone know of an existing lib to handle them (and preferably show a progress bar in a dialog)
...
Hi ,
Basically i dont know the mobile file / setup exe extension and all ,
Now i did some basic sample, it working fine in my simulator,
Before i proceed , i want to test these codes in my mobile , the code working or not,
What should i do now ,
I want to install my sample application into my iphone, how to install this applicati...
can any body give example of multicolumn custom list view in android
Thanks
...
I have created a custom view by extending Relative Layout and it looks like this:
The layout for the view:
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="wrap_content"
android:layout_height="wrap_content" android:gravity="ce...