android

Overriding Home button for a Car Home replacement app

I have been working on a replacement for the stock Car Home app for a bit, and I am completely stumped on how to override the Home button so that my app will be brought back to the foreground whenever the phone is docked. This is the way that Car Home works, so there must be a way. It seems that BroadcastReceivers won't work, because th...

Android: Autoscrolling HorizontalScrollView

I'm using the following code to simulate tabs and since there are more tabs that width can accommodate user can scroll left or right to make a tab button visible. It all works, however I also provide user with ability to fling between tabs by swiping finger left or right on the tab contents. Again - it works. But when I fling to the righ...

Android Scaled Drawing to ImageView

Newbie question, so there's probably a simple answer to this problem. I'm drawing some simple shapes using canvas.drawCircle(), canvas.drawLine() etc. I originally copied the code from: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/DrawPoints.html Which extends a View and draws directly...

setContentView gives an exception

In my android app I set this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN ); Then my touch screen event doesnt’ work any more. Further Explaining, I have a button and onClick it changes the contentView by setContentView(R.layout.choose_play...

Setting up Android application for Analytics and tracking

Tracking events and setting up Analytics for Websites seems easy. You create an account with one of the Analytics service providers like Google. They give you javascript code that you embed in your pages (whichever event you wish to track) and voila..you're done. I have written a native application for Android phones, which is actually...

calendar code required

Where can I get code to generate a calendar which displays dates in a proper grid? Or can I get code for a calendar app so that I can make a few changes to it? It will help ma save a lot of time. ...

How To Store Incoming Call in Android

Hi Guys,I want to know is there any way to store an incoming/Outgoing voice call in android. AnyIdeas Regards Rakesh Shankar.P ...

Im unable to install ADT on Eclipse 3.5

Im having a problem regarding installing ADT plugin on Eclipse. the error prompt was An error occurred while collecting items to be installed session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=). Unable to read repository at http://download.eclipse.org/re...

Referencing an XML string in an XML Array (Android)

in arrays.xml <string-array name="my_items"> <item>My item 1</item> <item>My item 2</item> <item>My item 3</item> </string-array> in strings.xml <resources> <string name="item1">My item 1</string> <string name="item2">My item 2</string> <string name="item3">My item 3</string> </resources> I would like to reference the s...

Android full Screen flag gives an exception

In my android app I set this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN ); Then my touch screen event doesnt’ work any more. Further Explaining, I have a button and onClick it changes the contentView by setContentView(R.layout.choose_pla...

Android Emulator Screen Size

What do we need to change in the android source code to get the resolution of 1360x768 working in an emulator? The following changes let me start an emulator 1280x720 project bionic/ diff --git a/libc/kernel/arch-arm/asm/memory.h b/libc/kernel/arch-arm/asm/memory.h index c1137a7..743b6ef 100644 --- a/libc/kernel/arch-arm/asm/memory.h +...

httpclient ssl certificate on android

Hi all I have some troubles with ssl using httpclient on android i am trying to access self signed certificate in details i want my app to trust all certificates ( i will use ssl only for data encryption). First i tried using this guide http://hc.apache.org/httpclient-3.x/sslguide.html on Desktop is working fine but on android i still g...

Suggestions for Android project guidlines

Im trying to prepare a set of guidelines and project template for my future Android projects. Im already implementing the basic MVC architecture modularity. Im trying to have add more advanced level of design to my Android projects to make my development easier and maintainable. For example can someone suggest me a way to make Intent ca...

Searchable item enabled?

Hi, How do programmatically see in android that a searchable item (search provider) is enabled or not? This would be good to know so you could tell your users with a message that they should activate it in order to see related search suggestions. Best regards, Anders Tieto ...

How to access gallery -> Camera Media videos and display it in List on button Click?

i am beginner in Android app development i am working on a app which lists the videos and images and uploads them from android phone to the windows server, Button Listvideo = (Button) findViewById(R.id.Listvideo); Listvideo.setOnClickListener(this); help me out with the listing images and videos........................ ...

How to get an Android widget's size after layout is calculated?

I have a layout which specifies sizes of widgets in relative dimension, for example: <LinearLayout ... layout_height="fill_parent"> <ImageView ... layout_height="wrap_content" /> <TextView ... layout_height="120dp" /> </LinearLayout> Immediately after onCreate, I want to know how much is the height of the ImageView. How to d...

How do i pause frame animation using AnimationDrawable?

How do i pause frame animation using AnimationDrawable? ...

Getting Base Station Information in Android

Hello Everyone! Is there anyway to get the base station and/or cellId information of the subscriber in Android? ...

How do I know that the scrollview is already scrolled to the bottom?

I have a scrollview and I only want an event to happen if it's already scrolled to the bottom but I can't find a way to check if the scrollview is at the bottom. I have solved it for the opposite; only allow the event to happen if it's already scrolled to the top: ScrollView sv = (ScrollView) findViewById(R.id.Scroll); if(sv.getScr...

how to serially load widget in android application

I'm working on one application which uses widget approach. one HTML page is there which includes 6 widgets which will be added in the page at runtime. for each widget one xml and js file is there... when page start loading ... it's tries to load all the widget at same time .. and unable to load all the widget . like if there are ...