When I run my app that has a Google map from Eclispe, the map shows up and all the map functions work..
However, if I share my Eclipse project with a friend OR export my app as an APK and reinstall it on a device, the map doesnt show up. It says:
02-07 00:26:39.644: E/Google Maps Android API(3605): Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.
I am not sure whats causing this. Especially because when I(who got the APK from the console and set up everything with my SHA1) run from Eclipse it works correctly?
Here is my XML main.xml with the map fragment
<android.support.v4.widget.DrawerLayout ...... >
<LinearLayout ... >
<RelativeLayout ..>
<Button ... > </Button>
<EditText .. > </EditText>
<fragment
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="20"
class="com.google.android.gms.maps.SupportMapFragment" />
</LinearLayout>
<ListView android:id="@+id/left_drawer"
android:layout_width="240dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="0dp"
android:background="#111"/>
</android.support.v4.widget.DrawerLayout>