[android-developers] Re: Strange behavior with AlarmManager.RTC_WAKEUP and PowerManager.WakeLock

2008-12-04 Thread Jon Colverson

On Dec 5, 6:41 am, Jon Colverson <[EMAIL PROTECTED]> wrote:
> I'd been having some weird issues with AlarmManager seemingly not
> firing my alarms when the device is asleep. I'm using the alarm to
> start a service and I was acquiring my wake lock in onStart(). I tried
> acquiring the lock in onCreate() instead, and that seems to have
> solved the problem.

Oops. I spoke too soon. After some more testing that doesn't seem to
have helped.

--
Jon

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Debug android source code

2008-12-04 Thread Yogi

Hi All,

I want to debug android codec source code and want to know how the
audio/video graph is build.
Can we debug the codec source code with the help of ADB?
Please help me out.

Thanks in advance,
Yogi
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-04 Thread Ralf

Make sure to run
development/tools/eclipse/script/create_ddms_symlink.sh and then only
import the ddms-plugin project (from
dev/tools/eclipse/plugins/com.android.blah.ddms) in Eclipse. You don't
need the ddmlib and ddmuilib projects in Eclipse for ADT because they
are symlinked under the plugin/ddmsdirectory.

R/

On Thu, Dec 4, 2008 at 11:18 PM, Anonymous Anonymous
<[EMAIL PROTECTED]> wrote:
> Hi Xav,
>
> Thank you,
>
> Now am clear with few of the errors(compiler compliance).
> I have synced to latest source, and for ddms i have  added  3
> projects(ddmlib,dddmuilib and app) by new project-new java project- browse
> to development/tools/ddms
>
> now remained with "Button/clipboard/color/composite/combo  cannot be
> resolved" !!
>
> How can i add SWT in the dependencies? and this is a ddmuilib project
> (/development/tools/ddms/lib..)
>
> can you help me to resolve the above?
>
> regards
> steve
> On Thu, Dec 4, 2008 at 11:59 PM, Xavier Ducrohet <[EMAIL PROTECTED]> wrote:
>>
>> On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
>> <[EMAIL PROTECTED]> wrote:
>> > Hi ,
>> >
>> > That error gone, i separately executed all the scripts...
>> > Now few more errors are like
>> >
>> > "assert cannot be resolved   client.java
>> > ddmlib/src/com/android/ddmlib"
>>
>> Can you make sure you are setup with compiler compliance level 5.0? I
>> looks like you're building in 1.4 or lower...
>>
>> > "Button cannot be resolved to a type AllocationPanel.java
>> > ddmuilib/src/com/android/ddmuilib"
>>
>> This would mean you don't have SWT in the dependencies. Is this in the
>> ddms plugin project or in the ddmuilib project?
>>
>> > "Can only iterate over an array or an instance of java.lang.iterable
>> > AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib"
>>
>> This is probably a compiler level issue too.
>>
>> Xav
>>
>>
>
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-04 Thread Anonymous Anonymous
Hi Xav,

Thank you,

Now am clear with few of the errors(compiler compliance).
I have synced to latest source, and for ddms i have  added  3
projects(ddmlib,dddmuilib and app) by new project-new java project- browse
to development/tools/ddms

now remained with "Button/clipboard/color/composite/combo  cannot be
resolved" !!

How can i add SWT in the dependencies? and this is a ddmuilib project
(/development/tools/ddms/lib..)

can you help me to resolve the above?

regards
steve
On Thu, Dec 4, 2008 at 11:59 PM, Xavier Ducrohet <[EMAIL PROTECTED]> wrote:

>
> On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
> <[EMAIL PROTECTED]> wrote:
> > Hi ,
> >
> > That error gone, i separately executed all the scripts...
> > Now few more errors are like
> >
> > "assert cannot be resolved   client.java
> > ddmlib/src/com/android/ddmlib"
>
> Can you make sure you are setup with compiler compliance level 5.0? I
> looks like you're building in 1.4 or lower...
>
> > "Button cannot be resolved to a type AllocationPanel.java
> > ddmuilib/src/com/android/ddmuilib"
>
> This would mean you don't have SWT in the dependencies. Is this in the
> ddms plugin project or in the ddmuilib project?
>
> > "Can only iterate over an array or an instance of java.lang.iterable
> > AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib"
>
> This is probably a compiler level issue too.
>
> Xav
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Newbe question - Application folders, how to?

2008-12-04 Thread Dianne Hackborn
If you mean you want to put such a thing in the sliding drawer that you pull
up from the bottom, that is a flat list of apps.  But you can just write an
activity that goes in there, and when your activity is launched show a
folder of whatever sub-activities you want.

On Thu, Dec 4, 2008 at 9:06 AM, Anders Rundgren
<[EMAIL PROTECTED]>wrote:

>
> Thanx!
> But I wanted to create a folder in the application drawer (or what it
> should be called) that also should not look like a folder but as an
> app which would if pressed open the folder with the real apps.  Isn't
> that what most mult-app installs need?
>
> On Nov 29, 11:59 am, Romain Guy <[EMAIL PROTECTED]> wrote:
> > Long press an empty space on Home (or click Menu > Add) then choose
> > Shortcut > Folder. You can drop applications in the newly created
> > folder.
> >
> > On Sat, Nov 29, 2008 at 2:56 AM, Anders Rundgren
> >
> > <[EMAIL PROTECTED]> wrote:
> >
> > > In other operating systems you can typically define a folder and when
> > > clicked it opens a view with applications.
> >
> > > I may be blind, but I don't see any of this using the emulator and SDK
> > > 1.0.
> >
> > > Is the ApiDemos the only GUI-way you can create a suite of associated
> > > applications?
> >
> > --
> > Romain Guywww.curious-creature.org
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Does SensorManager work on emulator of SDK1.0?

2008-12-04 Thread Gameboy

Seems I can not let SensorManager work on SDK1.0 emulator, just copy
some code from samples:

mSensorManager = (SensorManager)getSystemService
(Context.SENSOR_SERVICE);

mSensorManager.registerListener(mGraphView,
SensorManager.SENSOR_ACCELEROMETER |
SensorManager.SENSOR_MAGNETIC_FIELD |
SensorManager.SENSOR_ORIENTATION,
SensorManager.SENSOR_DELAY_FASTEST);

SensorListener is not trigged in its callbacks:
public void onSensorChanged(int sensor, float[] values)
public void onAccuracyChanged(int sensor, int accuracy)

Not sure it's emulator limitation or need other simulator tool to
active sensor change?

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: invoking com.android.internal.*

2008-12-04 Thread Dianne Hackborn
If you want to use private APIs, you need to get the platform source and
build it.  You are only allowed to use private APIs if you are writing code
that is built-in to the android system, so we really don't -want- to make it
easy to do this unless you are doing it for the appropriate reason of
working on the platform/system itself.

On Thu, Dec 4, 2008 at 2:58 PM, dreamerBoy <[EMAIL PROTECTED]> wrote:

>
> Yes, I know about this URL and have downloaded much of the source
> code.  The delicate problem is how to build in access to the internal
> classes that I need and have them be invoked correctly by Android.
> Question is, how to do this without in effect rolling your own version
> of Android i.e., doing a full build ... after all, (this probably
> includes Linux), there are 8 million lines of code in Android.  This
> would likely turn into a project unto itself.
>
> I have an old android.jar from version 0.9 with the internal classes
> available.  When I try to use that, the Eclipse aapt environment
> immediately figures out what I'm trying to do, fails my attempt, and
> gives me a snarky message saying that I'm going to have problems
> trying to do this.
>
> Monsieur Queru - any comment?
>
> Thanks
>
> dreamer
>
> On Dec 3, 10:10 am, Ash <[EMAIL PROTECTED]> wrote:
> > Use GIT to "checkout" the source code and add the internals paths you
> > need to your application.
> >
> > //android.git.kernel.org/platform/frameworks/base/telephony is what
> > you are looking for, I think.
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Strange behavior with AlarmManager.RTC_WAKEUP and PowerManager.WakeLock

2008-12-04 Thread Jon Colverson

On Nov 29, 12:15 pm, Noam  Wolf <[EMAIL PROTECTED]> wrote:
> I have a BroadcastReceiver which acquires a lock onReceive.  I use an
> alarm manager with AlarmManager.RTC_WAKEUP set to broadcast my
> intent.  I have found that when the phone is locked (and asleep) it
> will not wake up sometimes, and when it does many times it will have a
> delay (up to 30 seconds from when the alarm manager was supposed to go
> off).

I'd been having some weird issues with AlarmManager seemingly not
firing my alarms when the device is asleep. I'm using the alarm to
start a service and I was acquiring my wake lock in onStart(). I tried
acquiring the lock in onCreate() instead, and that seems to have
solved the problem. I know that doesn't help you with your
BroadcastReceiver, but perhaps you can rework your app to use a
Service instead?

--
Jon

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: EULA

2008-12-04 Thread lior

Thanks, I actually meant an agreement example as most examples out
them deal with companies (not single developers)


On Dec 4, 9:54 pm, "Xavier Mathews" <[EMAIL PROTECTED]> wrote:
> Text File Html File pdf File pdf is the best by html. But not all
> devices can have a pdf reader. So I would go with HTML For the end
> user license agreement!
>
> On 12/04/2008, lior <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi folks,
> > My friend and I are about to launch are first app on the Market. We
> > are don't have an incorporated company formed (yet) and we would like
> > to protect us with an EULA. Can someone share an EULA format that
> > would work for us.
>
> > Any other advice on the topic of EULA will be great.
>
> > Thanks in advance,
> > Lior
>
> --
> Xavier A. Mathews
> Student/Browser Specialist/Developer/Web-Master
> Google Group Client Based Tech Support Specialist
> Hazel Crest Illinois
> [EMAIL PROTECTED]@[EMAIL PROTECTED]
> "Fear of a name, only increases fear of the thing itself."
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OpenGL context => how to load non power of two dimension bitmap?

2008-12-04 Thread Robert Green

Pretty much the rule with 3D stuff is that you always use power-of-2
size textures.  Many times the texture won't be filled all the way
with usable stuff (lots of black area) but that doesn't matter because
you only really care about the areas within the UV maps anyway.

