android

Incompatible types in string

Resources r1 = getResources(); String[] refrigerant = r1.getStringArray(R.array.refrigerant); if (refrigerant == "") { if (et1.getText().toString() == refrigerant[i3] { flag = true; } I got the error incompatible operand types String[] and string please give me solution. ...

OnItemClickListener Problem.

Hi, i'm creating a lazy load of image in ListView. i was followed the tutorial from this source which i found in Stack Overflow It was run successful. But, when i join the code together with my project then i face a problem. the program was no perform the OnItemClickListener :( my project have a TabHost and it had 5 tab contents. 2 co...

How to change the font of the Android console in Eclipse?

Hello, The question is given, I want a smaller font to display these lines in the Android Console window (NOT the Logcat window). I've changed the other console's font (cvs, svn, ...) in the preferences, but this window still has same font size. I want this window to be much smaller and put it on the side of my screen, not on the bottom...

Alternate SMS Sender

Is there any way to hook a plugin in the default SMS messaging application so that it invokes our code for sending SMS. Can our app become an alternate SMS sender for default Messaging sending operations. ...

android icon menu in application

i would like to show a menu with icons with text below every icon in android the menu should fill the entire activity like the launcher menu eg: http://farm4.static.flickr.com/3060/2775168927_e94f2ae79e.jpg i want the user to choose from a set of options (static options) with icons i was thinking about a grid view with buttons or ima...

WebView vertical scrolling issue

I have scrollview tag with in it few layouts are placed and particularly one layout have web view to zoom images,when i zoom the webview content its getting zoomed but the problem here is there appears both scrolls along vertical and horizontal scrolls for the webview,but it only scrolls along horizontally when scroll it vertially the wh...

Android - Read an XML file with HTTP GET

I need to explore for my project use of web services on Android. I know that there is no official library for XML - RPC web service. But there is for REST XML and i need to test it. I would like to read XML on my web page (Where i have to pass username and Password) from Android with HTTP GET. OR Suppose, i follow This link, then...

How to put Preference into a View?

I need to make a Screen with Header(Will contain ImageView and TextView) and Footer(Navigation Menu, will consists of ImageView), in the between I need to have Preference screen with all the default action like scrolling and setting preferences. Which approach should I take to achieve this? Right now, I have made a View with FrameLayou...

Java regex help needed to split string please! How to ignore an empty line?

Hi, I'm a complete noob to regex and I need help with splitting a string. I am inputing the following data 665 11% R 1 908K 388K fg root top 61 1% S 42 152404K 29716K fg system system_server 38 0% S 1 840K 340K fg root /system/bin/qemud 114 0% S 16 120160K 19156K fg radio com.andro...

Layout issue - how to start an activity without moving certain UI elements?

I'm trying to implement tab buttons bar and a navigation bar in my android application. The problem is, that I would like the navigation elements to persist. When starting a child activity, the nav bar moves. How can I make these two elements "non-movable"? ...

Can data stored in iPhone App be taken from sqlite or Preferences list file?

I am planning to store a password in my Native app (Android and iPhone). Should I store them after encrypting it ? or can I store it without any encryption? Are they really secure? ...

Issue Invoking a context menu when an onClickListener is applied to an activity.

Please find the code sample below: public class Abc extends Activity implements OnClickListener{ private ListView displayList; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mainlayout); displayList =(ListView)findViewById(R.id.addressbo...

how to change images with timer

HI all i hv to images say image1 and image2 i want to display both images on timer, like only one image should be visible at a time, both images are overlapped, mean, image1 is over image2.. so, if i use timer, i can be able to hide and show one image at a time. How to do this. i hope i am clear wid my problem, .regards ...

How to use Two ListView in one screen?

Hi Everybody, I want to use two list view in one ListActivity. How can I do this? Please help me to create two different list view in one ListActivity. Thanks Deepak ...

Convert Json Array to normal Java Array

Is there a way to convert JSON Array to normal Java Array for android ListView data binding? ...

Easiest way to render this component?

I'm currently developing an android app that is going to render posts from an online forum. This is the layout I had in mind for rendering the posts: http://data.fuskbugg.se/skogsturken/component.png My question is what the easiest way is to accomplish the above layout? The hardest part is the text area that should be able to display...

Android&Javadoc: @inheritDoc is not working

Every time i used the @inheritDoc tag in javadoc, I see the following warning (example): @inheritDoc used but getCount() does not override or implement any method. Does anybody know how to avoid that? I'm sure that the methods implement/override another method, because I also set the @override tag, and Eclipse doesn't complain about t...

Physical size of font in points in Android

Hello. I have two devices - HTC Tattoo and Sony Ericsson Xperia X10. One has 145 DPI, the other 245 DPI. When I specify font size for a TextView in points, like this: textView.setTextSize(TypedValue.COMPLEX_UNIT_PT, 6.5f); I get different physical size of text on these two devices. On 245 DPI, the text is barely readable. Now, "pt"...

Download ics file in android?

I use <data android:mimeType="text/calendar" /> in my manifest file it doesn't supports to open ics file in Android default email application.Is there any other way to open ics file? I use <data android:mimeType="*/*"> But it supports to open all file format.I need to restrict my application to open ics file only.I am new to android.Can ...

Change Android widget size on upgrade

Hi, I have written a widget with size 74x74 in version 1. In version 2 I want to change the size to 148x74. I want this to happen during upgrade, is this possible? or does the user have to remove and add the widget again? ...