MapActivity - Couldn't get connection factory client

by Ricardo » Tue, 07 Oct 2008 20:48:23 GMT


Sponsored Links
 Hi all,

Im trying to create a application using MapView with GPS... but the
following error appears in LogCat:

MapActivity(8287): Couldn't get connection factory client. And it
shows a strange screen in the emulator instead of the Maps...

The problem is that sometimes it works.. But 90% of the times it doesn
t work. I used the MapView with GPS in previous releases and I never
had problem...

My Manifest has the permissions set.. does anybody please know what I
m doing wrong?

thank you

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=" http://schemas.android.com/apk/res/android" ;
      package="br.livro.android.gps"
      android:versionCode="1"
      android:versionName="1.0.0">

        <uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION" />
        <uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION" />
        <uses-permission android:name="android.permission.INTERNET" />

    <application android:icon="@drawable/icon" android:label="@string/
app_name">

        <uses-library android:name="com.google.android.maps" />

        <activity android:name=".MenuGPS"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

</application>
</manifest>

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



MapActivity - Couldn't get connection factory client

by Matthias » Fri, 17 Oct 2008 00:55:35 GMT


 I have the same problem. Any ideas yet?
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


MapActivity - Couldn't get connection factory client

by android-noob » Tue, 28 Oct 2008 04:43:41 GMT


 Maybe its an apikey problem.
 http://www.androidph.com/2008/10/android-map-viewer.html 




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



MapActivity - Couldn't get connection factory client

by Prakash » Wed, 29 Oct 2008 20:46:14 GMT


 Hi ,

I am getting the same exception.

Were you able to solve it?

Pls let me know if there is a solution.

Thanks
Prakash




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



MapActivity - Couldn't get connection factory client

by mschot » Mon, 03 Nov 2008 13:38:44 GMT


 Hi Prakash,

This seems to be an error with the api  as android-noob said.

goto  http://code.google.com/android/toolbox/apis/mapkey.html and 
follow the steps...

hope this helps..

mschot

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



Other Threads

1. 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange

I've gotten a bit further than you.

The account manager seems to want to store AccountName+Type pairs, and have
an AccountAuthenticator handle the storage and dirty bits of the actual
authentication and credential storage.

You will need to create an AccountAuthenticator from the
AbstractAccountAuthenticator class.
You will also need to define a Service in your app.   See
 http://www.***.com/ 
This service must be set up in the Manifest like so:  (ripped from link
above)

 <intent-filter>
     <action android:name="android.accounts.AccountAuthenticator" />
   </intent-filter>
   <meta-data android:name="android.accounts.AccountAuthenticator"
             android:resource="@xml/authenticator" />

You can take a look at the link for what the resource must be...

After you end up hooking all that {*filter*}up, you can do this in your service:
 public IBinder onBind(Intent intent) {
IBinder ret = null;
 if
(intent.getAction().equals(android.accounts.AccountManager.ACTION_AUTHENTICATOR_INTENT))
ret = getAuthenticator().getIBinder();
 return ret;
}

private AccountAuthenticator getSametimeAuthenticator() {
if (_aa == null)
_aa = new AccountAuthenticator(this);
return _aa;
}

So when you finally have all this set up.    You should see your account
type listed in the AccountTester application next to the "Corporate" type.
To get anything meaningful to happen when you click Add, you need to do this
in your AccountAuthenticator:

public Bundle addAccount(AccountAuthenticatorResponse response, String
accountType, String authTokenType, String[] requiredFeatures, Bundle
options) throws NetworkErrorException {
Bundle ret = new Bundle();
 Intent intent = new Intent(_context, AccountAuthenticatorActivity.class);
intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE,
response);
 ret.putParcelable(AccountManager.KEY_INTENT, intent);
return ret;
}

This basically says that...   I'm going to prompt the user to enter
credentials using the MyAccountAuthenticatorActivity class.
The MyAccountAuthenticatorActivity activity should probably extend the
class AccountAuthenticatorActivity.   Here's mine:

