Skip to content

Commit

Permalink
Merge pull request #9 from heremaps/package-directory-update
Browse files Browse the repository at this point in the history
Update package directories and AndroidManifest.xmls to adapt new package names
  • Loading branch information
AmbroseLi authored Jan 10, 2017
2 parents 5d9c3f0 + 7253522 commit 0b05946
Show file tree
Hide file tree
Showing 41 changed files with 156 additions and 123 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.android.sampleapp.geocoding">
package="com.here.android.example.geocoding">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.here.android.sampleapp.geocoding;
package com.here.android.example.geocoding;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.here.android.sampleapp.geocoding;
package com.here.android.example.geocoding;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.here.android.sampleapp.geocoding.MainActivity">
tools:context="com.here.android.example.geocoding.MainActivity">


<Button
Expand Down
2 changes: 1 addition & 1 deletion map-attribute-android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.android.sampleapp.mapattribute">
package="com.here.android.example.map.attribute">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* absence of such agreement, the use of the software is not allowed.
*/

package com.here.android.sampleapp.mapattribute;
package com.here.android.example.map.attribute;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* absence of such agreement, the use of the software is not allowed.
*/

package com.here.android.sampleapp.mapattribute;
package com.here.android.example.map.attribute;

import com.here.android.mpa.common.GeoCoordinate;
import com.here.android.mpa.common.OnEngineInitListener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* absence of such agreement, the use of the software is not allowed.
*/

package com.here.android.sampleapp.mapattribute;
package com.here.android.example.map.attribute;