On Dec 4, 8:39 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> I believe the G1 hardware does not support non-power-of-2 textures.
>
>
>
> On Thu, Dec 4, 2008 at 8:48 AM, Guian <[EMAIL PROTECTED]> wrote:
>
> > in the OpenGL android API  (android.opengl.GLUtils.texImage2D() )
> > (http://code.google.com/android/reference/android/opengl/GLUtils.html
> > )
> >  we can read=>
>
> > "Whether or not bitmap can have non power of two dimensions depends
> > on
> > the current OpenGL context."
>
> > I load my OpenGL context using :
> > mEglContext = mEgl.eglCreateContext(mEglDisplay,
> > mEglConfig,EGL10.EGL_NO_CONTEXT, null);
>
> > do you know what do I have to do in order to load non power of two
> > dimensions bitmap?
>
> --
> Dianne Hackborn
> Android framework engineer
> [EMAIL PROTECTED]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: EULA

2008-12-04 Thread Xavier Mathews

Text File Html File pdf File pdf is the best by html. But not all
devices can have a pdf reader. So I would go with HTML For the end
user license agreement!

On 12/04/2008, lior <[EMAIL PROTECTED]> wrote:
>
> Hi folks,
> My friend and I are about to launch are first app on the Market. We
> are don't have an incorporated company formed (yet) and we would like
> to protect us with an EULA. Can someone share an EULA format that
> would work for us.
>
> Any other advice on the topic of EULA will be great.
>
> Thanks in advance,
> Lior
> >
>


-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
"Fear of a name, only increases fear of the thing itself."

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] EULA

2008-12-04 Thread lior

Hi folks,
My friend and I are about to launch are first app on the Market. We
are don’t have an incorporated company formed (yet) and we would like
to protect us with an EULA. Can someone share an EULA format that
would work for us.

Any other advice on the topic of EULA will be great.

Thanks in advance,
Lior
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Displaying image in SimpleExpandableListAdapter

2008-12-04 Thread androidian

Thanks very much, very helpful !!

On Dec 5, 1:31 pm, "for android" <[EMAIL PROTECTED]> wrote:
> Sorry..
>
> textView.
>
>
>
> > setCompoundDrawablesWithIntrinsicBounds(null, null, drawable, null);
> On Fri, Dec 5, 2008 at 10:00 AM, for android <[EMAIL PROTECTED]> wrote:
>
> >http://code.google.com/android/reference/android/widget/TextView.html...)
>
> > Add the image like this. in the appropriate position...Probable u want it
> > at the right,so use
>
> > textView.setCompoundDrawablesWithIntrinsicBounds(drawable, null, null,
> > null);
>
> > On Fri, Dec 5, 2008 at 5:48 AM, androidian <[EMAIL PROTECTED]> wrote:
>
> >> In the documentation for SimpleExpanderListAdapter (http://
> >> code.google.com/android/reference/android/widget/
> >> SimpleExpandableListAdapter.html)
> >> it says that the views which
> >> ultimately end up defining the display of the individual group and
> >> child rows, must be TextViews.
>
> >> I think I'm reading this right but I need some clarification...does
> >> this mean that there's no way to put an image into these group and
> >> child rows?  e.g. let's say I want my own icon to sit to the right of
> >> the text in a row...can I do that in any way?
>
> >> If not, could I do it by subclassing BaseExpandableListAdapter?  Any
> >> tips?
>
> >> cheers,
> >> Ian
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: sending email

2008-12-04 Thread dileep singh
Thanks Bill Napier

On Fri, Dec 5, 2008 at 3:53 AM, Bill Napier <[EMAIL PROTECTED]> wrote:

>
> Searching this forum for the term "send email" gave me this mail:
>
>
> http://groups.google.com/group/android-developers/browse_thread/thread/88bb36c676e3217b/c1d0be41174b4999?lnk=gst&q=sending+email#c1d0be41174b4999
>
> Which has some example code that you could use.
>
> On Thu, Dec 4, 2008 at 10:51 AM, dilu <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> > i want to develop an aplication which can send email .so can any one
> > provide me sample code or any link that is useful.I got one site
> > davanum srinivas blog,but tht code is too old and full code is not
> > available right now,they have removed it from site.So provide me some
> > link.
> >
> > Thankss
> > dilu
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: audio recording issues

2008-12-04 Thread Dave Sparks

The reason this isn't in 1.0 is because we didn't want to ship a half-
baked API. We have a solution coming soon in the form of a flexible
base layer that supports push and pull models. For example, we have
built an InputStream object on top of it that we will offer as sample
code.

In the future, this development will be taking place in the open
source repo so we can have a real-time dialog about the code as it is
developed. In the meantime, we are working hard to get the code that
has been in development since we forked the 1.0 branch moved into the
open source repo as soon as possible.

On Dec 4, 6:40 pm, MichaelEGR <[EMAIL PROTECTED]> wrote:
> On Dec 2, 5:22 am, "Dorn Hetzel" <[EMAIL PROTECTED]> wrote:
>
> > Maybe we need to start another mailing list for unrequited android
> > realtimeaudio:)
>
> I'm all for focused discussion on this topic as it crosses between
> native concerns and public APIs via the SDK. In my longer original
> post I mentioned that it would be appropriate to evaluate how to not
> only getting something workable on the G1, but keep in mind that
> Android can/will be used in the future conceivably beyond smart phones
> in devices/hardware that may support expanded audio I/O options. I
> favor PortAudio (www.portaudio.com) for the task as it can provide a
> workable real time audio API for desktop Java and Android audio
> development/porting to other hardware configurations. It is also low
> level enough to say even implement javax.sound on top of it for those
> interested in that particular API. More discussion is welcome
> especially in understanding unspecified work being done for the next
> SDK release.
>
> Best,
> --Mike
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: JavaMail and Android - Little excursus

2008-12-04 Thread And-Rider

i am not able to download the *.jar file..can you please post it again




On Oct 9, 4:12 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Due to the huge number of people interested on using JavaMail API in
> Android, I'm publishing this "tutorial".
> There are some things to keep in mind:
> - There are few classes and interfaces to add: DataTransfer and
> Transferable (stripped down from Apache)
> - Modify Sun JavaMail: remove "static files" dependency (some MIME-
> types are associated by using external files, which cannot be opened
> directly by Android, due to security policy), adding these
> associations programmatically; remove some awt.Image dependencies (I
> did not experienced any issue managing images).
>
> I'm providing a file you can get 
> athttp://www.lucabelluccini.com/data/javamail_lbmod.jar
> containing the last version of JAF and JavaMail (modified), plus
> missing classes.
> I hope licences will be respected. Contact me if some of your works
> will use this javamail source code or if there are improvements to be
> appied.
>
> For mail fetching from POP3, IMAP... You can take a look 
> athttp://java.sun.com/products/javamail/...
> Remember that, in Android, the opening of a POP3 or IMAP session is a
> huge task. It is necessary to implement some kind of "run in
> background" or "multithreading".
> Some code athttp://www.lucabelluccini.com/data/retrievemail.snippet.java
> Contact me in case of need or additional information.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Displaying image in SimpleExpandableListAdapter

2008-12-04 Thread for android
Sorry..

textView.
>
> setCompoundDrawablesWithIntrinsicBounds(null, null, drawable, null);



On Fri, Dec 5, 2008 at 10:00 AM, for android <[EMAIL PROTECTED]> wrote:

>
> http://code.google.com/android/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable)
>
> Add the image like this. in the appropriate position...Probable u want it
> at the right,so use
>
>
> textView.setCompoundDrawablesWithIntrinsicBounds(drawable, null, null,
> null);
>
>
>
>
> On Fri, Dec 5, 2008 at 5:48 AM, androidian <[EMAIL PROTECTED]> wrote:
>
>>
>> In the documentation for SimpleExpanderListAdapter (http://
>> code.google.com/android/reference/android/widget/
>> SimpleExpandableListAdapter.html)
>> it says that the views which
>> ultimately end up defining the display of the individual group and
>> child rows, must be TextViews.
>>
>> I think I'm reading this right but I need some clarification...does
>> this mean that there's no way to put an image into these group and
>> child rows?  e.g. let's say I want my own icon to sit to the right of
>> the text in a row...can I do that in any way?
>>
>> If not, could I do it by subclassing BaseExpandableListAdapter?  Any
>> tips?
>>
>> cheers,
>> Ian
>> >>
>>
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Displaying image in SimpleExpandableListAdapter

2008-12-04 Thread for android
http://code.google.com/android/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable)

Add the image like this. in the appropriate position...Probable u want it at
the right,so use


textView.setCompoundDrawablesWithIntrinsicBounds(drawable, null, null,
null);



On Fri, Dec 5, 2008 at 5:48 AM, androidian <[EMAIL PROTECTED]> wrote:

>
> In the documentation for SimpleExpanderListAdapter (http://
> code.google.com/android/reference/android/widget/
> SimpleExpandableListAdapter.html)
> it says that the views which
> ultimately end up defining the display of the individual group and
> child rows, must be TextViews.
>
> I think I'm reading this right but I need some clarification...does
> this mean that there's no way to put an image into these group and
> child rows?  e.g. let's say I want my own icon to sit to the right of
> the text in a row...can I do that in any way?
>
> If not, could I do it by subclassing BaseExpandableListAdapter?  Any
> tips?
>
> cheers,
> Ian
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OpenGL context => how to load non power of two dimension bitmap?

2008-12-04 Thread Dianne Hackborn
I believe the G1 hardware does not support non-power-of-2 textures.

On Thu, Dec 4, 2008 at 8:48 AM, Guian <[EMAIL PROTECTED]> wrote:

>
> in the OpenGL android API  (android.opengl.GLUtils.texImage2D() )
> ( http://code.google.com/android/reference/android/opengl/GLUtils.html
> )
>  we can read=>
>
> "Whether or not bitmap can have non power of two dimensions depends
> on
> the current OpenGL context."
>
> I load my OpenGL context using :
> mEglContext = mEgl.eglCreateContext(mEglDisplay,
> mEglConfig,EGL10.EGL_NO_CONTEXT, null);
>
> do you know what do I have to do in order to load non power of two
> dimensions bitmap?
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Storing pictures in internal storage.

2008-12-04 Thread Dianne Hackborn
The platform has pretty much defined that any android phone will have an
sdcard filesystem available to applications, though it may be temporarily
removed.  IMHO, if a person gets an android phone with a removable SD card,
and removes that card...  well they get what they asked for. :)