public class MyAccountAuthenticatorActivity extends
AccountAuthenticatorActivity {
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.new_account);
 final Button done = (Button)findViewById(R.id.new_account_done);
final EditText server = (EditText)findViewById(R.id.new_account_server);
final EditText username = (EditText)findViewById(R.id.new_account_username);
final EditText password = (EditText)findViewById(R.id.new_account_password);
 done.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Bundle result = new Bundle();
result.putString(AccountManager.KEY_ACCOUNT_NAME,
username.getText().toString());
result.putString(AccountManager.KEY_ACCOUNT_TYPE,
getString(R.string.ACCOUNT_TYPE));
setAccountAuthenticatorResult(result);
finish();
}
});
}
}

The bundle you would normally pass back if you had no Activity to enter
credentials is passed back with setAccountAuthenticatorResult(result);
and finish();


That's about as far as i've gotten.    When i click Add in the
AccountsTester app, the activity to enter creds is launched, and whent he
done button is pressed I get this message in the LogCat:
11-13 19:21:58.488: DEBUG/AccountsTester(291): account added:
Bundle[{accountType=com.my.package.app.auth.account_type,
authAccount=testaccout}]

But the AccountsTester app refuses to display my accounts that it said it
created.
without being able to look at the source for at least the AccountsTester
app, I'm pretty stuck right now...
Does anyone out there have ANY useful information on how to use this stuff?
  Or is it all locked up in a buttbuddy secret vault between google and
motorola?





> 

2. Leaving SlideME and Launching MiKandi

Guys,

Just to let you know, this week will be my last week at SlideME. It's been a
wild ride over the last two years and much of what I set out to do I was
fortunate enough to be able to do with SlideME. It is now the largest
alternative Android marketplace and has a healthy user and developer
community around it. SAM, our client, has been deployed on a large number of
handsets around the world.

I tried to start something similar with J2ME back in 2003-2004 with
JVending; but it was too early and the market was carrier controlled. All of
that has changed with the iPhone and Android, leaving an opening for
communities like SlideME and AndAppStore to sprout up and grow.

SlideME has a great, hard-working team behind it and I have confidence that
it will continue to grow and maintain itself with a community focus. It's a
little bumpy as new members of the team get up to speed, so bear with them.

As for myself, I've formed a fantastic team here in the Seattle area and
partnered with industry experts to build MiKandi - the largest Mobile {*filter*}
App Store:  http://www.***.com/ . It was an area that other members of SlideME
understandably didn't want to enter, but I found building an app store as
highly disruptive to the {*filter*} industry; so I couldn't resist. I have an
itch to do things that haven't been done before.

MiKandi is currently on the Android platform and all I can say is the amount
of interest from companies and individuals has been amazing. We just
launched today, so check it out. For developers who are frustrated with lack
of sales, you definitely want to check out this industry. In truth, there is
no industry, just a lot of users who are dying to buy mobile {*filter*} apps..
It's up to you to jump in and build it and make serious money from it. If
interested, I'll send you an invite code. Also check out more info:

 http://www.***.com/ 

I'm also starting another company with Henrique (also a former co-founder of
SlideME). The company is called StackWire and will provide searchable
catalog as a service. Basically indexing of data in the cloud. It will allow
mobile, media application developers to build out their catalogs, optimized
for mobile devices. We are seeing this as an area that is not currently
being met. if you are interested in doing a beta with us, just ping me.

-- 
Shane Isbell (Co-founder of MiKandi - The World's First Mobile {*filter*}
AppStore)
 http://www.***.com/ 
 http://www.***.com/ 

--

3. usb to audio

4. AudioRecord producing no-sound data. Why??

5. gnt case dream full housing...

6. ROM Turunan Cyanogen (WG-Build 8 CM 4.2.7.1, 10mb RAM+, New A2SD, ZipAlign, GApps, FAST)

7. Position/Size of AlertDialog with no Title