Need Help to use webservices APIs for the following scnerio

by faritha » Wed, 15 Apr 2009 02:06:08 GMT


Sponsored Links
 Could you please help me with the sample code for the following
scnerio:

- I want to load one url but i want to mask all the contents of that
url. And i have to provide my text boxes and buttons.
- If user clicks My button i have to supply that click action to url
button loaded in webview background to do appropriate action.

For example:
- I have to load gmail.com but i don't want UI of gmail.com. I will
provide my simple UI with username,password and login button.
- If user clicks my UI button i will pass that to gmail.com "login"
button. It has to open the inbox of that particular user without
displaying the login screen of gmail.com

Could you please help which class and APIs i have to use for this
example? Please help me with the sample code...

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Show soft keyboard in AlertDialog with a WebView inside

Hi there,

I know the issue has been extensively discussed before, but none of
the suggested solutions seem to work on my problem. So here it is: In
my Android app I create an AlertDialog that has a WebView inside. The
WebView loads a webpage that requires the user to log in (Twitter for
authentication purposes). However, when I click on text fields in the
WebView, soft keyboard does not appear. I am aware of the issue in
general (http://code.google.com/p/android/issues/detail?id=7189);
however, in my case the suggested solution does not seem to work since
I use an external website, and not just a simple XML form.

The perfect solution would be if the keyboard appeared when the user
clicked on the website's text fields. However, having the keyboard
appear together with the AlertDialog would also work. Any ideas?

Thanks!
Ernesta

-- 

2. How to use obtainStyledAttributes to get a String from a Theme

Hi,

I have declared a styleable like this:

<declare-styleable name="Test">
    <attr name="myString" format="string" />
    <attr name="myNumber" format="integer" />
</declare-styleable>

I'm using this with the following java code in a constructor of a
custom View class:

TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.Test,
defStyle, 0);
String str = a.getString(R.styleable.Test_myString);
int num = a.getInt(R.styleable.Test_myNumber, -1);
a.recycle();
Log.d("Test", "string: " + str);
Log.d("Test", "number: " + num);

It works as expected when I set the attributes in the layout xml, and
it also works when I define a style with these attributes and use the
style from the layout xml. But somehow I cannot get it to work when I
set the attributes in the theme:

<style name="MyTheme" parent="@android:style/Theme">
    <item name="myString">foobar</item>
    <item name="myNumber">12345</item>
</style>

When I do this, I get the following output:
string: Avbryt
number: 12345

So obtaining the value of the number works, but the string contains a
bogus value, which seems to be the value of an random android string
resource. I tested this on the emulator 2.2 and 2.3.3.
I also tried to use a package prefix <item
name="com.mypackage:myString"> but it does not make any difference.

Why can't I access a string the same way like a number? Am I doing
something wrong? How can I get the value of the string?

I'm doing this because I want to use a custom font from the asset
directory.

Any help is appreciated.

-- 

3. Inserting batch of contact entries is slow

4. CallLog.Calls filter by date

5. Share the theme among all the projects in android

6. internet connection problem using emulator. can you help??

7. Racoon is not initiating a connection with x509 L2TP/IPSec