On Thu, Dec 4, 2008 at 2:50 PM, Mark Murphy <[EMAIL PROTECTED]> wrote:

>
> Jean-Baptiste Queru wrote:
> > Space on internal storage is very very tight, and users are guaranteed
> > to have an SD card with their G1.
>
> To be fair, users are guaranteed that they *can have* an SD card in
> their G1. That is not the same as saying there is always an SD card
> installed in the G1, as SD cards are removable and can be misplaced,
> used in other equipment, eaten by gerbils, etc.
>
> I'm not quibbling with the decision vis a vis the operation of the
> Camera app, but I also don't want developers thinking the SD card is
> soldered into the G1 or something.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 2009
> http://www.bignerdranch.com/schedule.shtml
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Change Tab Widget icon for currently active tab

2008-12-04 Thread Dianne Hackborn
Make your tab drawable a selector drawable that picks other drawables based
on its state, like the standard tab drawable:




http://schemas.android.com/apk/res/android";>













On Thu, Dec 4, 2008 at 2:45 PM, mscwd01 <[EMAIL PROTECTED]> wrote:

>
> Anyone? I've spent most of today on this problem and its starting to
> get old ;)
>
> On Dec 4, 6:43 pm, mscwd01 <[EMAIL PROTECTED]> wrote:
> > This is not so much a problem, more a question about how to achieve
> > something...
> >
> > I have a tabhost with three tabs. I have 6 icons, 3 in colour and 3 an
> > exact copy but in grayscale.
> >
> > What I want to do is have the coloured version of the icon displayed
> > when the tab is active i.e. being viewed. Otherwise I want the other
> > inactive tabs to show the grayscale version of their icon - and change
> > to the coloured version if they are clicked.
> >
> > So I want a tab to show a coloured icon if active and a grayscale icon
> > if inactive...
> >
> > Any ideas how to achieve this anyone?
> >
> > I have played around with the TabHost onTabChangeListener but havent
> > been able to find a solution.
> >
> > Ideally I need something like:
> >
> > tabHost.setOnTabChangedListener(new TabHost.OnTabChangeListener() {
> >
> >public void onTabChanged(String arg0) {
> > int selectedTab = tabs.getCurrentTab();
> >
> > // Update newly selected tab to display
> > colorful icon
> > // Update previously selected tab to
> > display greyscale icon
> >}
> >   });
> >
> > Thanks
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Network access problem on ubuntu

2008-12-04 Thread taosinker

Brian:
Thanks for your response.

After I double check the issue, I found more strange things.

If I lunch the emulator in file browser, the web browser in android
can access the outside website.
If I lunch the emulator in console by ./emulator command, the web
browser in android cannot access the outside website.

Regards


On 12月4日, 下午5时15分, Brian <[EMAIL PROTECTED]> wrote:
> Probably you forgot to configure APNs.
> Go to Settings -> Wireless controls -> Mobile networks -> Access Point
> Names
> Press Menu to configure a new APN.
>
> On 12月4日, 下午5時01分,taosinker<[EMAIL PROTECTED]> wrote:
>
> > Hi all:
> > Now I build the android code on ubuntu, in the build I can launch the
> > emulator on unbuntu. I met a problem, I cannot connect the website in
> > the emulator. But under the same network env, the android emulator on
> > windows xp can connect the website.
> > I don't know the reason. Who can help me?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem Launching Emulator after integrating codec

2008-12-04 Thread Dianne Hackborn
This kind of discussion should go on one of the android open source platform
groups, thanks!

On Thu, Dec 4, 2008 at 12:40 AM, Yogi <[EMAIL PROTECTED]> wrote:

>
> Hi All,
>
> I have facing problem in launching emulator from the source code.
> I have also set the environment variable ANDROID_PRODUCT_OUT.
> I am getting the following error message,
>
> ~/bin# out/host/linux-x86/bin/emulator
> Cannot locate system directory, which contains 'system.img' and other
> system files.  Please specify one by using '-system ' or by
> defining the environment variable ANDROID_PRODUCT_OUT.
>
> After that i tried with the following command :
>
> ~/bin# out/host/linux-x86/bin/emulator -system out/target/product/
> generic
> Cannot find file: out/target/product/generic/kernel-qemu
> Please specify a valid -kernel file
>
> I am still getting the error message.
> I have integrated my codec library onto android.Is this causing the
> problem?
> Do i need to allocate memory in emulator?
> Please help me out.
>
> Thanks in advance,
> Yogesh
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Storing pictures in internal storage.

2008-12-04 Thread Brian

Jean-Baptiste Queru <[EMAIL PROTECTED]> wrote:
> Soldering the SD card in the G1 sounds like an elegant way to solve
> the issue about the lack of internal storage :)

Might be right. But, consider a situation that T-Mobile may want to
provide some value added software pre-installed in the phone. An extra
internal storage in the phone should be a good idea to do that. From
this point, there is no reason to prevent users from using the extra
internal storage to store pictures or record voice. How do you think?

Mark Murphy <[EMAIL PROTECTED]> wrote:
> > I'm not quibbling with the decision vis a vis the operation of the
> > Camera app, but I also don't want developers thinking the SD card is
> > soldered into the G1 or something.
>
Yes, this is exactly right to my point. At least, we might have a
configuration in the settings page for users to decide where the files
go.

Regards,
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Clear my understanding of RIL.java and RIL daemon

2008-12-04 Thread Brian

JNI is the general interface between any Java code and native C
library.
My understanding is that RIL.java communicate with RIL daemon via unix
socket.
You can check development/pdk/docs/telephony.html for more details.
Regards,

On 12月4日, 下午5時42分, "suneelkumar d" <[EMAIL PROTECTED]> wrote:
> Hi ,
> Can you please clear my understanding as mentioned below..
>
> The interface between RIL.java and RIL daemon
> as i understand from the documentation that it is  a JNI interface.
>
> Is there any good documentation for Telephony and SIM interface with RIL
> layer?
>
> Thanks
> SuneelD
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: zipped android source code

2008-12-04 Thread iyacht

good idea!

On Dec 5, 1:51 am, lucky4me <[EMAIL PROTECTED]> wrote:
> Maybe via GitWeb web interface, download snapshots, 
> e.g.http://android.git.kernel.org/?p=platform/frameworks/base.git;a=snaps...
>
> On Dec 4, 5:26 pm, sal <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > Is there any location on Web where i can get a zipped version of
> > android source code (though not fully , just a application part ).
>
> > Thanks
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: audio recording issues

2008-12-04 Thread MichaelEGR

On Dec 2, 5:22 am, "Dorn Hetzel" <[EMAIL PROTECTED]> wrote:
> Maybe we need to start another mailing list for unrequited android
> realtimeaudio:)

I'm all for focused discussion on this topic as it crosses between
native concerns and public APIs via the SDK. In my longer original
post I mentioned that it would be appropriate to evaluate how to not
only getting something workable on the G1, but keep in mind that
Android can/will be used in the future conceivably beyond smart phones
in devices/hardware that may support expanded audio I/O options. I
favor PortAudio (www.portaudio.com) for the task as it can provide a
workable real time audio API for desktop Java and Android audio
development/porting to other hardware configurations. It is also low
level enough to say even implement javax.sound on top of it for those
interested in that particular API. More discussion is welcome
especially in understanding unspecified work being done for the next
SDK release.

Best,
--Mike
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron

Yes, I've already coded that up and it behaves identical to
HttpURLConnection. So that's
not the root cause of this.

I just tested this on 3g vs. my home wireless and it too behaves
identically, so it's not the
kind of net connectivity that's causing this either.

Mike

