Google Maps - Traffic View

by javame_android » Wed, 09 Dec 2009 18:42:57 GMT


Sponsored Links
 Hi,

I would like to know how to use Traffic View or how to get the traffic
details from GPS. Have I to use Traffic View only or is their any
other way that can let me know about Traffic in my route.



Thanks & Regards
Sunil

--



Other Threads

1. CursorAdapter performance

Hello everyone, I'm new to android development. I'm using cursor adapter for 
large data in my list view. Everything works well except when I try to 
scroll 1000 lines, the application freezes and stop responding. Everything 
backs to normal after 3 seconds. What's going on there?

Is there anything I could do? Thanks!

Steven

-- 

2. Android Twitter client Storing in shared preference

Hi,

          I am new to android Twitter ,I use Oauth to access twitter
account every process is working fine.But once after getting Access
token I have to change orientation of emulator or some other changes
to be done to store the access tokens . here i use shared preference
to store values .I don't know where i do mistakes pls can anyone help
me . following is my code where i find problem.

Token = mSharedPreference.getString("AccessToken.token",null);
        Log.e("","Token-- "+Token);
        Tokensecret =
mSharedPreference.getString("AccessToken.tokenSecret",null);
        Log.e("","Token-- "+Tokensecret);
        ScreenName =
mSharedPreference.getString("AccessToken.ScreenName",null);
        Log.e("","Token-- "+ScreenName);

        if (Token==null && Tokensecret == null && ScreenName == null )
        {

            askoAuth();

        }


     btntimeline.setOnClickListener(new OnClickListener()
       {

            public void onClick(View v)
            {

                if (Token!=null && Tokensecret != null && ScreenName!
=null )
                        {
                            Intent intent = new
Intent(IdeaTwit.this,Tabclass.class);
                            startActivity(intent);

                        }
                        else
                        {
                            askoAuth();
                        }
              }

            });

public void askoAuth()
 {
                        // TODO Auto-generated method stub
                try{
 
System.setProperty("twitter4j.http.useSSL","false");
 
System.setProperty("twitter4j.oauth.consumerKey","k5pQGDNFMiiLKn6sc9DQ");
 
System.setProperty("twitter4j.http.consumerSecret","eM8hkPVmyw7C60e6f6CrMLdn0A5oqVWZNaD9z7xU5Zg");
 
System.setProperty("twitter4j.oauth.requestTokenURL","http://
api.twitter.com/oauth/request_token");
 
System.setProperty("twitter4j.oauth.accessTokenURL","http://
api.twitter.com/oauth/access_token");
 
System.setProperty("twitter4j.oauth.authorizationURL","http://
api.twitter.com/oauth/authorize");
 
twitter.setOAuthConsumer("k5pQGDNFMiiLKn6sc9DQ","eM8hkPVmyw7C60e6f6CrMLdn0A5oqVWZNaD9z7xU5Zg");
                          requestToken =
twitter.getOAuthRequestToken(CALL_BACK);
                          Toast.makeText(this,"Please Authorize this
App!",Toast.LENGTH_LONG).show();
                          this.startActivity(new
Intent(Intent.ACTION_VIEW,
Uri.parse(requestToken.getAuthenticationURL())));
                       } catch(Exception e)
                        {
 
Toast.makeText(this,e.getMessage(),Toast.LENGTH_LONG).show();

                        }
            }
            public void onNewIntent(Intent intent)
        {

          super.onNewIntent(intent);
          Uri uri=intent.getData();

         if (uri!= null && uri.toString().startsWith(CALL_BACK))
         {
            String verifier=uri.getQueryParameter("oauth_verifier");

            try
            {
                AccessToken accessToken =
twitter.getOAuthAccessToken(requestToken, verifier);
                SharedPreferences.Editor e=mSharedPreference.edit();
 
e.putString("AccessToken.token",accessToken.getToken());
 
e.putString("AccessToken.tokenSecret",accessToken.getTokenSecret());
 
e.putString("AccessToken.ScreenName",accessToken.getScreenName());
                e.commit();
                twitter=new
TwitterFactory().getOAuthAuthorizedInstance(CONSUMER_KEY,CONSUMER_SECRET,accessToken);
                //Date d = new Date(System.currentTimeMillis());
                String tweet=" #0Auth Working! ";
                twitter.updateStatus(tweet);
                //tweetTextView.setText(tweet);
                Toast.makeText(this,tweet,Toast.LENGTH_LONG).show();
                btntimeline.setEnabled(true);

            }
            catch (Exception e)
            {
                      Toast.makeText(this,
e.getMessage(),Toast.LENGTH_LONG).show();
            }
           }

-- 

3. Issue with wikitude API cam-view orientation and layout

4. inspect out going SMS

5. Converting Touch Inputs to Vectors

6. eula with asynctask ?

7. Help, is there any programming way to set a bimtap image to contact when creating a new one