Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some compile error and package name is case-sensitive #32

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -16,7 +16,6 @@ gen/
local.properties

# Eclipse project files
.classpath
.settings

# Proguard folder generated by Eclipse
9 changes: 9 additions & 0 deletions Examples/AlarmCreate/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
2 changes: 1 addition & 1 deletion Examples/LocationGetLocationServices/project.properties
Original file line number Diff line number Diff line change
@@ -9,4 +9,4 @@

# Project target.
target=android-17
android.library.reference.1=../../../../Classes/AndroidOnline/Coursersa-Android002/eclipse/google-play-services_lib
android.library.reference.1=../google-play-services_lib
9 changes: 9 additions & 0 deletions Examples/LoggingServiceClient/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
2 changes: 1 addition & 1 deletion Examples/MapEarthQuakeMap/.classpath
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="src" path="gen"/>
2 changes: 1 addition & 1 deletion Examples/MapEarthQuakeMap/project.properties
Original file line number Diff line number Diff line change
@@ -9,4 +9,4 @@

# Project target.
target=Google Inc.:Google APIs:19
android.library.reference.1=../../../../Classes/AndroidOnline/Coursersa-Android002/eclipse/google-play-services_lib
android.library.reference.1=../google-play-services_lib
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ public class NotificationStatusBarWithCustomViewActivity extends Activity {
private long[] mVibratePattern = { 0, 200, 200, 300 };

RemoteViews mContentView = new RemoteViews(
"course.examples.Notification.StatusBarWithCustomView",
"course.examples.notification.statusbarwithcustomview",//package name is case-sensitive
R.layout.custom_notification);

@Override
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@
android:layout_width="44dp"
android:layout_height="44dp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:src="@drawable/fire_eye_alien"
android:layout_centerVertical="true"
android:contentDescription="@string/eyeball_string"
@@ -22,6 +23,7 @@
android:text="@string/toast_string"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/image"
android:layout_toEndOf="@id/image"
android:textSize="32sp"
/>
</RelativeLayout>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_linear_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;
@@ -14,6 +15,8 @@ public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

final ViewGroup mainLinearLayout = (ViewGroup)findViewById(R.id.main_linear_layout);

Button button = (Button) findViewById(R.id.toast_button);
button.setOnClickListener(new OnClickListener() {

@@ -25,7 +28,7 @@ public void onClick(View v) {
toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
toast.setDuration(Toast.LENGTH_LONG);

toast.setView(getLayoutInflater().inflate(R.layout.custom_toast,null));
toast.setView(getLayoutInflater().inflate(R.layout.custom_toast, mainLinearLayout, false));

toast.show();
}
9 changes: 9 additions & 0 deletions Examples/SensorRawAccelerometer/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
9 changes: 9 additions & 0 deletions Examples/UIDatePickerFragment/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
2 changes: 1 addition & 1 deletion Examples/UIGoogleMaps/project.properties
Original file line number Diff line number Diff line change
@@ -12,4 +12,4 @@

# Project target.
target=android-18
android.library.reference.1=../../../../Classes/AndroidOnline/Coursersa-Android002/eclipse/google-play-services_lib
android.library.reference.1=../google-play-services_lib
Original file line number Diff line number Diff line change
@@ -3,6 +3,12 @@
import android.app.Activity;
import android.os.Bundle;

import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;

// This applications requires several set up steps.
// See https://developers.google.com/maps/documentation/android/start for more information

9 changes: 9 additions & 0 deletions Examples/UITimePickerFragment/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
10 changes: 10 additions & 0 deletions Examples/UIViewPager/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry exported="true" kind="lib" path="libs/android-support-v13.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
4 changes: 4 additions & 0 deletions Examples/google-play-services_lib/res/values/version.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="google_play_services_version">4030500</integer>
</resources>