I have an activity that calls a custom view when a button is pressed. The custom view runs fine until I try to add an ImageView to it. I have tried this in my xml that is called in my main activity with setContentView:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
andro...
This question is basic for Java, not android. If the code that is inside listener interface does some complex calculations, what happens for callbacks given by the system. In Android accelerometer readings are collected in onSensorChanged(SensorEvent event).
If I want to process "event" data and that its called around 30-40 times a secon...
I can't get the thumb img through MediaStore..
Are there some tips?
...
Can one buy a used device with no phone service and use it for testing apps?
Second question: can wifi be used on such a phone, to connect to the internet?
...
Hi,
I have a enable and disable button. When this button is enable, user can launch my application normally. But when the button is in disable state, I don't want to start the application, that is the launcher activity should not start, but the icon for application will be there.
When we click on the icon for application to launch it s...
Hi it is possible in android to show pop-up dialog from background running service?
and answer is positive than how can i do that
Thnaks.
...
I have created two classes: Example1 and Example2, which extends activity.
Example1 contains a UI of buttons, while Example2 contains UI of TextEdit. I want to call Example2 when a button is clicked, so this code is in an onclick method
Intent i = new Intent();
i.setClassName("com.a.ui", "com.a.ui.Example2");
startActivity(i);
So I am...
I've been attempting to utilize the plurals resource with Android but have not had any luck.
Here is my resource file for my plurals:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<plurals name="meters">
<item quantity="one">1 meter</item>
<ite...
I have one year of experience in programming. After getting laid off in cuts I managed to get a job in telecommunications planning. I'm good at my new job and don't want to leave it but I miss programming. I'd like to be able to code in my free time (which is about 4 hours every evening 7 days a week.)
I can code pretty well in C#, reas...
Does anyone of you friendly coders know how to change the text on the return key of the android keyboard. I am catching the return event of an EditText element to start an action. So I would like to show the user, that he can start the action with that key. Some applications do that. E.g. they replace the key with a search symbol.
I am ...
hi,
I am working on an Android Project where I need to split screen which functions similar to MS Word split screen. This should provide same functionality as Msword split screen of desktop application.
The context can be like this . I am having a EditText which will be some 100 px width and 200 px height. When the screen is split like w...
Hello,
I am fetching an XML data from the web using HTTP GET/POST.
Right now i have done it in simple way (i.e. without threaed).
According to the below link, i tried to implement it with Progress bar dialog with Thread
http://www.ceveni.com/2009/09/sample-progress-bar-dialog-in-android.html
But how do i come to know about the finish ...
Can we use j2me packages in android development? I just mean to say like for eg: sax parser is supported in both the platforms. So can we code the business logic in j2me platform and use that class in android platforms and vice-versa?
Just like this other components which are common in both platforms?
...
I am relatively new to Android but have some experience with Java. This may be more of a Multithreading/handler issue as apposed to Bluetooth.
I am writing an Application that has multiple layouts with buttons. I have set up onClickListners for the buttons. Some buttons will change the activity and bring up a new layout with new button...
Hi,
I am working on an Android Application where I need to open an MS_Word foramt file.How can this be possible in android? The context is the file should be viewed in the same way as if we view msword document in desktop.can anyone help me in sorting out this issue?
Thanks in Advance,
...
Hello! I have get a correct login using HttpRequest to work. It prints the correct html form of the logn page in my toast (just for testing). Now I want to set a cookie from that request. How is this possible?
If it necessary I can provide some code.
I already know about the CookieManager class, but how can I successfully do it?
Thank...
Hi All,
I want to show Error(log) messages from catch block. How can I show all messages(stack) on a single Screen, so that user can get an idea ?
Thanks...
...
i have a WebView in my app with wrap_content width and height
before i use webview.loadData , the width and height of the it was 0 ,
after i load a url(or i use webview.loadData) , it'll display a web page.
my question is , how can i clear the webview to recover it back to the original state, just as
before it loadData??
...
hi,
I need to find the list of DLNA complianted devices in my network from my Android application.
I am using the API's from org.cybergarage.
They are aavilable in Java, I want to make it Android capable i.e. Porting APis
Any help on this.
Thanks
...
hi, I am working on Android projects. I need to use a background thread that should use handlers. My doubt is when we are using a new thread , what is the need to have handler associated with it . I am very much confused of using Handlers in my program. I did n't find any good tutorials or sample programs that deal with Hanlders.Can any ...