On Thu, Dec 4, 2008 at 4:21 PM, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> [EMAIL PROTECTED] wrote:
>> So I switch over to using DefaultHttpClient and friends and it...
>> behaves the same way.
>> (I assume that's what you meant by HTTPComponents aka the apache stuff?)
>
> Yes, the stuff in org.apache.http.*. Documentation can be found at
> http://hc.apache.org, and example code for HttpClient can be found at:
>
> http://hc.apache.org/httpcomponents-client/examples.html
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 Published!
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-04 Thread Mark Murphy

[EMAIL PROTECTED] wrote:
> So I switch over to using DefaultHttpClient and friends and it...
> behaves the same way.
> (I assume that's what you meant by HTTPComponents aka the apache stuff?)

Yes, the stuff in org.apache.http.*. Documentation can be found at 
http://hc.apache.org, and example code for HttpClient can be found at:

http://hc.apache.org/httpcomponents-client/examples.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Published!

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to launch browser activity?

2008-12-04 Thread Mark Murphy

junker37 wrote:
> I have been unable to find out how to launch the browser activity in
> 1.0_r1.

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://...";)));

should do it, I think.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Published!

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Displaying image in SimpleExpandableListAdapter

2008-12-04 Thread androidian

In the documentation for SimpleExpanderListAdapter (http://
code.google.com/android/reference/android/widget/
SimpleExpandableListAdapter.html) it says that the views which
ultimately end up defining the display of the individual group and
child rows, must be TextViews.

I think I'm reading this right but I need some clarification...does
this mean that there's no way to put an image into these group and
child rows?  e.g. let's say I want my own icon to sit to the right of
the text in a row...can I do that in any way?

If not, could I do it by subclassing BaseExpandableListAdapter?  Any
tips?

cheers,
Ian
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Easy way to identify a missed call? (Broadcast)

2008-12-04 Thread code_android_festival_way

Hello!

At the moment I want to write a small application that gives me LED
notifications when I missed a call. (the system only provides me with
notifications when I get a SMS, email or voicemail messages)

Is there a broadcast that gets sent directly after the system missed a
call? This would make it very easy to write that app. In addition it
would be interesting if there is an easy way to get to know if the
user has confirmed that missed call to stop the notification? (perhaps
another broadcast gets sent?)

I know the call log (http://code.google.com/android/reference/android/
provider/CallLog.Calls.html) but to implement it over broadcasts would
be much easier. So are there broadcasts from the system available
covering these situations?

I'm looking forward reading your answer.

Regards!
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-12-04 Thread Dianne Hackborn
FLAG_CANCEL_CURRENT will almost certainly work.  If you look at the code, if
you have the flag set it just removes any existing intent and creates a
whole new pending intent with the intent you provide.  The returned
PendingIntent can't contain the old intent data.

On Thu, Dec 4, 2008 at 1:19 AM, Matthias <[EMAIL PROTECTED]> wrote:

>
> I'm pretty sure I used FLAG_CANCEL_CURRENT to no avail... passing
> different request codes each time was the only way to create a new
> intent. I spent a whole day on this combining flags to no avail, until
> I tried the workaround by Guillaume.
>
> On 25 Nov., 19:24, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> > It may or may not be the right thing to do.  If you are not going to use
> the
> > old intent, you should just use FLAG_CANCEL_CURRENT to first cancel the
> > existing one so it can be replaced with your new one.
> >
> > On Tue, Nov 25, 2008 at 12:29 AM, Guillaume Perrot <
> [EMAIL PROTECTED]
> >
> >
> >
> > > wrote:
> > > Yes using request codes is the right thing to do, this is just a
> > > documentation bug in the end.
> >
> > > 2008/11/25 alex <[EMAIL PROTECTED]>
> >
> > >> Ok, so I ran into this exact issue too. I need to send different data
> > >> via the extras of the intent, but the old intent with the old extras
> > >> keeps getting delivered unless I pass unique values into the
> > >> mysterious requestCode parameter.
> >
> > >> So this begs the question: is using the requestCode in this way
> > >> kosher?  Is there a better way?
> >
> > >> BTW, I'm using PendingIntents for alarms and notifications.
> >
> > >> On Nov 21, 2:47 pm, Guillaume Perrot <[EMAIL PROTECTED]>
> wrote:
> > >> > Thanks for your answer, it eventually solves the mystery \o/
> > >> > I quoted it in the Issue 863.
> > >>http://code.google.com/p/android/issues/detail?id=863
> >
> > >> > On 21 nov, 23:38, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> >
> > >> > > Ah you are right, the request code is also part of its identity.
> >
> > >> > > For the nitty gritty details, this file defines a PendingIntent
> > >> maintained
> > >> > > by the system and the full key used to match them:
> >
> > >> > >
> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;.
> > >> ..
> >
> > >> > > On Fri, Nov 21, 2008 at 3:07 AM, Matthias <
> [EMAIL PROTECTED]>
> > >> wrote:
> >
> > >> > > > And to further clear up my intentions:
> >
> > >> > > > I have a model class called "Event". It represents user activity
> in
> > >> my
> > >> > > > system (such as rating items or writing messages). These events
> are
> > >> > > > delivered to the user through NotificationManager. For every
> such
> > >> > > > event, the NM calls Event.toNotification() and delivers the
> > >> > > > notification.
> >
> > >> > > > Furthermore, I have an activity called EventDetailsActivity.
> This is
> > >> > > > triggered whenever the user taps on the notification to read the
> > >> event
> > >> > > > info in full length. This implies primarily two things:
> >
> > >> > > > 1. I must be able to pass an Event model object to
> > >> > > > EventDetailsActivity whenever the user taps the corresponding
> > >> > > > notification
> > >> > > > 2. I must be able to reuse EventDetailsActivity even it is
> already
> > >> > > > displaying another event (e.g. update it via onNewIntent())
> >
> > >> > > > Thus, in Event.toNotification(), I do this:
> >
> > >> > > >public final Notification toNotification(Context context) {
> > >> > > >Intent intent = new Intent(context,
> > >> > > > EventDetailsActivity.class);
> > >> > > >intent.putExtra("event", this);
> > >> > > >intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
> > >> > > >| Intent.FLAG_ACTIVITY_SINGLE_TOP);
> > >> > > >configureIntent(intent); // template method for
> subclasses
> >
> > >> > > >PendingIntent contentIntent = PendingIntent.getActivity
> > >> > > > (context,
> > >> > > >requestCode++, intent, 0);
> >
> > >> > > >Notification notification = new Notification
> > >> > > > (getNotificationIcon(),
> > >> > > >getTickerText(), getDate().getTime());
> > >> > > >notification.setLatestEventInfo(context, getTitle(),
> getText
> > >> > > > (),
> > >> > > >contentIntent);
> >
> > >> > > >return notification;
> > >> > > >}
> >
> > >> > > > Hope that clears up my intentions.
> >
> > >> > > > On 21 Nov., 11:14, Matthias <[EMAIL PROTECTED]> wrote:
> > >> > > > > Well, when /do/ PendingIntents match? All I can say is that
> > >> calling
> > >> > > > > PendingActivity.getActivity() created a new PendingIntent each
> > >> time I
> > >> > > > > called it (I checked the OID in the debugger), and in this new
> > >> object,
> > >> > > > > I always store a new Intent object.
> >
> > >> > > > > As Guillaume suggested, I solved the problem by calling
> > >> getActivity()
> > >> > > > > like this:
> >
> > >> > > > > private static int requestCode;
> > >> > > >

[android-developers] How to launch browser activity?

2008-12-04 Thread junker37

I have been unable to find out how to launch the browser activity in
1.0_r1.

I've found a couple of posts giving examples of how to do it, but they
seem out of date as some of the functions are no longer available.

Here is what I have:
Intent intent = new Intent();
ComponentName comp = new ComponentName
("com.google.android.browser",
"com.google.android.browser.BrowserActivity");
intent.setComponent(comp);
intent.setAction("android.intent.action.VIEW");
intent.addCategory("android.intent.category.BROWSABLE");
Uri uri = Uri.parse(url);
intent.setData(uri);
try
{
startActivity(intent);
}
catch (Exception e)
{
e.printStackTrace();
}

But I get an ActivityNotFound exception.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron

So I switch over to using DefaultHttpClient and friends and it...
behaves the same way.
(I assume that's what you meant by HTTPComponents aka the apache stuff?)

Does anybody have any direct experience trying to post largish amounts of data?
It doesn't seem like what I'm doing here is particularly unusual. It
seems fairly
linear fwiw. above about 5kb and it starts getting the 5 second ANR's,
at arounds
6kb, it takes about 6 seconds and almost always triggers an ANR.

Mike

On Thu, Dec 4, 2008 at 2:46 PM, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> enervatron wrote:
>> FWIW, I'm using HttpURLConnection to create and read/write the data,
>
> Have you tried switching to the HTTPComponents API in Android? It's
> possible the problem is limited to the implementation of
> HttpURLConnection, and your problem will go away by using another HTTP API.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 2009
> http://www.bignerdranch.com/schedule.shtml
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Application Context

2008-12-04 Thread Dianne Hackborn
Nope, there is no current context.  You need to explicitly supply the
context.

On Wed, Dec 3, 2008 at 4:02 PM, Cezar Augustus Signori <
[EMAIL PROTECTED]> wrote:

>
> Hi!
>
> It would be pretty good to obtain the application context from a
> static method, without the use of an Activity object.
>
> I mean, there is a lot of frameworks that do it and its really very
> useful..
>
> Something like Context.getCurrentInstance() would help a lot..
>
> Someone know anything about that on Android?
>
> Thanks!
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Foreign Language support/Adding new system fonts

2008-12-04 Thread Dianne Hackborn
Sorry, at this point applications can't add new system fonts, they can only
use custom fonts in their own app.

We don't even have a font picker, which I think would be the thing to do
before allowing new fonts to be added. :)

On Wed, Dec 3, 2008 at 4:19 PM, Eric <[EMAIL PROTECTED]> wrote:

>
> Can new system fonts be added to Android? Can applications refer to
> them?
>
> Several threads have addressed this, but I can't find a complete
> answer.
>
> The only method I have found to change system fonts is with "adb
> push". If I use adb to install a new font can an app use it? Or does
> Android only allow the "Droid" fonts it is shipped with?
>
> Is there a user friendly way to install a system font? (no adb, no
> hacking disk images). Can an app install a system font?
>
> I'm writing an app that needs foreign language support which is not
> currently part of Android. I'm especially interested in Koine (New
> Testament) Greek. Modern Greek is kind of supported, but Koine has a
> lot more diacritical marks (for example: Εν ἀρχῆ ἦν ὁ λόγος will not
> display correctly in Android). I can include a font with my
> application. However this limits it's use to only my app. Adding a
> good unicode font can add several 100k to my app, which makes it many
> times bigger than entire rest of the app. This is a waste, especially
> if more than one app wants to use the font. (Is there a way to share
> fonts across apps without using a system font?) In the case of trying
> to use an Android phone in a foreign language a system-wide font is an
> absolute necessity.
>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is Bitmap.compress thread safe?

2008-12-04 Thread Dianne Hackborn
Should be fine.

On Thu, Dec 4, 2008 at 9:00 AM, webmonkey <[EMAIL PROTECTED]> wrote:

>
> Because the Bitmap.compress(Bitmap.CompressFormat format, int quality,
> OutputStream stream) function can sometimes take a long time I am
> calling it in a separate thread with low priority. During this time I
> am drawing the same bitmap in the UI thread using Canvas.drawBitmap
> (Bitmap bitmap, float left, float top, Paint paint) at 30fps.
>
> Although the bitmap is mutable I am not writing to the bitmap during
> this period. It works fine but I want to make sure that it is safe to
> do this.
>
> Thanks
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: intent-filter for addContact and editContact ?

2008-12-04 Thread Dianne Hackborn
Yes, this is the way to monitor for content provider changes.  Note that
this is deliberately not done as a broadcast, you can only receive these
while you are running by explicitly registering for them, because we didn't
want to get in the situation of launching 1 or more apps every time some
piece of data in a content provider changes.

On Thu, Dec 4, 2008 at 3:08 PM, Bill Napier <[EMAIL PROTECTED]> wrote:

>
> I would start looking here:
>
>
> http://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Uri
> ,
> boolean, android.database.ContentObserver)
>
> with ContentObserver.registerContentObserver which sounds like it
> should do what you want.  I haven't used the function yet, so you may
> have to mess with it.  Please report back you results so others can
> know the answer too.  Thanks!
>
> Bill
>
> On Thu, Dec 4, 2008 at 6:11 AM, jaspher <[EMAIL PROTECTED]> wrote:
> >
> > hello
> >
> > I'm looking for a intent-filter which can start my BroadcastReciver
> > when somebody adds a new contact or edit a contact. Unfortunately I
> > couldn't finde something like that. Does it exist?
> > If not how can I get a Notification when somebody added a new contact
> > or something like that?
> > thanks in advance
> >
> > jaspher
> >
> > >
> >
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: intent-filter for addContact and editContact ?

