Getting errors for the source platform/packages/apps/Camera.git

by Win Myo Htet » Mon, 13 Apr 2009 12:03:48 GMT


Sponsored Links
 I just downloaded the source for Camera and get 447 errors when I open the
project in Eclipse.

Here are some sample errors:
Description    Resource    Path    Location    Type
android.content.res.Configuration.HARDKEYBOARDHIDDEN_NO cannot be
resolved    MenuHelper.java    Camera/src/com/android/camera    line 690
Java Problem
android.R.styleable cannot be resolved    ImageGallery2.java
Camera/src/com/android/camera    line 807    Java Problem
Class com.android.camera.UploadService does not exist
AndroidManifest.xml    Camera    line 14    Android Problem
com.android.camera.PhotoAppWidgetProvider does not extend
android.content.BroadcastReceiver    AndroidManifest.xml    Camera    line
206    Android Problem
Environment.MEDIA_CHECKING cannot be resolved    Camera.java
Camera/src/com/android/camera    line 913    Java Problem
ERROR Error: No resource found that matches the given name (at 'theme' with
value '@android:style/Theme.NoDisplay').    AndroidManifest.xml    Camera
line 223    aapt Problem
ERROR No resource identifier found for attribute 'configure' in package
'android'    appwidget_info.xml    Camera/res/xml    line 17    aapt Problem

I'll be glad if I can get advice on getting rid of them.

Thx,
wmhtet

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



Getting errors for the source platform/packages/apps/Camera.git

by Win Myo Htet » Mon, 13 Apr 2009 12:04:08 GMT


 I got some of the answer in this thread  http://tinyurl.com/dx993n 






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


Sponsored Links


Getting errors for the source platform/packages/apps/Camera.git

by Win Myo Htet » Mon, 13 Apr 2009 12:04:19 GMT


 I notice that the reason for that many error is because R.java is not
generated. I have learned that R.java won't get generated if the project is
not created as android or if there are errors at the start up of the project
or if there are errors in res. I have created the project as an android
project properly. I have errors in res tho.

Here they are
Description    Resource    Path    Location    Type
Class com.android.camera.UploadService does not exist
AndroidManifest.xml    Camera    line 14    Android Problem
com.android.camera.PhotoAppWidgetProvider does not extend
android.content.BroadcastReceiver    AndroidManifest.xml    Camera    line
206    Android Problem
ERROR Error: No resource found that matches the given name (at 'theme' with
value '@android:style/Theme.NoDisplay').    AndroidManifest.xml    Camera
line 223    aapt Problem
ERROR No resource identifier found for attribute 'configure' in package
'android'    appwidget_info.xml    Camera/res/xml    line 17    aapt Problem
ERROR No resource identifier found for attribute 'initialLayout' in package
'android'    appwidget_info.xml    Camera/res/xml    line 17    aapt Problem
ERROR No resource identifier found for attribute 'updatePeriodMillis' in
package 'android'    appwidget_info.xml    Camera/res/xml    line 17    aapt
Problem
ERROR Error: String types not allowed (at 'stretchMode' with value
'spacingWidthUniform').    gallerypicker.xml    Camera/res/layout    line
20    aapt Problem






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



Other Threads

1. ISSUE: Using ACTION_IMAGE_CAPTURE to save an image and set it to background

TAKING SMALL PICTURE IMAGE

I am trying to use the camera intent ACTION_IMAGE_CAPTURE to retrieve
a small bitmap image that I can
  set to an imageview background on the current running activity
screen

Objective of code: User will be able to take a picture of an image
                                   which will then be displayed on the
current
                                   activity screen in an "ImageView"
box

Utilizing: ImageView Class, MediaStore Class, an intent to capture
image,
                        Bitmap Factory class to convert file string to
bitmap

Pseudo:          1.  Start Camera on top of current activity calling
intent w/ ACTION_IMAGE CAPTURE
 (not really       2.  Take Picture and place image to file
      but...)        3.  Take file and store to bitmap (I have no clue
what I'm doing there)
                       4.  Set it to the background of the ImageView
to the captured image

ISSUE: Biitmap bm IS NULL AFTER IMAGE IS ASSIGNED
              The picture has been saved to the phone,
                 and that part is correct

I need someone to show me how I can set the background of imageNew
          to the stored image

<code>
        ImageView imageNew = (ImageView) findViewById
(R.id.ProductImageView);
        Intent imageCaptureIntent = new Intent
(MediaStore.ACTION_IMAGE_CAPTURE);

        startActivityForResult(imageCaptureIntent, 1);
        imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT,
                                                                        
Uri.fromFile(new File("NewImage")));
                startActivityForResult(imageCaptureIntent, 1);



        Bitmap bm = null;
        bm = BitmapFactory.decodeFile("New_Image");

        imageNew.setImageBitmap(bm);
<code>

PS. I hope this code is helpful to others looking to do similar
           tasks with small returned images
--~--~---------~--~----~------------~-------~--~----~

2. Still searching for HOME screen, and more question about ActivityManager

I've asked "how to detect home screen" before. I'm still searching...

I noticed when I press "home" button on Android emulator, I got this
statement in catlog:

INFO/ActivityManager(584):
 Starting activity: Intent { action=android.intent.action.MAIN
categories={android.intent.category.HOME} flags=0x10200000 comp=
{com.android.launcher/com.android.launcher.Launcher} }

so I went to ActivityManager to see if I can find a clue there. Here
is my findings:

1. I can not instantiate ActivityManager because it's constructor is
not public, and it's not a singleton
2. it has a function called: getRunningAppProcesses sounds promising
-- would it give me all the running processes?
3. since I can not instantiate ActivityManager I tried to use one of
the derived class: RunningAppProcesseInfo to see if I can use it's
parent methods: getRunningAppProcesses. Nope.

Am I on the right track or totally lost?

Thanks,

Sherry

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

3. Android update deleted

4. How to query all phone numbers of all Contacts in the Database?

5. INDEX 2...INDEX 2...INDEX 2...

6. Question about using TextView

7. MapView Draggable Objects