import com.here.android.mpa.mapping.Map;
import com.here.android.mpa.mapping.MapTrafficLayer;
Expand Down
4 changes: 2 additions & 2 deletions map-customization-android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.android.sampleapp.mapcustomization">
package="com.here.android.example.map.customization">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand All @@ -14,7 +14,7 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.here.android.sampleapp.mapcustomization.MainActivity">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* with a HERE company for the use or utilization of this software. In the
* absence of such agreement, the use of the software is not allowed.
*/
package com.here.android.sampleapp.mapobjects;
package com.here.android.example.map.customization;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -54,7 +54,6 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
case REQUEST_CODE_ASK_PERMISSIONS: {
for (int index = 0; index < permissions.length; index++) {
if (grantResults[index] != PackageManager.PERMISSION_GRANTED) {

/**
* If the user turned down the permission request in the past and chose the
* Don't ask again option in the permission request system dialog.
Expand All @@ -72,7 +71,6 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
}
}
}

/**
* All permission requests are being handled.Create map fragment view.Please note
* the HERE SDK requires all permissions defined above to operate properly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* with a HERE company for the use or utilization of this software. In the
* absence of such agreement, the use of the software is not allowed.
*/
package com.here.android.sampleapp.mapcustomization;
package com.here.android.example.map.customization;

import com.here.android.mpa.common.GeoCoordinate;
import com.here.android.mpa.common.OnEngineInitListener;
Expand Down
4 changes: 2 additions & 2 deletions map-downloader-android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.android.sampleapp.mapdownloader">
package="com.here.android.example.map.downloader">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand All @@ -15,7 +15,7 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.here.android.sampleapp.mapdownloader.MainActivity">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.here.android.sampleapp.mapdownloader;
package com.here.android.example.map.downloader;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.here.android.sampleapp.mapdownloader;
package com.here.android.example.map.downloader;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.here.android.sampleapp.mapdownloader;
package com.here.android.example.map.downloader;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.here.android.sampleapp.mapdownloader.MainActivity"
tools:context=".MainActivity"
android:orientation="vertical">

<LinearLayout
Expand Down
2 changes: 1 addition & 1 deletion map-gestures-android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.android.sampleapp.mapgesture">
package="com.here.android.example.map.gesture">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.here.android.sampleapp.mapgesture;
package com.here.android.example.map.gesture;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* absence of such agreement, the use of the software is not allowed.
*/

package com.here.android.sampleapp.mapgesture;
package com.here.android.example.map.gesture;

import java.io.IOException;
import java.util.List;
Expand Down
4 changes: 2 additions & 2 deletions map-objects-android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.android.sampleapp.mapobjects">
package="com.here.android.example.map.objects">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand All @@ -14,7 +14,7 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.here.android.sampleapp.mapobjects.MainActivity">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* with a HERE company for the use or utilization of this software. In the
* absence of such agreement, the use of the software is not allowed.
*/
package com.here.android.sampleapp.mapcustomization;
package com.here.android.example.map.objects;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -21,6 +21,7 @@
public class MainActivity extends AppCompatActivity {

private final static int REQUEST_CODE_ASK_PERMISSIONS = 1;
private MapFragmentView m_mapFragmentView;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down Expand Up @@ -54,6 +55,7 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
case REQUEST_CODE_ASK_PERMISSIONS: {
for (int index = 0; index < permissions.length; index++) {
if (grantResults[index] != PackageManager.PERMISSION_GRANTED) {

/**
* If the user turned down the permission request in the past and chose the
* Don't ask again option in the permission request system dialog.
Expand All @@ -71,11 +73,12 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
}
}
}

/**
* All permission requests are being handled.Create map fragment view.Please note
* the HERE SDK requires all permissions defined above to operate properly.
*/
new MapFragmentView(this);
m_mapFragmentView = new MapFragmentView(this);
break;
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* with a HERE company for the use or utilization of this software. In the
* absence of such agreement, the use of the software is not allowed.
*/
package com.here.android.sampleapp.mapobjects;
package com.here.android.example.map.objects;

import java.io.IOException;
import java.util.ArrayList;
Expand Down
2 changes: 1 addition & 1 deletion map-rendering-android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.android.sampleapp.basicmap">
package="com.here.android.example.map.basic">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.here.android.sampleapp.routing;
package com.here.android.example.map.basic;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* absence of such agreement, the use of the software is not allowed.
*/

package com.here.android.sampleapp.basicmap;
package com.here.android.example.map.basic;

import com.here.android.mpa.common.OnEngineInitListener;
import com.here.android.mpa.mapping.Map;
Expand Down
2 changes: 1 addition & 1 deletion routing-android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.android.sampleapp.routing">
package="com.here.android.example.routing">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.here.android.sampleapp.basicmap;
package com.here.android.example.routing;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* absence of such agreement, the use of the software is not allowed.
*/

package com.here.android.sampleapp.routing;
package com.here.android.example.routing;

import java.util.List;

Expand Down
6 changes: 3 additions & 3 deletions search-android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.android.sampleapp.search">
package="com.here.android.example.search">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand All @@ -14,14 +14,14 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.here.android.sampleapp.search.MainActivity">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.here.android.sampleapp.search.ResultListActivity" />
<activity android:name=".ResultListActivity" />

<!--Developers should put application credentials here.To obtain them, please register the application at developer.here.com-->
<meta-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* absence of such agreement, the use of the software is not allowed.
*/

package com.here.android.sampleapp.search;
package com.here.android.example.search;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* absence of such agreement, the use of the software is not allowed.
*/

package com.here.android.sampleapp.search;
package com.here.android.example.search;

import java.io.IOException;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* absence of such agreement, the use of the software is not allowed.
*/

package com.here.android.sampleapp.search;
package com.here.android.example.search;

import com.here.android.mpa.common.GeoCoordinate;
import com.here.android.mpa.search.DiscoveryResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* absence of such agreement, the use of the software is not allowed.
*/

package com.here.android.sampleapp.search;
package com.here.android.example.search;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.android.sampleapp.guidance">
package="com.here.android.example.guidance">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* absence of such agreement, the use of the software is not allowed.
*/

package com.here.android.sampleapp.guidance;
package com.here.android.example.guidance;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* absence of such agreement, the use of the software is not allowed.
*/

package com.here.android.sampleapp.guidance;
package com.here.android.example.guidance;

import java.lang.ref.WeakReference;
import java.util.List;
Expand Down
2 changes: 1 addition & 1 deletion urban-mobility-android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.here.android.sampleapp.urbanmobility">
package="com.here.android.example.urbanmobility">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
Loading

0 comments on commit 0b05946

Please sign in to comment.