2008-12-04 Thread Bill Napier

I would start looking here:

http://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Uri,
boolean, android.database.ContentObserver)

with ContentObserver.registerContentObserver which sounds like it
should do what you want.  I haven't used the function yet, so you may
have to mess with it.  Please report back you results so others can
know the answer too.  Thanks!

Bill

On Thu, Dec 4, 2008 at 6:11 AM, jaspher <[EMAIL PROTECTED]> wrote:
>
> hello
>
> I'm looking for a intent-filter which can start my BroadcastReciver
> when somebody adds a new contact or edit a contact. Unfortunately I
> couldn't finde something like that. Does it exist?
> If not how can I get a Notification when somebody added a new contact
> or something like that?
> thanks in advance
>
> jaspher
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ContentProvider/SQLiteDatabase.delete() Docs

2008-12-04 Thread Mark Murphy

Jack C. Holt wrote:
> The online docs for ContentProvider/SQLiteDatabase.delete() do not
> document the third parameter "String[] whereArgs".
> 
> I assume that the idea is that the second parameter (the where clause)
> could contain replaceable parameters in the form of question marks (?)
> and the Strings contained in the whereArgs array would replace the
> question marks in the where clause.
> 
> Could someone verify/debunk this assumption?

I can verify this assumption for SQLiteDatabase.

Technically speaking, I think it is up to the implementations of 
ContentProvider what they do with those parameters, but I suspect most 
will also treat them as a WHERE clause and ? parameters.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: intent-filter for addContact and editContact ?

2008-12-04 Thread Bill Napier

I would start looking here:

http://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Uri,
boolean, android.database.ContentObserver)

with ContentObserver.registerContentObserver which sounds like it
should do what you want.  I haven't used the function yet, so you may
have to mess with it.  Please report back you results so others can
know the answer too.  Thanks!

Bill

On Thu, Dec 4, 2008 at 6:11 AM, jaspher <[EMAIL PROTECTED]> wrote:
>
> hello
>
> I'm looking for a intent-filter which can start my BroadcastReciver
> when somebody adds a new contact or edit a contact. Unfortunately I
> couldn't finde something like that. Does it exist?
> If not how can I get a Notification when somebody added a new contact
> or something like that?
> thanks in advance
>
> jaspher
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Storing pictures in internal storage.

2008-12-04 Thread Jean-Baptiste Queru

You're right, I actually meant "users are guaranteed to have received
an SD card with their G1".

Soldering the SD card in the G1 sounds like an elegant way to solve
the issue about the lack of internal storage :)

JBQ

On Thu, Dec 4, 2008 at 2:50 PM, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> Jean-Baptiste Queru wrote:
>> Space on internal storage is very very tight, and users are guaranteed
>> to have an SD card with their G1.
>
> To be fair, users are guaranteed that they *can have* an SD card in
> their G1. That is not the same as saying there is always an SD card
> installed in the G1, as SD cards are removable and can be misplaced,
> used in other equipment, eaten by gerbils, etc.
>
> I'm not quibbling with the decision vis a vis the operation of the
> Camera app, but I also don't want developers thinking the SD card is
> soldered into the G1 or something.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 2009
> http://www.bignerdranch.com/schedule.shtml
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: invoking com.android.internal.*

2008-12-04 Thread dreamerBoy

Yes, I know about this URL and have downloaded much of the source
code.  The delicate problem is how to build in access to the internal
classes that I need and have them be invoked correctly by Android.
Question is, how to do this without in effect rolling your own version
of Android i.e., doing a full build ... after all, (this probably
includes Linux), there are 8 million lines of code in Android.  This
would likely turn into a project unto itself.

I have an old android.jar from version 0.9 with the internal classes
available.  When I try to use that, the Eclipse aapt environment
immediately figures out what I'm trying to do, fails my attempt, and
gives me a snarky message saying that I'm going to have problems
trying to do this.

Monsieur Queru - any comment?

Thanks

dreamer

On Dec 3, 10:10 am, Ash <[EMAIL PROTECTED]> wrote:
> Use GIT to "checkout" the source code and add the internals paths you
> need to your application.
>
> //android.git.kernel.org/platform/frameworks/base/telephony is what
> you are looking for, I think.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Bitmap.getPixels()

2008-12-04 Thread jman

It's 50% transparent, i.e. alpha channel is 0x80, paint color is
0x8000ff00


On Dec 4, 8:52 am, Robert Green <[EMAIL PROTECTED]> wrote:
> Did you mean partially transparent green or fully transparent?
>
> On Dec 4, 1:21 am, jman <[EMAIL PROTECTED]> wrote:
>
> > I painted a transparent green curve on top of a background bitmap.
> > When I use Bitmap.getPixels() to get the result into byte array, I
> > always get a black curve.  The curve position is correct but color
> > isn't.  Is there anything I need to do before calling Bitmap.getPixels
> > ()?
>
> > Thanks.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Storing pictures in internal storage.

2008-12-04 Thread Mark Murphy

Jean-Baptiste Queru wrote:
> Space on internal storage is very very tight, and users are guaranteed
> to have an SD card with their G1.

To be fair, users are guaranteed that they *can have* an SD card in 
their G1. That is not the same as saying there is always an SD card 
installed in the G1, as SD cards are removable and can be misplaced, 
used in other equipment, eaten by gerbils, etc.

I'm not quibbling with the decision vis a vis the operation of the 
Camera app, but I also don't want developers thinking the SD card is 
soldered into the G1 or something.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-04 Thread Mark Murphy

enervatron wrote:
> FWIW, I'm using HttpURLConnection to create and read/write the data,

Have you tried switching to the HTTPComponents API in Android? It's 
possible the problem is limited to the implementation of 
HttpURLConnection, and your problem will go away by using another HTTP API.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Change Tab Widget icon for currently active tab

2008-12-04 Thread mscwd01

Anyone? I've spent most of today on this problem and its starting to
get old ;)

On Dec 4, 6:43 pm, mscwd01 <[EMAIL PROTECTED]> wrote:
> This is not so much a problem, more a question about how to achieve
> something...
>
> I have a tabhost with three tabs. I have 6 icons, 3 in colour and 3 an
> exact copy but in grayscale.
>
> What I want to do is have the coloured version of the icon displayed
> when the tab is active i.e. being viewed. Otherwise I want the other
> inactive tabs to show the grayscale version of their icon - and change
> to the coloured version if they are clicked.
>
> So I want a tab to show a coloured icon if active and a grayscale icon
> if inactive...
>
> Any ideas how to achieve this anyone?
>
> I have played around with the TabHost onTabChangeListener but havent
> been able to find a solution.
>
> Ideally I need something like:
>
> tabHost.setOnTabChangedListener(new TabHost.OnTabChangeListener() {
>
>                        public void onTabChanged(String arg0) {
>                             int selectedTab = tabs.getCurrentTab();
>
>                             // Update newly selected tab to display
> colorful icon
>                             // Update previously selected tab to
> display greyscale icon
>                        }
>                   });
>
> Thanks
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron

On Thu, Dec 4, 2008 at 2:25 PM, Justin (Google Employee) <[EMAIL PROTECTED]> 
wrote:
>
> My guess is that you're calling Thread.run() from the UI thread. This
> will execute the thread in the UI thread. You need to call Thread.start
> () for it to execute in its own thread.

No, I'm definitely calling .start (), and it's definitely running as a
background
thread otherwise doing the same thing with a little post data and lots
of post response wouldn't work either. That's why I don't understand this
because it seems to correlate with the writing of http post data and nothing
else. Which doesn't make any sense to me.

Mike
>
> Let me know if this isn't the issue.
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Dec 4, 1:33 pm, enervatron <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I'm using a helper thread to post data back to a web site. What I
>> notice is that I'm
>> getting an Application Not Responding back in the main thread even
>> though it's
>> not doing anything other than interrupting the helper thread to wake
>> up. If the
>> amount of data in the post is small (~ couple hundred bytes), I don't
>> have a
>> problem, but when it gets moderately large (~ 10kb) it reliably stalls
>> the main
>> UI thread and gets (appropriately) an ANR. Even weirder is that if I
>> time from
>> when I start the post to when it receives the entire reply (ie, using
>> Date().getTime())
>> in the helper thread, it shows that it's only taking about .5 seconds
>> to complete,
>> even though it  takes ~10 seconds to become responsive again.
>>
>> This *only* seems to be the case writing the post data. If I do a post
>> of a small
>> amount of data with a large amount of data coming back from a web
>> site, the
>> app remains responsive and unlike the above problem, the timing
>> numbers in
>> the thread agree with how long it actually took.
>>
>> FWIW, I'm using HttpURLConnection to create and read/write the data,
>> and
>> I'm aware that I need to use Handler to affect the UI from the helper
>> thread.
>> Also: this is on the G1 hardware. I've also fiddled with priorities,
>> etc, to
>> no avail, so I'm pretty stumped as to why the helper thread is
>> interacting
>> with the UI thread.
>>
>> Mike
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Storing pictures in internal storage.

2008-12-04 Thread Jean-Baptiste Queru

Space on internal storage is very very tight, and users are guaranteed
to have an SD card with their G1.

JBQ

On Thu, Dec 4, 2008 at 12:41 AM, Brian <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> The default behavior seems to store the pictures captured by camera
> into the external storage (the SD card). Besides, the Camera
> application won't even work if there is no SD card inserted. Why?
> Is there any possibility for users to store the captured pictures in
> the internal storage?
> Probably a prompt for storage location before saving would help users
> know and decide where the captured picture is.
>
> Thanks for anyone help on this.
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-04 Thread Justin (Google Employee)

My guess is that you're calling Thread.run() from the UI thread. This
will execute the thread in the UI thread. You need to call Thread.start
() for it to execute in its own thread.

Let me know if this isn't the issue.

Cheers,
Justin
Android Team @ Google

