android

Odd compiler error, Davlik error 1 from java.net.DatagramPacket.class

Hello, I suddenly started getting an unusual compiler error and is it making impossible to do any testing, I am running Eclipse with the plugin and compiling on the 2.1 version. [2010-08-11 00:29:38 - PeriodTrackerv2] trouble processing "java/net/DatagramPacket.class": [2010-08-11 00:29:38 - PeriodTrackerv2] Attempt to include a core...

Forcing keyboard input on Buttons inside extended Preference

While extending Preference and making your own view by overriding onCreateView(), how can you make widgets inside selectable by keyboard only? For example, let's say that you have two buttons in your preference, upon pressing DPAD_DOWN, for 4 consecutive times, you'd like PreferenceActivity to behave like: 1.) select your preference (fr...

Camera intent destroy/change relative layout and table layout.

Hi to all, In my application i am calling camera intent and capturing image successfully. But after finishing of camera intent, it comes to actual activity it destroy/change complete layout(Which is relative and table layout).Here is the images of before and after calling of camera intent. when i type anything in editText box then ...

PackageManager.getInstalledPackages() returns empty list

I am running into a very strange situation when using the PackageManager.getInstalledPackages() method. The first time I launch my activity I get a valid list of all the installed packages. But the second time I launch my activity I get an empty list... What could possibly be causing this? I am using this code to get the list: List pk...

Can anybody please help me to know how to get translucent scrollbar in android where the underlying text can be seen through the scrollbar?

Please refer below for sample. http://www.spiegel.de/fotostrecke/fotostrecke-34358-7.html#backToArticle=572913 ...

Continuous moving graph in android

I have developed a application which works like ECG Graph I have developed this using canvas and path. Once the plotting of lines are completed in my screen, it will start again from the 0 position. But the problem is that it gets starting overlapped. So how can i clear that particular position? ...

Creating ListView which contains Layout

Hi, I want to create a ListView which contains a RelativeLayout which contains an ImageView and another Layout (Linear). Linear Layout Contains some TextView. How can I create this ListView?? Thanks Deepak ...

How to send an Email using our own own API?

Hello, I am using this code to send a mail. final Intent mail_Intent=new Intent(Intent.ACTION_SEND); mail_Intent.setType("plain/text"); mail_Intent.putExtra(Intent.EXTRA_EMAIL,new String[]{toText.getText().toString()}); mail_Intent.putExtra(Intent.EXTRA_SUBJECT,subjectText.getText().toString()); mail_Intent.p...

SAving pictures which needed by my application

Hi, My app needs to download picture from internet time to time and store them to show when it runs according to the selection. how can i download the pictures and what is the way to store them in my application folder or etc. i m trying to use file output stream on application local folders such as assets and drawable but so far no luck...

Android - Needed help in Layout Tricks

As i have referred this site for Layout Tricks. overthere one attribute is declared as android:layout_weight="1". so my confusion is regarding android:layout_weight. where is the exact use of android:layout_weight ? Where should we use android:layout_weight ? pls anybody focus their knowledge. Thanx ...

how to find OS of Mobile generally?

hi, I could not find out OS of Lot of mobiles? for example MicroMax , Videocon Mobiles in India, they did not give that details in their specification, what os will it have? why they did not give that details? but JVMs are there...any help please? ...

How to start an Activity from a Service?

Is it possible to start an Activity from a Service? If yes, how can we achieve this? ...

Are images in Android global?

This is a strange problem -- may be not a problem. Before the last step to finish writing a application, I would use icon to replace any image. That is, all the things like <ImageButton android:id="@+id/top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android...

saving images to res folder

how do i save images to res folder or drawable folder in android? ...

Unable to configure the wifi open network programmatically android?

Hi, I have written code for adding open network to wifi configured list.It adds the open network to configured lists and displays the same SSID's in Wifi Settings.but it adds the same network with same name extra but it doesn't shows any open network When i press on the second on alert shows with Security WEP the following text i observ...

How to properly set an android intent with the SHOW_OR_CREATE_CONTACT action?

I would like to use the internal Contact activity to create a new Contact. Here is the code: Intent i = new Intent(); i.setAction(ContactsContract.Intents.SHOW_OR_CREATE_CONTACT); i.addCategory(Intent.CATEGORY_DEFAULT); i.setData(Uri.fromParts("tel", "12345678", null)); i.putExtra(ContactsContract.Intents.EXTRA_F...

What video/audio codec settings for playback on Android and iOS

What codec settings will produce valid videos for playback on Android (videoView) and iOS UIWebView)? ...

why app throws android.permission.REBOOT SecurityException?

I write an app,it uses android.os.PowerManager.reboot() method, and I add in AndroidManifest.xml. however,when I run hte app, it always throws folloeing exception: java.lang.SecurityException: Neither user 10039 nor current process has android.permission.REBOOT. at android.os.Parcel.readException(Parcel.java:1247) at android.os.Parcel....

how can i format date or double values when persisting objects using simple xml

I am using simple xml framework from http://simple.sourceforge.net/. How can i format the date or double values? I see a function called transform but how do I apply it all double and date fields in my class? ...

Problem in sending an email in android

Hi. I have a query. In my application, on click of a button, I start an intent to send email. I have set the "To" list, "Subject" and attachment in my coding. Now my problem is that when the email screen is shown, user should not be able modify the email contents nor should he be allowed to remove the attachment. Only he sould be able to...