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. Never getting onLocationChanged (in emulator)

I have yet to test this on a real phone.
My problem is this service is supposed to send output to a log, when
the location is changed.
It isn't working, I don't know why. AndroidManifest has permission for
fine, coarse, and mock locations.
I sent locations using  (telnet localhost (port), geo fix 12.2321
12.23232) etc AND via eclipse controls.
The service runs the whole time, but the log never receives info from
the onLocationChanged command, but it DOES receive info from onStart,
onCreate, startUpdates, etc.


My service is started via:
Intent myLocService = new Intent(this, FmiLocationManager.class);
startService(myLocService);

-------------------------

Service:
package org.findmydroid;

import android.content.Context;
import android.content.Intent;
import android.app.Service;
import android.location.LocationManager;
import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import android.location.Criteria;

public class FmiLocationManager extends Service implements
LocationListener
{
        private LocationManager locationMan;
        private LocationListener locationLis;

        public void onCreate()
        {
                Log.e("fmi","fmi fmilocationmanager created");
        }
        public void onStart()
        {
                startUpdates();
                Log.e("fmi","fmi fmilocationmanager started and updates 
started");
        }
        public void onStop()
        {
                stopUpdates();
                Log.e("fmi","fmi location updates stopped");
        }

        public void startUpdates()
        {
                Log.e("fmi","fmi startUpdates in locationmanager called");
                locationMan = (LocationManager) getSystemService
(Context.LOCATION_SERVICE);
                if (locationMan == null)
                        Log.e("fmi","fmi locationManager is null, bad 
context?");
                String provider;
                if(locationMan.isProviderEnabled(LocationManager.GPS_PROVIDER))
                        provider = LocationManager.GPS_PROVIDER;
                else
                {
                        Criteria bestCrit = new Criteria();
                        bestCrit.setAccuracy(Criteria.ACCURACY_FINE);
                        bestCrit.setAltitudeRequired(false);
                        bestCrit.setCostAllowed(false);
                        bestCrit.setSpeedRequired(false);
                        bestCrit.setBearingRequired(false);
                        provider = locationMan.getBestProvider(bestCrit,true);
                }
                locationMan.requestLocationUpdates(
                    provider,
                    12000,
                    1,
                    this);

        }

        public void stopUpdates()
        {
                if(locationLis != null)
                        locationMan.removeUpdates(locationLis);
        }


        @Override
        public IBinder onBind(Intent intent) {
                return null;
        }


        public void onLocationChanged(Location loc) {
        Log.e("fmi","fmi new location received");
        /////////////////////////////?THIS IS WHAT ISN'T EVER
CALLED////////////////////
            }
        }
    }

    public void onProviderDisabled(String provider) {
    }

    public void onProviderEnabled(String provider) {

    }

    public void onStatusChanged(String provider, int status,
        Bundle extras) {
    }
}
--~--~---------~--~----~------------~-------~--~----~

2. Clickable Desktop Widget

Hi guys,

i'm implementing a simple Widget that toggles on/off a service on my
App, I've extended a AppWidgetProvider class and succesfully defined
the xml <appwidget-provider> file.

The question is, how can i register a OnClikListener so i know when
the user clicks the widget on the desktop (once its already placed on
it) the OnUpdated(), OnEnabled(), OnDisabled() events are being
correctly called, but i don't know how to register a OnClickListener
sinces there's no activity and therefore i cannot call findViewById().

How is it done for most of the toggle widgets? how have you guys
implemented it?

Thanks in advance
--~--~---------~--~----~------------~-------~--~----~

3. Is it possible to load multiple shared library in Android using NDK

4. How can implement EditText on android app widget

5. getdatafilepath(String) from ContentResolver

6. liste activity, selected item not shown

7. How to unsubscribe from the e-mail list