On Dec 4, 1:33 pm, enervatron <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm using a helper thread to post data back to a web site. What I
> notice is that I'm
> getting an Application Not Responding back in the main thread even
> though it's
> not doing anything other than interrupting the helper thread to wake
> up. If the
> amount of data in the post is small (~ couple hundred bytes), I don't
> have a
> problem, but when it gets moderately large (~ 10kb) it reliably stalls
> the main
> UI thread and gets (appropriately) an ANR. Even weirder is that if I
> time from
> when I start the post to when it receives the entire reply (ie, using
> Date().getTime())
> in the helper thread, it shows that it's only taking about .5 seconds
> to complete,
> even though it  takes ~10 seconds to become responsive again.
>
> This *only* seems to be the case writing the post data. If I do a post
> of a small
> amount of data with a large amount of data coming back from a web
> site, the
> app remains responsive and unlike the above problem, the timing
> numbers in
> the thread agree with how long it actually took.
>
> FWIW, I'm using HttpURLConnection to create and read/write the data,
> and
> I'm aware that I need to use Handler to affect the UI from the helper
> thread.
> Also: this is on the G1 hardware. I've also fiddled with priorities,
> etc, to
> no avail, so I'm pretty stumped as to why the helper thread is
> interacting
> with the UI thread.
>
> Mike
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Play Video Files in Android

2008-12-04 Thread brian

Do this:

MediaPlayer mp = new MediaPlayer();
mp.setDataSource(PATH_TO_FILE);
mp.prepare();
mp.start();

Brian

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Alert on menu select

2008-12-04 Thread bo
Hi all,

I'm trying to display pop-up alert when user clicks on menu option that has
not been implemented yet (this is "try it" app so please do not tell me that
I should hide or disable the opt). The dialog gets built fine but on
dlg.show() I get the following exception
android.view.WindowManager$BadTokenException: Unable to add window -- token
null is not for an application

Here's calling code from Activity#onOptionsItemSelected

case R.id.report_menu_3days:
ReportUtils.alert(getBaseContext(),
R.string.err_not_implemented);
return super.onOptionsItemSelected(item);

And here's ReportUtils#alert method

public static void alert(Context context, int messageId) {
Builder bldr = new
AlertDialog.Builder(context).setTitle(messageId).setCancelable(true);
OnClickListener listnr = new OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
}
};
bldr.setPositiveButton("OK", listnr);
bldr.show();
}

I suspect that I'm getting this since by the time bldr#show() is called I'm
still within a menu UI but how do I do it otherwise?

Bob

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Largish HTTP Post vs. ANR

2008-12-04 Thread enervatron

Hi all,

I'm using a helper thread to post data back to a web site. What I
notice is that I'm
getting an Application Not Responding back in the main thread even
though it's
not doing anything other than interrupting the helper thread to wake
up. If the
amount of data in the post is small (~ couple hundred bytes), I don't
have a
problem, but when it gets moderately large (~ 10kb) it reliably stalls
the main
UI thread and gets (appropriately) an ANR. Even weirder is that if I
time from
when I start the post to when it receives the entire reply (ie, using
Date().getTime())
in the helper thread, it shows that it's only taking about .5 seconds
to complete,
even though it  takes ~10 seconds to become responsive again.

This *only* seems to be the case writing the post data. If I do a post
of a small
amount of data with a large amount of data coming back from a web
site, the
app remains responsive and unlike the above problem, the timing
numbers in
the thread agree with how long it actually took.

FWIW, I'm using HttpURLConnection to create and read/write the data,
and
I'm aware that I need to use Handler to affect the UI from the helper
thread.
Also: this is on the G1 hardware. I've also fiddled with priorities,
etc, to
no avail, so I'm pretty stumped as to why the helper thread is
interacting
with the UI thread.

Mike

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Screen on/off Intents Can't Be Declared in AndroidManifest?

2008-12-04 Thread Carter

I'm trying to detect when the phone's screen turns on and off with the
SCREEN_ON and SCREEN_OFF Intents.  A BroadcastReceiver declared in the
AndroidManifest doesn't work with these screen on/off Intents, but
instantiating a BroadcastReceiver programatically at runtime does
work.

As far as troubleshooting goes: my AndroidManifest BroadcastReceiver
is properly receiving other Intents, such as for phone boot.  There is
no helpful information in LogCat.  And this isn't a permissions issue,
since it works when declared programatically.

There are no explanations in the JavaDocs (e.g. its not like the
battery changed Intent which cannot be declared in the Manifest),
although when searching through the Android source I discovered that
none of the Android OS services declare interest this particular
Intent in XML either.

So any ideas why I can't declare SCREEN_ON and SCREEN_OFF in the
AndroidManifest?

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Tetris Game Clone - Ready to download - Any comment is welcomed

2008-12-04 Thread g1port.com



Hi guys,

Here is probably the first read-to-download Tetris clone for Android
G1.

Any comment, bug, advice is highly welcomed.

Thank you in advance.

APK:
http://www.g1port.com/application_bin/tetris_g1Port_demo_sgn.apk

(sorry it is a demo version for now)

Web Site:
http://www.g1port.com/


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] kSOAP2 with SDK1.0

2008-12-04 Thread Smith, Miles J (DOH)
I'm having a helluva time trying to get ksoap2 working with Android.

All the samples I see (including the modified .jar with
AndroidHttpTransport in it) fail because of the relocation of
org/apache/commons/httpclient/SimplehttpconnectionManager.

Can someone provide me with a tutorial, sample, anything that will show
me how to at least get the library working correctly?

It seems like a major oversight for Google to not include some way of
parsing WS correctly!

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Problem Launching Emulator after integrating codec

2008-12-04 Thread Yogi

Hi All,

I have facing problem in launching emulator from the source code.
I have also set the environment variable ANDROID_PRODUCT_OUT.
I am getting the following error message,

~/bin# out/host/linux-x86/bin/emulator
Cannot locate system directory, which contains 'system.img' and other
system files.  Please specify one by using '-system ' or by
defining the environment variable ANDROID_PRODUCT_OUT.

After that i tried with the following command :

~/bin# out/host/linux-x86/bin/emulator -system out/target/product/
generic
Cannot find file: out/target/product/generic/kernel-qemu
Please specify a valid -kernel file

I am still getting the error message.
I have integrated my codec library onto android.Is this causing the
problem?
Do i need to allocate memory in emulator?
Please help me out.

Thanks in advance,
Yogesh

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] intent-filter for addContact and editContact ?

2008-12-04 Thread jaspher

hello

I'm looking for a intent-filter which can start my BroadcastReciver
when somebody adds a new contact or edit a contact. Unfortunately I
couldn't finde something like that. Does it exist?
If not how can I get a Notification when somebody added a new contact
or something like that?
thanks in advance

jaspher

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to explicitly establish connection to the underlying GPRS or WiFi?

2008-12-04 Thread Qualyxx

In Window Mobile or Brew, the application has to make a
ConnMgrEstablishConnection call to connect to the underlying data
network. I don't see such API exists in Android.

The question is:  when is the the network connection with the
underlying data network established? when the first Socket connect
call is made? when the browser makes a URL request? And when does it
decide to close the network connection and is there an API to
accomplish that?

The android.net.ConnectivityManager seems to provide network status
but no explicit calls to open and end the data connection to the
network.

Any hints would be appreciated.

Thanks,

Yang

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Debugging applications with Google MAP api on an actual device

2008-12-04 Thread BobW

When I run my map application in the debugger, I can see the map on
the emulator (I have a MAP key for my debugger from Google), but I
can't see it from my actual device.
I can get a "release" key from Google, and sign a apk with my
certificate, but I am not sure how to install it on the device or how
to debug the application on the actual device.

Any advice would be appreciated.

Thanks

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Network access problem on ubuntu

2008-12-04 Thread Brian

Probably you forgot to configure APNs.
Go to Settings -> Wireless controls -> Mobile networks -> Access Point
Names
Press Menu to configure a new APN.

On 12月4日, 下午5時01分, taosinker <[EMAIL PROTECTED]> wrote:
> Hi all:
> Now I build the android code on ubuntu, in the build I can launch the
> emulator on unbuntu. I met a problem, I cannot connect the website in
> the emulator. But under the same network env, the android emulator on
> windows xp can connect the website.
> I don't know the reason. Who can help me?

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



AW: [android-developers] Re: Cannot delete rows from sqlite database

2008-12-04 Thread visionera gmbh
hi,

you have to use setTransactionSuccessful() as in

int nRows = 0;
mDb.beginTransaction();
try {
  nRows = mDb.delete("mytable", KEY_ITEM + "=" + rowId,null);
  mDb.setTransactionSuccessful(); // implies commit at endTransaction
} catch( SQLException anyDbError }
  // error logging ...
} finally {
  mDb.endTransaction();
}
return nRows > 0;


worx for me
marcus




Von: Jack C. Holt <[EMAIL PROTECTED]>
An: Android Developers 
Gesendet: Donnerstag, den 4. Dezember 2008, 19:03:19 Uhr
Betreff: [android-developers] Re: Cannot delete rows from sqlite database


See
http://code.google.com/android/reference/android/database/sqlite/SQLiteDatabase.html#beginTransaction()

On Nov 17, 3:28 pm, techvd <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm having a strange issue deleting rows from a sqlite database.
> Here's the code snippet:
>
> mDb.beginTransaction();
> int nRows = mDb..delete("mytable", KEY_ITEM + "=" + rowId,
> null);
> mDb.endTransaction();
> return nRows > 0;
>
> The database is opened for write. The code above executes perfectly;
> it even returns the number of rows deleted. However, the rows are
> still in the table (even after I exit the app restart, etc.). Am I
> missing anything here. The rest of the code is boilerplate and I can
> read the data from the tables fine.
>
> Thanks!


  
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Conference call

2008-12-04 Thread Rockingteam

Hi All,

Android based phone allows us to make conference call by merging
calls. Is it possible to initiate 2 or more calls and merge them
through an application, ie., by code? If so then how to proceed?

Thanks in advance.


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Clear my understanding of RIL.java and RIL daemon

2008-12-04 Thread suneelkumar d
Hi ,
Can you please clear my understanding as mentioned below..

The interface between RIL.java and RIL daemon
as i understand from the documentation that it is  a JNI interface.

Is there any good documentation for Telephony and SIM interface with RIL
layer?

Thanks
SuneelD

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] regarding Googlenav and xmpp packages

2008-12-04 Thread Pratyush Chandra Malneedi a.k.a Vikky

Hai -- where can i find the classes related to googlenav and xmpp ? I
did google every where but i couldnt see them -- are they from the old
sdk

can some one please help me

I have seen some applications online using these classes in the import
statements

import com.google.googlenav
import com.google.xmpp.*;


Thanks
pratyush

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to get ICCID ?

2008-12-04 Thread mianor

Hi,

