Giving title, Location etc information to newly captured Image

by Rana » Thu, 01 Oct 2009 06:05:51 GMT


Sponsored Links
 Hello, I have write some code that initialize the Camera and after
capturing picture it goes to an activity where some EditText field for
title, location, date for the new Image. But I am not getting to set
these information to the newly taken image. I will search image next
time with these information. Any help? please..

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



Other Threads

1. Does /proc/meminfo show the correct memory info?

I'm working on a System Monitor app (first version is already in the
market)  to get my feet wet with Android.  When getting RAM totals, I
grab MemTotal from /proc/meminfo, however this only shows 99129KB.
Doesn't the G1 have 192MB of RAM?  Is there another field from this
file I should add to this total, or is this just not the right way to
figure it out.  I think I remember reading that some changes were made
to the kernel to handle memory more efficiently, could this have an
impact?

On any other Linux system I've used, meminfo shows the correct total
for system RAM, so could we have been shorted on the G1?

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

2. Head-scratcher: NullPointerException from startActivity(ACTION_CALL)

Hi,

I'm attempting to initiate an outgoing call from inside a Service.

In onStart(), I create an ACTION_CALL Intent, then attempt to start an
Activity

         myIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" +
phoneNumber));

         initiateCall.startActivityForResult(myIntent,
CALL_SETUP_ACTIVITY_ID);

However, when I run the code I get a NullPointerException.  Clearly,
the intent and activity are non-null, so I'm wondering what Android is
lacking here.

11-07 13:24:19.801: INFO/PhoneTestService(1250): onCreate called
11-07 13:24:19.801: INFO/PhoneTestService(1250): onStart called
11-07 13:24:19.801: INFO/PhoneTestService(1250): doIt called
11-07 13:24:19.811: DEBUG/PhoneTestService(1250): creating
initiateCall activity
11-07 13:24:19.811: DEBUG/PhoneTestService(1250): initiateCall is NOT
NULL!!!!!
11-07 13:24:19.820: INFO/PhoneTestService(1250): phone state is:
CALL_STATE_IDLE
11-07 13:24:21.601: INFO/PhoneTestService(1250): starting to listen
Fri Nov 07 13:24:19 PST 2008
11-07 13:24:21.622: INFO/PhoneTestService(1250): starting call intent.
11-07 13:24:21.622: DEBUG/PhoneTestService(1250): myIntent is NOT
NULL!!!!!
11-07 13:24:21.632: ERROR/PhoneTestService(1250): ERROR:
java.lang.NullPointerException
11-07 13:24:21.632: ERROR/PhoneTestService(1250):
java.lang.NullPointerException
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
android.app.Activity.startActivityForResult(Activity.java:2528)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
test.phone.PhoneTestService.doIt(PhoneTestService.java:254)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
test.phone.PhoneTestService.onStart(PhoneTestService.java:145)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2429)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
android.app.ActivityThread.access$3100(ActivityThread.java:112)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1640)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
android.os.Handler.dispatchMessage(Handler.java:88)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
android.os.Looper.loop(Looper.java:123)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
android.app.ActivityThread.main(ActivityThread.java:3742)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
java.lang.reflect.Method.invokeNative(Native Method)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
java.lang.reflect.Method.invoke(Method.java:515)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:739)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
11-07 13:24:21.632: ERROR/PhoneTestService(1250):     at
dalvik.system.NativeStart.main(Native Method)

Don't know where to go from here...

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="test.phone"
      android:versionCode="1"
      android:versionName="1.0.0">
    <application>
        <activity android:name=".PhoneTest"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".PhoneTestActivity">
                    <intent-filter>
                <action
android:name="android.intent.action.ACTION_CALL" />
                <category
android:name="android.intent.category.DEFAULT" />
            </intent-filter>
       </activity>
        <service android:name=".PhoneTestService"></service>
    </application>

<uses-permission android:name="android.permission.CALL_PHONE"></uses-
permission>
<uses-permission
android:name="android.permission.SET_ACTIVITY_WATCHER"></uses-
permission>
<uses-permission android:name="android.permission.STATUS_BAR"></uses-
permission>
<uses-permission android:name="android.permission.SET_DEBUG_APP"></
uses-permission>
<uses-permission android:name="android.permission.CALL_PRIVILEGED"></
uses-permission>
<uses-permission
android:name="android.permission.PROCESS_OUTGOING_CALLS"></uses-
permission>
<uses-permission android:name="android.permission.READ_PHONE_STATE"></
uses-permission>

</manifest>

Any ideas appreciated.

Thanks,

Paul
--~--~---------~--~----~------------~-------~--~----~

3. Task Manager??

4. bionic usage

5. Mobile open office aka MOO

6. Camera preview on G1 only works in landscape ?

7. adb shell permissions on real G1 device