[android-developers] Gallery View using images from file (Dynamic vs. Static images)

2009-07-01 Thread Logik

The api demo for gallery uses resource id's to access the drawables in
the gallery.

I have tried multiple ways to use images from file. My steps...

- 1. grab filepaths and save all files as a drawable array
- 2. using the same logice in the api demo, I ste the background to
the drawable
  instaed of the resid

That's All I felt the need to replace from the api demo, which seems
to fail miserably since the images do not appear in my test app.

 If you have any hints to help with this let me know,

Thanks
Billy Y
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] sqlite: no such column name SQLITEexception

2009-06-21 Thread Logik

I went through the notepad tutorial to help understand sqlite a bit
better
So now I am trying to utilize what has allready been written for this,
in my
own database


I will actually post my code so someone may be able to pick out what
is wrong

This is the error i get:
06-21 19:57:35.511: ERROR/AndroidRuntime(796): Caused by:
android.database.sqlite.SQLiteException: no such column: name: , while
compiling: SELECT _id, name, description, retailprice, image FROM
products

This is the method its faulting on in Class: DbAdapter
public Cursor fetchAllProducts() {

return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID,
KEY_NAME,
KEY_DESCRIPTION, KEY_RETAILPRICE, KEY_IMAGE}, null,
null, null, null, null);
}

if you think the error is somewhere else, then I can post more later
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Can an Activity find out where it started from?

2009-06-18 Thread Logik

Is there a way to do this?

Can you access the activity stack in a way to grab what activity came
before the one now in view?

I have a situation where an activity needs to know where it was
started from,
so it knows what data to display in that current activity.

Let me know,

Cheers,
Bill Y.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Can an Activity find out where it started from?

2009-06-18 Thread Logik

Thats what I was looking for!

Greatly appreciated

On Jun 18, 11:49 pm, Mark Murphy mmur...@commonsware.com wrote:
  I have a situation where an activity needs to know where it was
  started from,
  so it knows what data to display in that current activity.

 Put an extra in the Intent that launches it that specifies its origin
 (e.g., putExtra(ORIGIN_KEY, STARTED_FROM_HERE); versus
 putExtra(ORIGIN_KEY, STARTED_FROM_THERE)). Then, examine the extra in the
 launched activity (e.g., getExtra(ORIGIN_KEY)).

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Can an Activity find out where it started from?

2009-06-18 Thread Logik

BTW, I'm planning on buying your book..
(might as well do that in the morning)

I can only go so far with developer.android



On Jun 19, 12:15 am, Logik yaros...@gmail.com wrote:
 Thats what I was looking for!

 Greatly appreciated

 On Jun 18, 11:49 pm, Mark Murphy mmur...@commonsware.com wrote:

   I have a situation where an activity needs to know where it was
   started from,
   so it knows what data to display in that current activity.

  Put an extra in the Intent that launches it that specifies its origin
  (e.g., putExtra(ORIGIN_KEY, STARTED_FROM_HERE); versus
  putExtra(ORIGIN_KEY, STARTED_FROM_THERE)). Then, examine the extra in the
  launched activity (e.g., getExtra(ORIGIN_KEY)).

  --
  Mark Murphy (a Commons Guy)http://commonsware.com
  _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] 1.5 rebuild issue with emulator

2009-06-10 Thread Logik

Rebuilt my app on 1.5 and went through all setup info on signing my
avd

When I run my app on eclipse them emulator just prints to console its
help menu

the error says
Emulator] unknown option: -avd

all this prints before the error
[2009-06-10 09:47:37 - ProjectName] Android Launch!
[2009-06-10 09:47:37 - ProjectName] adb is running normally.
[2009-06-10 09:47:37 - ProjectName] Performing android.project.Welcome
activity launch
[2009-06-10 09:47:37 - ProjectName] Automatic Target Mode: launching
new emulator with compatible AVD 'toto'
[2009-06-10 09:47:37 - OldeWorldVineyard] Launching a new emulator
with Virtual Device 'toto'
[2009-06-10 09:47:37 - Emulator] Android Emulator usage: emulator
[options] [-qemu args]

error

[2009-06-10 09:47:37 - Emulator] unknown option: -avd

options menu
[2009-06-10 09:47:37 - Emulator]   options:
.
.
.


Has anyone else had this issue when creating an avd through console?
Any resolutions?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: 1.5 rebuild issue with emulator

2009-06-10 Thread Logik

Re-installed sdk pack and everything is good now

On Jun 10, 9:54 am, Logik yaros...@gmail.com wrote:
 Rebuilt my app on 1.5 and went through all setup info on signing my
 avd

 When I run my app on eclipse them emulator just prints to console its
 help menu

 the error says
 Emulator] unknown option: -avd

 all this prints before the error
 [2009-06-10 09:47:37 - ProjectName] Android Launch!
 [2009-06-10 09:47:37 - ProjectName] adb is running normally.
 [2009-06-10 09:47:37 - ProjectName] Performing android.project.Welcome
 activity launch
 [2009-06-10 09:47:37 - ProjectName] Automatic Target Mode: launching
 new emulator with compatible AVD 'toto'
 [2009-06-10 09:47:37 - OldeWorldVineyard] Launching a new emulator
 with Virtual Device 'toto'
 [2009-06-10 09:47:37 - Emulator] Android Emulator usage: emulator
 [options] [-qemu args]

 error

 [2009-06-10 09:47:37 - Emulator] unknown option: -avd

 options menu
 [2009-06-10 09:47:37 - Emulator]   options:
 .
 .
 .

 Has anyone else had this issue when creating an avd through console?
 Any resolutions?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ISSUE: Using ACTION_IMAGE_CAPTURE to save an image and set it to background