I'm looking for a way to retrieve the ICCID from the SIM card to
authenticate a user.
When googling it, it appears there was a class
android.telephony.TelephonyProperties with the property PROPERTY_ICCID
in a Android beta version.
Google removed this class from the current release. Do you know if
there's another alternative to retrieve this information?

Thanks
Romain

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Storing pictures in internal storage.

2008-12-04 Thread Brian

Hi all,

The default behavior seems to store the pictures captured by camera
into the external storage (the SD card). Besides, the Camera
application won't even work if there is no SD card inserted. Why?
Is there any possibility for users to store the captured pictures in
the internal storage?
Probably a prompt for storage location before saving would help users
know and decide where the captured picture is.

Thanks for anyone help on this.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: sending email

2008-12-04 Thread Bill Napier

Searching this forum for the term "send email" gave me this mail:

http://groups.google.com/group/android-developers/browse_thread/thread/88bb36c676e3217b/c1d0be41174b4999?lnk=gst&q=sending+email#c1d0be41174b4999

Which has some example code that you could use.

On Thu, Dec 4, 2008 at 10:51 AM, dilu <[EMAIL PROTECTED]> wrote:
>
> Hi
> i want to develop an aplication which can send email .so can any one
> provide me sample code or any link that is useful.I got one site
> davanum srinivas blog,but tht code is too old and full code is not
> available right now,they have removed it from site.So provide me some
> link.
>
> Thankss
> dilu
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Send message

2008-12-04 Thread andrex

I solved, Just look the class notification, and notificionManager, if
somebody has a quesuion about how, just ask
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to best build Android SDK samples in Eclipse?

2008-12-04 Thread Freddy

Great thanks.  I was trying to add each project individually.  I
didn't realize the ApiDemos were all in a single project starting at
the samples\ApiDemos folder.

Thanks for the tip!  Works great now.

On Dec 4, 11:51 am, Xavier Ducrohet <[EMAIL PROTECTED]> wrote:
> Hello,
>
> just use the new project wizard, and select "create project from
> existing source".
> You can then point the wizard to the ApiDemos folder.
>
> Xav
>
>
>
> On Thu, Dec 4, 2008 at 11:26 AM, Freddy <[EMAIL PROTECTED]> wrote:
>
> > I installed the Android SDK and Eclipse and built some simple apps
> > using the new Andriod Project wizard.  Now I would like to build/debug
> > some of the nice apps included with the SDK (samples\ApiDemos\src\com
> > \example\android\apis\app) .  For example, there's a
> > PreferencesFromCode.java sample I would like to build.  I started
> > going down the road of creating a new app and copying the sample code
> > and resource files into it but that's just not fun (and I assume since
> > Eclipse is the recommended platform that there's got to be a slick way
> > to do this).  Thanks.
>
> > What's the best method to import and build these SDK sample apps?- Hide 
> > quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: adb devices showing device offline

2008-12-04 Thread bloodycorner

The drivers installed automatically by Vista are not the ones you
need.

You need to enable usb debugging on your G1, then point it to the
drivers when it prompts you for them

More details below:
http://androidcommunity.com/forums/f4/how-to-install-apps-using-adb-4482/



On Nov 2, 12:59 am, "stephen.chambers" <[EMAIL PROTECTED]>
wrote:
> I'm also rather new to this, but I can't seem to get the actual G1
> device to show up when running "adb devices" on Vista. I don't know if
> this is the same problem or not. I rebooted my PC as well as the
> device. ADB is running because "adb devices" shows the emulator when
> it is running. All I have to do is connect through the USB, right?
> Vista recognized the device and thinks it downloaded the driver
> correctly. When I use File Explorer, I can look around on the device
> itself (although I expected a lot more than just three directories).
> Anyone seen this kind of thing before? Everything had been going
> swimmingly up until this point.
>
> Stephen
>
> On Oct 31, 2:17 pm, "Rob Franz" <[EMAIL PROTECTED]> wrote:
>
> > RichardI ran into multiple instances of the device as well.  Rebooting fixes
> > it.  It sounds like adb is not properly removing the entry when the device
> > is disconnected - I had the phone plugged in via USB and unplugged several
> > times before reconnecting.
>
> > This was under XP too.
>
> > Rob
>
> > On Fri, Oct 31, 2008 at 1:48 PM, jarkman <[EMAIL PROTECTED]> wrote:
>
> > > Al - I am running on XP, and seeing ADB behaving rather erratically
> > > with my G1.
>
> > > It will sometimes show it online, as it should, sometimes show it
> > > offline, and sometimes show multiple (2-10) instances of it, all
> > > offline. Killing and restarting the server seems to render it
> > > temporarily sensible, but only temporarily. It rarely works for long
> > > enough to start a debug session from Eclipse, and often hangs Eclipse
> > > if I look at the Devices tab.
>
> > > I have no idea how to fix it, but it seems to me there is probably
> > > something adrift in the G1 device driver. I'll let you know if I find
> > > any more.
>
> > > Richard
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Convert AMR-NB/WB to wav

2008-12-04 Thread ste

Are there any available java converters similar to SoX that can
convert the audio recorded by a microphone to another format, like
wav?

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to best build Android SDK samples in Eclipse?

2008-12-04 Thread Xavier Ducrohet

Hello,

just use the new project wizard, and select "create project from
existing source".
You can then point the wizard to the ApiDemos folder.

Xav

On Thu, Dec 4, 2008 at 11:26 AM, Freddy <[EMAIL PROTECTED]> wrote:
>
> I installed the Android SDK and Eclipse and built some simple apps
> using the new Andriod Project wizard.  Now I would like to build/debug
> some of the nice apps included with the SDK (samples\ApiDemos\src\com
> \example\android\apis\app) .  For example, there's a
> PreferencesFromCode.java sample I would like to build.  I started
> going down the road of creating a new app and copying the sample code
> and resource files into it but that's just not fun (and I assume since
> Eclipse is the recommended platform that there's got to be a slick way
> to do this).  Thanks.
>
> What's the best method to import and build these SDK sample apps?
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to see logs on PC.from connected G1 device

2008-12-04 Thread achhabra1...@gmail.com

Hi,

 I want to see logs from my application,. Using logcat .

I am able to do "adb Logcat *.* " on emulator and view logs.

But there is some problem in viewing logs from device. My
Device is attached with PC on USB.

and I am using "adb devices" command and

I am getting "List Of devices attached” but there is no
listing available.


It seems there is a problem with device connection with pc;
Please let me know if I need to do something else .. to properly
attach my device with pc. So that i can get logs from my application.


Thanks
Amit





--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to best build Android SDK samples in Eclipse?

2008-12-04 Thread Freddy

I installed the Android SDK and Eclipse and built some simple apps
using the new Andriod Project wizard.  Now I would like to build/debug
some of the nice apps included with the SDK (samples\ApiDemos\src\com
\example\android\apis\app) .  For example, there's a
PreferencesFromCode.java sample I would like to build.  I started
going down the road of creating a new app and copying the sample code
and resource files into it but that's just not fun (and I assume since
Eclipse is the recommended platform that there's got to be a slick way
to do this).  Thanks.

What's the best method to import and build these SDK sample apps?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] sending email

2008-12-04 Thread dilu

Hi
i want to develop an aplication which can send email .so can any one
provide me sample code or any link that is useful.I got one site
davanum srinivas blog,but tht code is too old and full code is not
available right now,they have removed it from site.So provide me some
link.

Thankss
dilu
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Change Tab Widget icon for currently active tab

2008-12-04 Thread mscwd01

This is not so much a problem, more a question about how to achieve
something...

I have a tabhost with three tabs. I have 6 icons, 3 in colour and 3 an
exact copy but in grayscale.

What I want to do is have the coloured version of the icon displayed
when the tab is active i.e. being viewed. Otherwise I want the other
inactive tabs to show the grayscale version of their icon - and change
to the coloured version if they are clicked.

So I want a tab to show a coloured icon if active and a grayscale icon
if inactive...

Any ideas how to achieve this anyone?

I have played around with the TabHost onTabChangeListener but havent
been able to find a solution.

Ideally I need something like:

tabHost.setOnTabChangedListener(new TabHost.OnTabChangeListener() {

   public void onTabChanged(String arg0) {
int selectedTab = tabs.getCurrentTab();

// Update newly selected tab to display
colorful icon
// Update previously selected tab to
display greyscale icon
   }
  });

Thanks
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ContentProvider/SQLiteDatabase.delete() Docs

2008-12-04 Thread Jack C. Holt

Does this fall under the "Note About API Documentation" sticky post?
i.e., since it isn't documented, don't use it?

On Dec 4, 9:52 am, "Jack C. Holt" <[EMAIL PROTECTED]> wrote:
> The online docs for ContentProvider/SQLiteDatabase.delete() do not
> document the third parameter "String[] whereArgs".
>
> I assume that the idea is that the second parameter (the where clause)
> could contain replaceable parameters in the form of question marks (?)
> and the Strings contained in the whereArgs array would replace the
> question marks in the where clause.
>
> Could someone verify/debunk this assumption?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-04 Thread Xavier Ducrohet

On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
<[EMAIL PROTECTED]> wrote:
> Hi ,
>
> That error gone, i separately executed all the scripts...
> Now few more errors are like
>
> "assert cannot be resolved   client.java
> ddmlib/src/com/android/ddmlib"

Can you make sure you are setup with compiler compliance level 5.0? I
looks like you're building in 1.4 or lower...

> "Button cannot be resolved to a type AllocationPanel.java
> ddmuilib/src/com/android/ddmuilib"

This would mean you don't have SWT in the dependencies. Is this in the
ddms plugin project or in the ddmuilib project?

> "Can only iterate over an array or an instance of java.lang.iterable
> AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib"

This is probably a compiler level issue too.

Xav

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Android Crash Files

2008-12-04 Thread Protocol-X

Anyone know where to find the files produced anytime android crashes?
is ther e a place on the device. does android log its own crash logs
for system crashes not 3rd part apps?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Cannot delete rows from sqlite database

2008-12-04 Thread Jack C. Holt

See
http://code.google.com/android/reference/android/database/sqlite/SQLiteDatabase.html#beginTransaction()

