Hi ,
I was trying to get hold of 2D graphics in Android.
As a example i want to implement a custom drawable and show it in my Activity
I have defined a customized drawable by extending from Android drawable as mentioned below
myDrawable extends Drawable {
private static final String TAG = myDrawable.class.getSimpleName();
private...
I am using VideoView to display a video in my app. The problem is that, once the layout gets created there is lag of almost 10-30 seconds before which the video starts to play. I can see in LogCat that the video is buffering during the lag.
Is there a way I can minimize this lag, or tell MediaPlayer to play the video sooner?
Thanks
Ch...
Possible Duplicate:
Android framework
I've few questions on Android Framework. Can someone please answer
them
What does an Android Framework
do? What is it's job?
What are these managers -
Activity Manager, Location Manager
etc? Are they APIs or libraries?
I heard that the definition of
a framework is - a set of librar...
Hi all,
I have an image which is of rectangular dimension, eg 30 x 60 pixels
I want to rotate this image around the bottom center of the image, i.e
i want to set the pivot in the above example as (15, 60 )pixel.
I am using a drawble and matrix to get this done,
whatever i try i always end up rotating around center of the image.
C...
I've done my research and found plenty of people launching the sms application from an intent, The thing is that people usually tend to do this only for outgoing messages.
I'm currently displaying a Unread Sms Count on my app, but it seams I cant get the proper intent to work.
On every try I get the same result, It launches the app but...
I've got plenty of these lying around, and I'm wondering if I'm going to face any trouble - or performance problems.
I have method A:
MyClass monkey;
...
if(monkey != null) {
...
}
Or method B:
boolean hasMonkey; //This is set to TRUE when monkey is not null
MyClass monkey;
...
if(hasMonkey) {
...
}
On a functional level, they b...
Hello all,
When running a thread in Android/Java:
public void run()
{
while (running)
{
if (moreTasksToExec())
{
task = getNextTask()
task.exec();
}
}
}
Is it OK to let it run and not using a semaphore to block while no work needs to be executed?
I am only using one thread, so I need no ...
Is there any way to Linkify a specific TextView that is contained within a ListView? I tried using android:autoLink="all" but that didn't work. I was getting an out of context error.
Important also to note: the ListView is my second view in the ViewFlipper.
I have also tried:
View mItemView = mAdapter.getView(2, null, ...
I'm writing an application which connects to a back office site. The backoffice site contains a whole slew of JavaScript functions, at least 100 times the average site. Unfortunately it does not load them, and causes much of the functionality to not work properly. So I am running a test. I put a page out on my server which loads the Fire...
I'm wondering how vector drawing in Android with the Shape class may resemble another vector drawing standard.
Since Shape is a Drawable, and Drawables are usually defined as XML, it sounds a lot like the vector drawing commands in SVG.
My question is this: Has anybody created an XSLT transformation, or other mechanism, for converting ...
I am using ZipInputStream and BufferedOutputStream to decompress a file from a zip archive in Android 1.6. The code runs without exceptions, but when I check the existance of the file, I can't find it. I am just looking for the filename. Is there an application directory that stores this file? Do I need to specify a directory?
...
I have a question about postDelayed. The android docs say that it adds the runnable to the queue and it runs in the UI thread. What does this mean?
So, for example, the same thread I use to create my layout is used to run the Runnable?
What if I want it as an independent thread that executes while I am creating my layout and defining ...
Hello everybody,
I'm new in Android development and I have the next question/problem.
I'm playing around with the MediaPlayer class to reproduce some sounds/music. I am playing raw resources (res/raw) and it looks kind of easy.
To play a raw resource, the MediaPlayer has to be initialized like this:
MediaPlayer mp = MediaPlayer.cre...
I'm trying some stuff out in Android and I'm stuck at when trying to cast a class in another .apk to my interface. I have the interface and various classes in other .apks that implement that interface. I find the other classes using PackageManager's query methods and use Application#createPackageContext() to get the classloader for that ...
Hey Everyone,
I have limited SQL background, basically a small amount of manipulation through HTML and mostly with pre-existing databases. What I am trying to do is set up a database that will store time information for bus routes. So basically I have different routes with stops for each route and then a list of times that the bus arriv...
My app uses a WebView widget to load ads from Google AdManager. AdManager gives you an HTML snippet, which is 90% javascript to call their server for the image to load.
I put their html snippet into a string and use String.format to add in several variables that AdManager requires.
I enable javascript on the WebView (webView.getSetti...
how can I get my fixed width site to always appear "fully zoomed in" on webkit (iphone and android) browsers?
right now, it looks fine on an iPhone and "too small/zoomed out" on an Android phones that have higher resolution.
i'm trying this viewport:
<meta name="viewport" content="user-scalable=yes, width=device-width, target-density...
I am trying to display the name, phone number and email of a contact and letting the user update any of the values. For some reason, the value of email is overwritten on all three fields when my code is executed. There's got to be a glitch in the logic here, but I cannot figure it out.
Here's my method which updates the Contacts URI.
p...
I've got the following code making SSL work with my HttpClient connections and such
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("https",
SSLSocketFactory.getSocketFactory(), 443));
HttpParams params = new BasicHttpParams();
SingleClientConnManager mgr = new SingleClientConnMana...
Hi there, my android application is handling a large database of bus passage time and we would like to allow others application to be able to display certains bus passage time. We would like to use a content provider to do that. Most example seems to be about using an SQL database, but... we use some custom text file. I was wondering wha...