2009-06-05 Thread Logik

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
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Developer phone with sim card but no service

2009-02-12 Thread Logik

Just recieved my dev phone today in the US. I have am ATT sim card,
but with no actual service with the card. I was wondering if their is
a way to set up the apn or bypass it to use the phones built in wifi.
Just wanna start testing my code and can't seem to get it working
without having an actual service provided by ATT.

Basic question is: Can I use the Dev phone with a sim card, implying
that the sim card has no actual service

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Developer phone with sim card but no service

2009-02-12 Thread Logik

Thanks a lot! You pointed me in the right direction.

ok so I got this working.

The best way to bypass the sim card and access straight to the
wireless is easy.

When the phone boots and asks you for the sim card, just leave it.

2. Download Dev1 phone usb drivers from
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware

3. Attach phone and install drivers in downloaded location

4. StartRuncmd

5. the command prompt type cd c:\

6. type adb shell (this will let you access and push a command to the
root system of the phone)

7. A ' # ' appears.. type the fallowing appending: am start -a
android.intent.action.MAIN -n com.android.settings/.Settings
   //if you wanna know what this does.. It starts the android
setting page and forces it to the main display]

  ( source is from forum post: 
http://forum.xda-developers.com/showthread.php?t=452316
)

8. when this is done, hit enter and go to your dev1 phone

9. The wireless setting screen should be visible

10. Set up your wireless and you are done.

I hope this post helps others wishing to use their phones without a
data plan!!

On Feb 12, 9:11 pm, snctln catlin.s...@gmail.com wrote:
 I have an ADP1 and I was able to set it up and I still use it without
 ever having a sim card at all, I just .  (I use a sprint (ie no sim)
 Windows Mobile phone as my main device for now)

 I posted the procedure of how I got my ADP1 up and running over at 
 xdahttp://forum.xda-developers.com/showpost.php?p=3139087postcount=82

 You can also ask over there in the 
 posthttp://forum.xda-developers.com/showthread.php?t=452316
 and someone will probably help you if you have any problems.

 Good luck.

 ---snctlnwww.snctln.com

 On Feb 12, 7:14 pm, Logik yaros...@gmail.com wrote:

  Just recieved my dev phone today in the US. I have am ATT sim card,
  but with no actual service with the card. I was wondering if their is
  a way to set up the apn or bypass it to use the phones built in wifi.
  Just wanna start testing my code and can't seem to get it working
  without having an actual service provided by ATT.

  Basic question is: Can I use the Dev phone with a sim card, implying
  that the sim card has no actual service
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Developer phone with sim card but no service

2009-02-12 Thread Logik

if your having problems then make sure your device is being recognized
and by fallowing the basic adb commands

On Feb 12, 11:27 pm, Logik yaros...@gmail.com wrote:
 Thanks a lot! You pointed me in the right direction.

 ok so I got this working.

 The best way to bypass the sim card and access straight to the
 wireless is easy.

 When the phone boots and asks you for the sim card, just leave it.

 2. Download Dev1 phone usb drivers 
 fromhttp://code.google.com/android/intro/develop-and-debug.html#developin...

 3. Attach phone and install drivers in downloaded location

 4. StartRuncmd

 5. the command prompt type cd c:\

 6. type adb shell (this will let you access and push a command to the
 root system of the phone)

 7. A ' # ' appears.. type the fallowing appending: am start -a
 android.intent.action.MAIN -n com.android.settings/.Settings
        //if you wanna know what this does.. It starts the android
 setting page and forces it to the main display]

           ( source is from forum 
 post:http://forum.xda-developers.com/showthread.php?t=452316
 )

 8. when this is done, hit enter and go to your dev1 phone

 9. The wireless setting screen should be visible

 10. Set up your wireless and you are done.

 I hope this post helps others wishing to use their phones without a
 data plan!!

 On Feb 12, 9:11 pm, snctln catlin.s...@gmail.com wrote:

  I have an ADP1 and I was able to set it up and I still use it without
  ever having a sim card at all, I just .  (I use a sprint (ie no sim)
  Windows Mobile phone as my main device for now)

  I posted the procedure of how I got my ADP1 up and running over at 
  xdahttp://forum.xda-developers.com/showpost.php?p=3139087postcount=82

  You can also ask over there in the 
  posthttp://forum.xda-developers.com/showthread.php?t=452316
  and someone will probably help you if you have any problems.

  Good luck.

  ---snctlnwww.snctln.com

  On Feb 12, 7:14 pm, Logik yaros...@gmail.com wrote:

   Just recieved my dev phone today in the US. I have am ATT sim card,
   but with no actual service with the card. I was wondering if their is
   a way to set up the apn or bypass it to use the phones built in wifi.
   Just wanna start testing my code and can't seem to get it working
   without having an actual service provided by ATT.

   Basic question is: Can I use the Dev phone with a sim card, implying
   that the sim card has no actual service
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---