On Nov 17, 3:28 pm, techvd <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm having a strange issue deleting rows from a sqlite database.
> Here's the code snippet:
>
>         mDb.beginTransaction();
>         int nRows = mDb.delete("mytable", KEY_ITEM + "=" + rowId,
> null);
>         mDb.endTransaction();
>         return nRows > 0;
>
> The database is opened for write. The code above executes perfectly;
> it even returns the number of rows deleted. However, the rows are
> still in the table (even after I exit the app restart, etc.). Am I
> missing anything here. The rest of the code is boilerplate and I can
> read the data from the tables fine.
>
> Thanks!
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ContentProvider/SQLiteDatabase.delete() Docs

2008-12-04 Thread Jack C. Holt

The online docs for ContentProvider/SQLiteDatabase.delete() do not
document the third parameter "String[] whereArgs".

I assume that the idea is that the second parameter (the where clause)
could contain replaceable parameters in the form of question marks (?)
and the Strings contained in the whereArgs array would replace the
question marks in the where clause.

Could someone verify/debunk this assumption?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: zipped android source code

2008-12-04 Thread lucky4me

Maybe via GitWeb web interface, download snapshots, e.g.
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=snapshot;h=HEAD;sf=tgz

On Dec 4, 5:26 pm, sal <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Is there any location on Web where i can get a zipped version of
> android source code (though not fully , just a application part ).
>
> Thanks
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Newbe question - Application folders, how to?

2008-12-04 Thread Anders Rundgren

Thanx!
But I wanted to create a folder in the application drawer (or what it
should be called) that also should not look like a folder but as an
app which would if pressed open the folder with the real apps.  Isn't
that what most mult-app installs need?

On Nov 29, 11:59 am, Romain Guy <[EMAIL PROTECTED]> wrote:
> Long press an empty space on Home (or click Menu > Add) then choose
> Shortcut > Folder. You can drop applications in the newly created
> folder.
>
> On Sat, Nov 29, 2008 at 2:56 AM, Anders Rundgren
>
> <[EMAIL PROTECTED]> wrote:
>
> > In other operating systems you can typically define a folder and when
> > clicked it opens a view with applications.
>
> > I may be blind, but I don't see any of this using the emulator and SDK
> > 1.0.
>
> > Is the ApiDemos the only GUI-way you can create a suite of associated
> > applications?
>
> --
> Romain Guywww.curious-creature.org
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Is Bitmap.compress thread safe?

2008-12-04 Thread webmonkey

Because the Bitmap.compress(Bitmap.CompressFormat format, int quality,
OutputStream stream) function can sometimes take a long time I am
calling it in a separate thread with low priority. During this time I
am drawing the same bitmap in the UI thread using Canvas.drawBitmap
(Bitmap bitmap, float left, float top, Paint paint) at 30fps.

Although the bitmap is mutable I am not writing to the bitmap during
this period. It works fine but I want to make sure that it is safe to
do this.

Thanks
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] OpenGL context => how to load non power of two dimension bitmap?

2008-12-04 Thread Guian

in the OpenGL android API  (android.opengl.GLUtils.texImage2D() )
( http://code.google.com/android/reference/android/opengl/GLUtils.html
)
 we can read=>

"Whether or not bitmap can have non power of two dimensions depends
on
the current OpenGL context."

I load my OpenGL context using :
mEglContext = mEgl.eglCreateContext(mEglDisplay,
mEglConfig,EGL10.EGL_NO_CONTEXT, null);

do you know what do I have to do in order to load non power of two
dimensions bitmap?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: BitmapFactory.decode*() => bug ?

2008-12-04 Thread Guian

I should create a new topic for this new question.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Need help using hat to track down memory usage

2008-12-04 Thread Peter Jeffe

Swhen we can we expect to have a memory profiler for Android?
I consider it a basic requirement for a mobile development environment
to allow memory profiling.  Can you explain why you broke the hprof
format if you weren't going to release a tool that understands your
format?  How about just releasing a converter so we can use Memory
Analyzer or any other tool of our choice?

-- Peter


On Nov 6, 6:24 pm, fadden <[EMAIL PROTECTED]> wrote:
> The output isn't compatible.  Unfortunately we were not able to
> include the modified "hat" tool in the 1.0 source release.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: BitmapFactory.decode*() => bug ?

2008-12-04 Thread Guian

in the OpenGL android API  =>

Whether or not bitmap can have non power of two dimensions depends on
the current OpenGL context.

I load my OpenGL context using :

mEglContext = mEgl.eglCreateContext(mEglDisplay,
mEglConfig,EGL10.EGL_NO_CONTEXT, null);


do you know what do I have to use i order to load non power of two
dimensions bitmap?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Distorted Images taken from Camera

2008-12-04 Thread Mark K

  I have my own camera app, works just fine on the G1, post the code
maybe?
Mark

On Dec 3, 1:42 pm, ryan84c <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to develop an Android app that will allow users to take
> pictures. I've tried just about every sample out there, but one
> problem I keep having is all my image are being distorted. Has anyone
> ever had this problem? This only happens when I take a picture using
> my source code. The camera works fine when I run the camera app and
> take pictures with it. But any code of mine produces bad images.
>
> Any help is GREATLY appreciated.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: BitmapFactory.decode*() => bug ?

2008-12-04 Thread Guian

the probleme was:  I tried to use this picture as an OpenGL texture
but, its width was 1023 with is not a power of 2...

it works with the same picture, reSize to 1024.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Web Service and Authentication

2008-12-04 Thread Michael


There have been a lot of posts about dealing with self-signed SSL
certificates in the past, do a search through the archives.

What it comes down to is that you're going to have to make your own
key store for your app, rather than using the system one (which cannot
verify your certificate).  Probably you should warn the user about the
cert being self-signed, and ask them if they want to accept it.

- michael
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Streaming RTSP directly by suing MediaPlayer

2008-12-04 Thread Jona

Thanks Dave for your reply it answers my question!

About the firewall issue on the emulator  this is due to port 544, but
in my case I used port 8544 on my server and I didn't see this issue
it work fine...



--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: BitmapFactory.decode*() => bug ?

2008-12-04 Thread Guian


ps : my picture file is a .jpg file, encode with the flex jpg encoder.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Distorted Images taken from Camera

2008-12-04 Thread jarkman

I've seen a problem with the camera preview being distorted when my
app is in portrait mode, which I believe to be a G1 bug.

If you switch your orientation to landscape in your manifest, does
your problem go away ?


On Dec 3, 9:42 pm, ryan84c <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to develop an Android app that will allow users to take
> pictures. I've tried just about every sample out there, but one
> problem I keep having is all my image are being distorted. Has anyone
> ever had this problem? This only happens when I take a picture using
> my source code. The camera works fine when I run the camera app and
> take pictures with it. But any code of mine produces bad images.
>
> Any help is GREATLY appreciated.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Web Service and Authentication

2008-12-04 Thread Malefico

Yes.. it is what i'm trying to do.

Now: one thing at a time:

1- Soap over https:
I use ( in Android! ;-) ) ksoap2.
I made a ws with c#.net and i configure IIS to use https and self
signed certificate.

using http i can consume the ws both form my browser and from android
in this way:

import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;

...
...

final String SOAP_ACTION = "http://tempuri.org/GetCustomerByRagSoc";;
final String METHOD_NAME = "GetCustomerByRagSoc";
final String NAMESPACE = "http://tempuri.org/";;
/* The URL is obscured for privacy ;-) */
final String URL = "http:/*/**WS/***Service.asmx?
wsdl";

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);

request.addProperty("key", key);
request.addProperty("pageNumber", page);
request.addProperty("itemForPage", itemForPage);

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope
(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

try {
androidHttpTransport.call(SOAP_ACTION, envelope);
Object resultRequestSoap = envelope.getResponse();
...
...
...


If i use https i can consume the ws from browser ( ignoring the
warning that the certificate is not secure because it is self
signed )..

But using https from android i have this exception: "Not trusted
certificate". How can i add my certificate to the trusted certificate
in android? or ignore this check?



2- Soap basic authentication : i'll think on this after..


Thanks

O.

On Dec 4, 1:10 pm, Charlie Collins <[EMAIL PROTECTED]> wrote:
> Well, the question involved kSOAP, which is indeed what most people
> use to build a SOAP client on Android (and it's also used on other
> mobile platforms). The question was vague, yes, but I believe he is
> trying to make a SOAP over HTTP client on Android.
>
> On Dec 3, 1:24 pm, Michael <[EMAIL PROTECTED]> wrote:
>
> > This is a bit off-topic on an Android development group, as there's no
> > Android content.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Bitmap.getPixels()

2008-12-04 Thread Robert Green

Did you mean partially transparent green or fully transparent?

On Dec 4, 1:21 am, jman <[EMAIL PROTECTED]> wrote:
> I painted a transparent green curve on top of a background bitmap.
> When I use Bitmap.getPixels() to get the result into byte array, I
> always get a black curve.  The curve position is correct but color
> isn't.  Is there anything I need to do before calling Bitmap.getPixels
> ()?
>
> Thanks.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Webkit WebView soft error

2008-12-04 Thread Fred Grott(shareme)

I have a weird error in webkit webview and its soft error.

In my html view two image items appear reverse order horizontially


The only thing I can reason is to take off the align=left off every
image item except the first one although no other image item is in
reverse order.

I have only tested in emulator thus far


Anybody else run into the same quirk?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to replicate GUI of Android settings menu

2008-12-04 Thread Guillaume Perrot

Just use a PreferenceActivity and your settings will look the same as
the G1.
You can describe settings in XML with special tags, you can look at
APIDemos.

On Dec 4, 1:20 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> ChisterNordvik wrote:
> > I want to make my settings menu look like the one in Android where
> > they have a heading and a multiline text below the heading for each
> > listitem. Anyone got the source code for that GUI? :-)
>
> I'm assuming you are referring to the preferences screen.
>
> If you literally want the source code for that, it's somewhere over 
> inhttp://source.android.com... ;-)
>
> However, if you more generally want to know how to create ListViews
> where the rows are not simple strings, but rather any View you choose to
> create, you want to subclass your desired Adapter class and implement
> getView() to return the Views you want.
>
> I have a series of disastrously-formatted blog posts on this topic over
> on AndroidGuys:
>
> http://androidguys.com/?s=fancy+listviews&x=12&y=7
>
> The first six were written for the older M5 SDK, though the technique
> still holds up, and the most recent post covers some of the differences
> between the M5 SDK and the newer SDKs in this area.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   >