[android-developers] Re: custom attributes in library projects

2010-12-27 Thread schwiz
Ag!! hopefully a hot fix soon??

On Nov 23, 12:13 pm, Leif  wrote:
> And same here too...
>
> On 9 Nov, 07:01, Open  wrote:
>
>
>
>
>
>
>
> > Same problem here.
>
> > On Sep 14, 9:58 pm, Tom  wrote:
>
> > > i'm also hitting this issue.  can't create a xml-configurable custom
> > > view in alibraryproject..
>
> > > is there a bug filed on this already?  is there an ETA for a fix?
>
> > > thanks
>
> > > On Aug 20, 5:04 am, Clément Plantier  wrote:
>
> > > > Any update about this problem?
>
> > > > On Jul 9, 8:18 pm, Xavier Ducrohet  wrote:
>
> > > > > Ah, there's a problem with the namespace.
>
> > > > > From aapt's point of view all the resources are compiled for the
> > > > > package name of the application (com.mycompany.test.app in your case),
> > > > > so your "customValue" attribute is defined in that namespace, and not
> > > > > in the namespace of thelibrary.
>
> > > > > At this time, the only solution is to remove the layout from 
> > > > > thelibraryand move it into the apps and edit the namespace to match 
> > > > > the
> > > > > application package.
>
> > > > > We'll look at fixing this.
> > > > > xav
>
> > > > > On Thu, Jul 8, 2010 at 3:27 AM, Vladimir Lebedev-Schmidthof
>
> > > > >  wrote:
> > > > > > Hello,
>
> > > > > > Having custom attribute (inattrs.xml) inlibraryproject leads to
> > > > > > compilation fail of theprojectdependent of thatlibrary.
>
> > > > > > I.e.:
> > > > > > MyLibproject(library)
>
> > > > > > AndroidManifest.xml:
> > > > > > http://schemas.android.com/apk/res/android";
> > > > > >      package="com.mycompany.test.lib"
> > > > > >      android:versionCode="1"
> > > > > >      android:versionName="1.0">
> > > > > > ...
> > > > > > 
>
> > > > > > res/layout/main.xml:
> > > > > > 
> > > > > > http://schemas.android.com/apk/res/
> > > > > > android"
> > > > > >        xmlns:my="http://schemas.android.com/apk/res/
> > > > > > com.mycompany.test.lib"
> > > > > >    android:orientation="vertical"
> > > > > >    android:layout_width="fill_parent"
> > > > > >    android:layout_height="fill_parent"
> > > > > >    >
> > > > > >  > > > > >    android:id="@+id/my_widget"
> > > > > >    android:layout_width="fill_parent"
> > > > > >    android:layout_height="fill_parent"
> > > > > >    my:customValue="324"/>
> > > > > > 
>
> > > > > > res/values/attrs.xml:
> > > > > > 
> > > > > >        
> > > > > >                
> > > > > >        
> > > > > > 
>
> > > > > > And there are nothing in TestApp except AndroidManifest.xml:
> > > > > > http://schemas.android.com/apk/res/android";
> > > > > >      package="com.mycompany.test.app"
> > > > > >      android:versionCode="1"
> > > > > >      android:versionName="1.0">
> > > > > > ...
> > > > > > 
>
> > > > > > And aapt says that
> > > > > > res/layout/main.xml:13: error:No resource identifier found for> 
> > > > > > attribute'customValue' in package 'com.mycompany.test.lib'
>
> > > > > > How to avoid this except for no having custom attributes inlibrary?
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > > > Groups "Android Developers" group.
> > > > > > To post to this group, send email to 
> > > > > > android-developers@googlegroups.com
> > > > > > To unsubscribe from this group, send email to
> > > > > > android-developers+unsubscr...@googlegroups.com
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > > --
> > > > > Xavier Ducrohet
> > > > > Android SDK Tech Lead
> > > > > Google Inc.
>
> > > > > Please do not send me questions directly. 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to populate a ViewStub using different ImageButtons?

2010-08-02 Thread schwiz
You can get a handle on the views inside the switcher and change them
as needed, it just only holds memory for 2 at a time.

On Jul 31, 2:50 pm, Victoria Busse 
wrote:
> That sounds great, but I just read that a ViewSwitcher only works with two
> child views and I have at least 4 :((
>
>
>
> On Sat, Jul 31, 2010 at 8:20 PM, schwiz  wrote:
> > viewswitcher is probably better for what you are wanting to do
> >http://developer.android.com/reference/android/widget/ViewSwitcher.html
> > you can even assign animations for the views as they come and go if
> > you want.
>
> > On Jul 30, 3:51 pm, Victoria Busse 
> > wrote:
> > > Hi there,
>
> > > I am trying to populate a ViewStub with a new view depending on which
> > > ImageButton is clicked, but as I just discovered ViewStubs I am not
> > exactly
> > > sure how this would work...
>
> > > e.g. can I provide the ViewStub with different inflatedIds and within the
> > > onClick event of a Button inflate the ViewStub by calling a specific
> > > inflatedId???
>
> > > If someone could give me hand, that would be really great.
>
> > > Thank you very much in advance :o)
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: How to recreate and reinflate a ViewStub?

2010-08-02 Thread schwiz
check out the panel example here in this project its easy to reuse and
makes sliding drawers in any direction
http://code.google.com/p/android-misc-widgets/

On Aug 1, 8:01 pm, Victoria Busse  wrote:
> I am trying to create a  SlidingDrawer that holds a menu with imagebuttons
> and each
> imagebutton leads to a different content within the drawer (basically it
> should look similar
> to the image I attached)...would that work with ViewGroup.addView and
> LayoutInflater?
>
>
>
> On Mon, Aug 2, 2010 at 1:53 AM, Romain Guy  wrote:
> > A ViewStub is not designed to be recreated and put back in the view
> > hierarchy. What are you trying to achieve? If you are trying to add a
> > new view to the window every time the user presses a button, just use
> > ViewGroup.addView() and LayoutInflater.
>
> > On Sun, Aug 1, 2010 at 5:50 PM, kivy  wrote:
> > > Hi there,
>
> > > I am trying to recreate and reinflate a ViewStub each time an
> > > ImageButton is pressed because at the moment my app crashes as soon as
> > > I press the button a second time (due to a NullPointerException caused
> > > by the ViewStub that doesn't exist anymore) but I am a little stuck as
> > > I don't know how to recreate and reinvoke the ViewStub...
>
> > > If someone could give me a hand here, that would be great.
> > > Thanks in  advance.
>
> > > This is what I have done so far:
>
> > >  btnExposure = (ImageButton) findViewById(R.id.button_exposure);
>
> > >      btnExposure.setOnClickListener(new OnClickListener()
> > >        {
>
> > >               �...@override
> > >                public void onClick(View v) {
> > >                     if (findViewById(R.id.stub_exposure) != null){
> > >                         ViewStub stub1 = (ViewStub)
> > > findViewById(R.id.stub_exposure);
> > >                         importStub = stub1.inflate();
> > >                         toggle(importStub2);
> > >                         }
> > >                     else {
> > >                         //DON'T KNOW WHAT I SHOULD DO HERE
> > >                     }
> > >                }
>
> > >           }
> > >        );
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
>
> > 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
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
>  SlidingDrawerExample.png
> 15KViewDownload

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


[android-developers] Re: Scrolling text (marquee) in an AppWidget

2010-08-02 Thread schwiz
I just do a findViewById().setSelected(true); after set content view.
You may have to cast it as a textview.

On Jul 22, 6:35 pm, Matt  wrote:
> Does anyone have a working example of scrolling text in a widget?
>
> 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to populate a ViewStub using different ImageButtons?

2010-07-31 Thread schwiz
viewswitcher is probably better for what you are wanting to do
http://developer.android.com/reference/android/widget/ViewSwitcher.html
you can even assign animations for the views as they come and go if
you want.

On Jul 30, 3:51 pm, Victoria Busse 
wrote:
> Hi there,
>
> I am trying to populate a ViewStub with a new view depending on which
> ImageButton is clicked, but as I just discovered ViewStubs I am not exactly
> sure how this would work...
>
> e.g. can I provide the ViewStub with different inflatedIds and within the
> onClick event of a Button inflate the ViewStub by calling a specific
> inflatedId???
>
> If someone could give me hand, that would be really great.
>
> Thank you very much in advance :o)

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


[android-developers] Re: live stream error

2010-07-01 Thread schwiz
I take that back updating to 85b has only spaced the errors out but
they are still there and there is horrible cracks and pops.  Anyone
know a workaround for this?

On Jun 30, 11:02 pm, schwiz  wrote:
> updating to release 85b fixed this issue
>
> On Jun 30, 4:40 pm, schwiz  wrote:
>
>
>
> > I am making a basic activity to stream this live 
> > showhttp://ice2.securenetsystems.net/WHBRM here is the pastebin of my
> > activityhttp://pastebin.com/N5g69j7i
>
> > I realize that it is better to be in a service but this is just a
> > test.  Anyways it seems to be working fine except for in froyo my
> > error listener gets an unknown error about every 10 seconds.
> > Infolistener and bufferinglistener are also never called.
>
> > my hack of sorts using the errorlistener to catch the error and
> > restart the stream is working but since the error happens every 10
> > seconds or so it is making the audio very choppy.
>
> > I also get a system log that says MediaPlayer error (1, -2147483648)
> > before each crash
> > also AwesomePlayer Not sending buffering status because duration is
> > unknown.
>
> > I assume the second error is because its a live stream and it has no
> > end, however how do you handle that case.
>
> > 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: live stream error

2010-06-30 Thread schwiz
updating to release 85b fixed this issue

On Jun 30, 4:40 pm, schwiz  wrote:
> I am making a basic activity to stream this live 
> showhttp://ice2.securenetsystems.net/WHBRM here is the pastebin of my
> activityhttp://pastebin.com/N5g69j7i
>
> I realize that it is better to be in a service but this is just a
> test.  Anyways it seems to be working fine except for in froyo my
> error listener gets an unknown error about every 10 seconds.
> Infolistener and bufferinglistener are also never called.
>
> my hack of sorts using the errorlistener to catch the error and
> restart the stream is working but since the error happens every 10
> seconds or so it is making the audio very choppy.
>
> I also get a system log that says MediaPlayer error (1, -2147483648)
> before each crash
> also AwesomePlayer Not sending buffering status because duration is
> unknown.
>
> I assume the second error is because its a live stream and it has no
> end, however how do you handle that case.
>
> 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] live stream error

2010-06-30 Thread schwiz
I am making a basic activity to stream this live show
http://ice2.securenetsystems.net/WHBRM  here is the pastebin of my
activity http://pastebin.com/N5g69j7i

I realize that it is better to be in a service but this is just a
test.  Anyways it seems to be working fine except for in froyo my
error listener gets an unknown error about every 10 seconds.
Infolistener and bufferinglistener are also never called.

my hack of sorts using the errorlistener to catch the error and
restart the stream is working but since the error happens every 10
seconds or so it is making the audio very choppy.

I also get a system log that says MediaPlayer error (1, -2147483648)
before each crash
also AwesomePlayer Not sending buffering status because duration is
unknown.

I assume the second error is because its a live stream and it has no
end, however how do you handle that case.

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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Moto Droid ADB Drivers no longer work after HTC Evo was used.

2010-06-26 Thread schwiz
when it detects the device goto the properties and select install
driver and then pick from existing installed drivers and pick adb from
another android phone.

On Jun 26, 5:54 pm, pcm2a  wrote:
> When I uncheck the Show compatible hardware box the ADB selection
> disappears.
>
> My ADK drivers are also revision 3.  However, that hasn't stopped me
> from deleting them and download them several additional times through
> the SDK.
> I have also gone as far as to download random other SDK versions I
> found floating about the internet.
>
> I still can't find the one single place that tells it to keep looking
> at the SDK for the drivers.  Somewhere in some registry setting or
> file it's telling it "hey go look in this "usb_driver" folder for
> files".  I've deleted a billion things out of my registry but so far
> no success.
>
> On Jun 26, 5:49 pm, Lance Nanek  wrote:
>
>
>
> > I have to uncheck "Show compatible hardware" before Windows 7 will
> > offer "Android ADB Interface" for the Droid. Not that I know the
> > difference between the "Android Composite ADB Interface" driver I'm
> > using and the "Android ADB Interface" one you are using.
>
> > Is your USB driver that comes with the SDK up to date? I'm using "Usb
> > Driver package, revision 3" according to the Android SDK and AVD
> > Manager. You can update it from the same in the available packages
> > section if yours is earlier. Then you have to go use the "update
> > driver" option in the device manager again to switch over to the
> > updated one.
>
> > On Jun 26, 3:25 pm, pcm2a  wrote:
>
> > > When I choose "Dont search I will choose the driver to install" I only
> > > get two things listed:
> > > - Android ADB Interface
> > > - USB Compisite Interface
>
> > > After installing and reinstalling the Motorola drivers 100 times I was
> > > hoping to see something extra in this list but nothing ever changes.
>
> > > On Jun 26, 1:47 pm, Lance Nanek  wrote:
>
> > > > I ran into the same problem connecting both the Evo 4G and Droid to my
> > > > Windows 7 Tablet PC. After installing the HTC software off the Evo's
> > > > SD card, the Droid stopped working. I guess I did update a lot of SDK
> > > > stuff around then too, so that's also a potential factor.
>
> > > > I did eventually get both phones working at once. Basically I just
> > > > tried lots of combinations of removing everything HTC/Motorola in
> > > > remove programs, reinstalling them, connecting and disconnecting
> > > > devices, and the star of the show: right clicking on devices in the
> > > > device manager and choosing to update their drivers and picking a
> > > > different one from the list of applicable drivers. You can use this,
> > > > for example, to change a "Mot Composite ADB Interface" to an "Android
> > > > Composite ADB Interface" by choosing the Android drivers instead of
> > > > Motorola's.
>
> > > > My currently working setup doesn't even have Motorola's software
> > > > installed, but does have HTC's. There are several "Android Composite
> > > > ADB Interface" for the Droid and other phones, and one "My HTC", no
> > > > "Mot Composite ADB Interface". Kind of sad HTC screwed everything up,
> > > > but I had to uninstall Motorola, but whatever. Although if you have
> > > > something pointing to a removed directory somehow I'd try fixing that
> > > > first via similar right-clicking on devices and updating methods.
> > > > Although I suspect what you are talking about there might just be a
> > > > helpful last used location for something copied into system32/drivers
> > > > anyway.
>
> > > > On Jun 26, 12:52 pm, pcm2a  wrote:
>
> > > > > Still have no resolution for this issue.
>
> > > > > I have tried uninstalling and removing every single DLL that hte
> > > > > Android SDK USB Drivers comes with from my system.  Afterwards I
> > > > > installed the Motorola USB Drivers.  Next I plug in the Droid and all
> > > > > it does it keep erroring out looking for the old sdk usb folder, which
> > > > > I removed.
>
> > > > > On Jun 25, 11:52 am, pcm2a  wrote:
>
> > > > > > I have owned my Droid since day 1 and I have been doing Android
> > > > > > development, with ADB working, on my Windows 2003 Server laptop all
> > > > > > this time.  I'll try to be as detailed as possible.
>
> > > > > > Things to note right off the bat:
> > > > > > - Motorola Droid 2.1
> > > > > > - Windows Server 2003 laptop
> > > > > > - ADB has worked perfectly with this for ~ 8 months
>
> > > > > > My work gave me a HTC Evo to do some development on. I installed the
> > > > > > HTC drivers, ADB worked fine, did my development and now I am done
> > > > > > with the Evo. The problem is my Droid no longer works with ADB.
>
> > > > > > Here are some steps that I have tried:
>
> > > > > > Attempt A:
> > > > > > 1. In device manager I have listed Android Phone->Android ADB
> > > > > > Interface
> > > > > > 2. Right click->Uninstall
> > > > > > 3. Scan for new hardware->Device shows up
> > > > > > 4. Select this device, p

[android-developers] Re: onKeyDown not being called in TabActivity

2010-06-20 Thread schwiz
Thanks for the advice on the activities Mark I will definitely keep
that in mine unfortunately all of the activities need access to a
service and need to stand alone but you have given me some things to
think about maybe its time to start refactoring.  The getParent thing
worked I actually thought of it whilst sitting in the movie theater
today and couldn't wait till I got home to try it :P  BTW I saw two of
your books on the shelf at Barnes and Noble today :)
On Jun 20, 10:25 am, Mark Murphy  wrote:
> On Sun, Jun 20, 2010 at 11:08 AM, schwiz  wrote:
> > thanks for the suggestions mark but my app is way to complicated to
> > keep all of my logic in one activity which is why I have it separated
> > into separate activities with the tabs.
>
> Do not use Activity as simply a means of code organization. You waste
> RAM, increase the odds you will run into stack-overflow errors via
> your use of activities in tabs, and so forth.
>
> > It was also an additional
> > requirement of my client to have some of the activities I made
> > separate like that so they can reuse them in other apps.
>
> Just because some collection of code *can* be used as an Activity *in
> some cases* does not mean it has to *always be used as an Activity*.
> For example, you could use a custom View class, reused as a tab in one
> setting and as the main content view of an Activity in another
> setting.
>
> > All I really
> > want to intercept is the menu button
>
> I suspect that may be intercepted by the framework between TabActivity
> and your child Activities, because it is expecting to delegate that to
> the currently-active child Activity via the normal option menu
> methods. That is just a guess, though.
>
> You could try intercepting the key in the child Activities. Then, if
> getParent() is not null, they know they are children in the
> TabActivity and can call some method on that TabActivity.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1
> Available!

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


[android-developers] Re: onKeyDown not being called in TabActivity

2010-06-20 Thread schwiz
thanks for the suggestions mark but my app is way to complicated to
keep all of my logic in one activity which is why I have it separated
into separate activities with the tabs.  It was also an additional
requirement of my client to have some of the activities I made
separate like that so they can reuse them in other apps. All I really
want to intercept is the menu button, I just through an example of
Home not working because I put a Toast in onKeyDown to see what
buttons would fire it off and search was the only one.  Any idea on
how I can keep the tabs as activities and also intercept the menu
button?

On Jun 20, 6:06 am, Mark Murphy  wrote:
> On Sun, Jun 20, 2010 at 3:02 AM, schwiz  wrote:
> > Hello all I am trying to override the behavior of a TabActivity that
> > has other Activities as children.  I have made all of the children
> > activities return false in onKeyDown so that the key will propagate
> > through to the parent.  However, this is not the case.  The only key
> > that is being recognized is the search key.  Back, menu, and home are
> > not being overridden.  Please help
>
> Here is what I would do:
>
> Step #1: Get rid of the "other activities as children", replacing them
> with Views as your tabs
>
> Step #2: Ignore HOME, since you cannot intercept that in any activity,
> let alone one hosting tabs
>
> Step #3: In your one remaining activity, implement onKeyDown()
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1
> Available!

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


[android-developers] onKeyDown not being called in TabActivity

2010-06-20 Thread schwiz
Hello all I am trying to override the behavior of a TabActivity that
has other Activities as children.  I have made all of the children
activities return false in onKeyDown so that the key will propagate
through to the parent.  However, this is not the case.  The only key
that is being recognized is the search key.  Back, menu, and home are
not being overridden.  Please help

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


[android-developers] Re: how to launch applications installed in a phone?

2010-06-14 Thread schwiz
There are apps like beautiful widgets that give you a list of all of
the apps installed on your phone and give you a choice of what to
launch when you press a certain button.  Also, the various homescreen
replacements that know what acitivities are installed on the phone and
how to launch them.  I think that is what he is asking about.   Guich
if nothing else take a look at the source code for the launcher apks
in the git and see how they do it.

On Jun 14, 10:15 am, Mark Murphy  wrote:
> Most of those do not have documented Intents. You can find the right
> Intents via looking at the source code, looking at LogCat output, or
> perhaps on the openintents.org site. However, bear in mind that they
> are all subject to change. They will not exist on some devices, and
> they may not exist under their current Intents in future versions of
> Android.
>
>
>
>
>
> On Mon, Jun 14, 2010 at 11:10 AM, guich  wrote:
> > Hi,
>
> > I would like to launch some applications, like the Calculator, the
> > alarm clock, the notepad, the calendar, the camcorder, the camera, the
> > dialer, etc, from my application.
>
> > Is there an easy way to do that? Is there any place with a list of
> > what are the intent names to launch them?
>
> > thanks
>
> >   guich
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy
> CommonsWare
> mmur...@commonsware.comhttp://commonsware.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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Service Vs Thread

2010-06-14 Thread schwiz
your service will want to spawn its own thread or asynctask to do your
heavy work or else you will get a forceclose.

On Jun 13, 8:46 am, "tarek.attia"  wrote:
> Hi all,
>
> I have a question what to Use ,Service Or Thread,as both run in the
> background

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


[android-developers] Re: jpeg from binary?

2010-06-14 Thread schwiz
ok thanks for the reply, so even though my byte array was created from
a jpeg the bitmap factory will know what to do with it?  If so this is
great news :)

On Jun 14, 9:31 am, Yahel  wrote:
> > Does Android have a native library that can make a jpeg from binary
> > data from say, a json object?
>
> Convert your json into a byte array(byte[]) and then use
> BitmapFactory.decodeByteArray() :
>
> http://developer.android.com/intl/de/reference/android/graphics/Bitma...[],
> int, int)
>
> Yahel

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


[android-developers] jpeg from binary?

2010-06-14 Thread schwiz
Does Android have a native library that can make a jpeg from binary
data from say, a json object?

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


[android-developers] onPreferenceChangeListener question

2010-06-11 Thread schwiz
I was just checking out the developer docs and came across this
http://developer.android.com/reference/android/preference/Preference.OnPreferenceChangeListener.html
I have an idea I want to possibly use for this but one quick question
if anyone knows.  It says in the documentation "Called when a
Preference has been changed by the user."
Does this mean that it won't be called if I am changing the preference
without user interaction in an PreferenceActivity but instead with
Preference.edit().commit() ?

Thanks.
Nathan

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


[android-developers] streaming service example?

2010-06-10 Thread schwiz
Anyone know of a good code example of how to run a service that
streams music from the internet and also binds to an activity to give
a gui?

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


[android-developers] Re: Developing Android REST client applications

2010-06-08 Thread schwiz
wow great video, although I really wish he had some example code to
look at I get the general idea but now I feel like I have a schematic
for a wheel...  Anyone know of any open source projects (twitter app
when are you coming?!?!) that use any of these techniques?

On Jun 8, 10:35 am, Andrew Brampton  wrote:
> I've watched many of the Google IO talks and one that I'm trying to
> reproduce is "Developing Android REST client applications"[1]. In this
> talk Virgil suggests you should not execute your RESTful queries
> inside a Thread/AsyncTask spawned from your Activity (which I had been
> doing), instead you should use a more complex architecture that uses a
> combination of a ContentProvider and a Service.
>
> From what I understood the reason for this design was so your data was
> more persistent between app restarts, and so your queries don't
> disappear if your Activity starts/stops (e.g on a screen rotation). I
> buy into both those reasons hence I'm trying to implement this.
>
> On the slides[2] page 45 We have an Activity calling a
> ContentProvider. Now the ContentProvider checks its local database, if
> the content is not there it sends an Intent to a service which fetches
> the content, inserts it into the ContentProvider, then the
> ContentProvider calls back to the Activity (with a ContentObserver)
> and the Activity can carry on. The question I have is how is this
> callback setup. The ContentProvider exposes simple methods, query,
> insert, update, delete which don't seem easy to adapt to a callback
> interface.
>
> It could be implemented by a Cursor which is designed to block, but
> that could be problematic as you don't' want to block your UI Thread.
> I'd appreciate if anyone could make this clearer to me, or show me
> some code. I'm hoping the Twitter app will be open sourced soon which
> apparently uses this architecture.
>
> thanks
> Andrew
>
> [1]http://code.google.com/events/io/2010/sessions/developing-RESTful-and...
> [2]http://dl.google.com/googleio/2010/android-developing-RESTful-android...

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


[android-developers] Re: ListView

2010-06-08 Thread schwiz
There has got to be an example of this somewhere in the source code to
Launcher2  or somewhere in the 2.x framework, this is exactly what
they do for contacts in 2.x

On Jun 8, 7:06 pm, Sandy  wrote:
> Any tips on how to do this ?
>
> On Jun 8, 2:24 pm, Sandy  wrote:
>
>
>
> > Is it possible to have a horizontal list view with an vertical list
> > view? I would like to horizontal list scroll within a vertical list
> > scroll. Any suggestions please?
>
> > |-|
> > |       ListItem               |
> > |--|
> > |       ListItem               |
> > |-|
> > |       ListItem              |
> > |-|
> > |       ListItem               |
> > |   -- --             |
> > |   |  LI | LI | LI |            |
> > |                |
> > ||
> > |      ListItem              |
> > ||
>
> > LI - stands for horizontal listview item
>
> > Thanks,
> > Sandy

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


[android-developers] Re: statelistdrawable in xml

2010-06-08 Thread schwiz
Thanks for the reply Kumar, but what I am asking is how do you get
eclipse to generate this xml file for you.  It initially complains and
doesn't recognize the  tag when you just make a regular xml
file and stick it in the drawable folder.

On Jun 8, 1:21 pm, Kumar Bibek  wrote:
> Well, it's possible to do 
> it.http://tech-droid.blogspot.com/2010/03/custom-buttons-on-android.html
>
> Checkout the console for more info.
> Thanks and Regards,
> Kumar Bibek
>
> On Jun 8, 10:50 pm, sachin ravi  wrote:
>
>
>
> > xml files better put inside the xml folder and then access it.
>
> > On Tue, Jun 8, 2010 at 11:13 PM, schwiz  wrote:
> > > How do you make a StateListDrawable xml file in eclipse.  While trying
> > > to follow this tutorial
> > >http://developer.android.com/resources/tutorials/views/hello-tabwidge...
> > > eclipse won't let me make an android xml file in the drawable folder,
> > > it forces me to pic a resource other than drawable.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: EditTextPreference Properties

2010-06-08 Thread schwiz
I love you Mark <3

On Jun 8, 7:00 pm, Mark Murphy  wrote:
> schwiz wrote:
> > Is there a way to change the properties of the EditText Widget nested
> > inside the dialog box of an editTextPreference.  For example, I want
> > the user to only be able to enter a number for one of the
> > preferences.  I suppose I could make my own dialog box from scratch
> > and extend everything, but it seems like there should be an easier
> > way...
>
> EditTextPreference accepts all EditText attributes in the preference XML
> (e.g., android:inputType).
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 2.2 Programming Books:http://commonsware.com/books

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


[android-developers] EditTextPreference Properties

2010-06-08 Thread schwiz
Is there a way to change the properties of the EditText Widget nested
inside the dialog box of an editTextPreference.  For example, I want
the user to only be able to enter a number for one of the
preferences.  I suppose I could make my own dialog box from scratch
and extend everything, but it seems like there should be an easier
way...
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] statelistdrawable in xml

2010-06-08 Thread schwiz
How do you make a StateListDrawable xml file in eclipse.  While trying
to follow this tutorial 
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html
eclipse won't let me make an android xml file in the drawable folder,
it forces me to pic a resource other than drawable.

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


[android-developers] Re: How to update a Widget dynamically (Not waiting 30 min for onUpdate to be called)?

2010-05-28 Thread schwiz
I haven't done any widget work but perhaps doing a database with a
managed cursor would update it as the database changed.  -or- that
could be a horrible idea that would never work /shrug

On May 28, 8:43 am, "draf...@gmail.com"  wrote:
> I am currently learning about widgets in Android.
>
> I want to create a WIFI widget that will display the SSID, the RSSI
> (Signal) level.
>
> But I also want to be able to send it data from a service I am running
> that calculates the Quality of Sound over wifi.
>
> Here is what I have after some reading and a quick tutorial:
>
> ---
>
>     public class WlanWidget extends AppWidgetProvider{
>
>         RemoteViews remoteViews;
>         AppWidgetManager appWidgetManager;
>         ComponentName thisWidget;
>         WifiManager wifiManager;
>
>         public void onUpdate(Context context, AppWidgetManager
> appWidgetManager,
>                         int[] appWidgetIds) {
>                         Timer timer = new Timer();
>                         timer.scheduleAtFixedRate(new WlanTimer(context, 
> appWidgetManager),
> 1, 1);
>
>         }
>
>         private class WlanTimer extends TimerTask{
>
>                         RemoteViews remoteViews;
>                         AppWidgetManager appWidgetManager;
>                         ComponentName thisWidget;
>
>         public WlanTimer(Context context, AppWidgetManager appWidgetManager)
> {
>
>                         this.appWidgetManager = appWidgetManager;
>                         remoteViews = new 
> RemoteViews(context.getPackageName(),
> R.layout.widget);
>                         thisWidget = new ComponentName(context, 
> WlanWidget.class);
>                         wifiManager =
> (WifiManager)context.getSystemService(Context.WIFI_SERVICE);
>
>         }
>
>         @Override
>         public void run() {
>
>                         remoteViews.setTextViewText(R.id.widget_textview,
>                         wifiManager.getConnectionInfo().getSSID());
>                         appWidgetManager.updateAppWidget(thisWidget, 
> remoteViews);
>         }
>
>         }
>
> ---
>
> The above seems to work ok, it updates the SSID on the widget every 10
> seconds.
>
> However what is the most efficent way to get the information from my
> service that will be already running to update periodically on my
> widget?
>
> Also is there a better approach to updating the the widget rather than
> using a timer and timertask? (Avoid polling)

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


[android-developers] Re: FYI EVO/Incredible ADB How-To

2010-05-27 Thread schwiz
you can just say use existing driver and pick android phone and then
adb in windows 7

On May 28, 1:36 am, Ted Chien  wrote:
> Check the SD card that comes with your EVO. There should be a "HTC
> Sync" folder for you to install the HTC Sync program and the USB
> driver.
>
> Ted
>
> On 5月28日, 上午6時27分, Art  wrote:
>
>
>
> > unsuccessful too. windows vista can't find a device driver for my evo.
> > eclipse tells me that i have the r3 usb driver package and i updated
> > my android_winusb.inf with the htc entries.
>
> > any suggestions?
>
> > thanks!
>
> > On May 27, 10:29 am, brianl  wrote:
>
> > > Tried your mod using the latest release r06, but was unsuccessful.
> > > Updated the android_winusb.inf file in both places, adb kill-server,
> > > adb start-server, adb devices, noEvo.  Restarted Windows, still noEvo.   
> > > Assume this should work w/ the latest release, and that I don't
> > > have to go back to r03.
>
> > > Any ideas?
>
> > > thanks!
>
> > > On May 21, 1:48 pm, Robert Green  wrote:
>
> > > > You need the r3 ADB driver and then you need to add this to the
> > > > android_winusb.inf to support these two devices:
>
> > > > ;
> > > > ;HTC Incredible
> > > > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C9E
> > > > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01
> > > > ;
> > > > ;HTCEVO
> > > > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C8D
> > > > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C8D&MI_01
>
> > > > Add those lines at the end of both [Google.NTx86] and [Google.NTamd64]
> > > > and your ADB Composite Device driver should install for both phones.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] official twitter app source

2010-05-27 Thread schwiz
I can't wait much longer the anticipation is killing me :)
Discuss

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


[android-developers] Re: samsung app store

2010-05-23 Thread schwiz
samsung had a really sick looking phone at IO I wanted it really
bad :P

On May 19, 9:24 pm, Nathan  wrote:
> SamsungApps.com is apparently registered to Samsung Electronics CO.,
> Ltd. according to WHOIS information.
>
> So they want Android apps? I heard Samsung wanted to do their own
> operating system.
>
> Nathan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] sqlite3 in adb not in 2.2?

2010-05-23 Thread schwiz
So I just watched the talk at Google I/O where they showed how to use
sqlite3 in ADB to help debug your database.  I didn't know you could
do that way cool.  So I was doing it on my nexus which is rooted and
it was working fine.  Then I went ahead and installed 2.2 and now when
I type sqlite3 in the shell it says sqlite3 not found  Any ideas?

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


[android-developers] Re: samsung app store

2010-05-14 Thread schwiz
I don't know what unicast is you will have to explain it to me.  The
email came from nakhyun54@samsung.com
here is the bulk of the email.  The real fishy thing is they don't
even have the name of my application right...

Dear Wolframalpha developer,



My name is Nakhyun Kim and I work for Samsung Electronics.

I found your application "Wolframalpha" from Android market and
Samsung is interested in outsourcing your application for Samsung
application store.



The Samsung application store has similar policy and businees model
with that of Apple or Android. You can see brief information below.



- Platform : Android OS

- B/M : Same as Apple App.Store

For paid app, the revenue share that goes to developers
would be 70% and there won't be refund unlike Android market.

- Channel: Samsung Application Store in Korea



I believe this be a good chance to both parties. Samsung would be able
to provide good applications to Samsung mobile users while you have
another channel to distribute your application. Since you already
developed application with Android, there won't be extra effort that
you should take.



Please write me back so that we can further discussion.

I will look forward to hearing from you soon.



With Best Regards,

Nak-hyun Kim

Content Planning Group

Media Solution Center

Samsung Electronics Co., Ltd.

+82.10.7260.8439. | +82.31.279.8439.

On May 13, 6:10 pm, danraaka  wrote:
> interesting .. can you tell who it came from ?
> can you unicast me that email ?
>
> -Dan
>
>
>
>
>
> On Thu, May 13, 2010 at 5:07 AM, Michael  wrote:
> > Yeah I got one of those emails as well.
>
> > Working on a new version of my app and won't be ready to upload for a
> > little while anyway.
>
> > It looks reasonably legit and the domain name looks like it is
> > registered by samsung (e.g. samsung.com contacts).
>
> > I would be interested to hear what other people thing?
>
> > Cheers,
> > Mike
>
> > On May 13, 4:11 am, schwiz  wrote:
> > > I have been receiving some emails from someone claiming to be a rep
> > > for samsung and they are opening a new app store selling android
> > > apps.  They have asked that I publish one of my apps they found on the
> > > android market on their store. Just wondering if anyone else has been
> > > getting emails like that and if it is legit?  I am a little weary to
> > > give them my bank info to say the least.  The website looks legit but
> > > I dunno...
> >http://seller.samsungapps.com/login/signIn.as?returnURL=/main/sellerM...
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > For more options, visit this group athttp://
> > groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] samsung app store

2010-05-12 Thread schwiz
I have been receiving some emails from someone claiming to be a rep
for samsung and they are opening a new app store selling android
apps.  They have asked that I publish one of my apps they found on the
android market on their store. Just wondering if anyone else has been
getting emails like that and if it is legit?  I am a little weary to
give them my bank info to say the least.  The website looks legit but
I dunno...
http://seller.samsungapps.com/login/signIn.as?returnURL=/main/sellerMain.as

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


[android-developers] Re: Cannot see device in DDMS

2010-04-15 Thread schwiz
make sure you have the latest driver installed and for the correct os
(32 vs 64 bit) I have had this problem with some but not all devices
at once.  I can't think of what else it could be but drivers though.

On Apr 15, 12:42 am, Ken H  wrote:
> I have Windows XP and use Eclipse v3.4.1.
>
> Under Device Manager I see Android Phone -> Android Composite ADB
> Interface when my Nexus One is plugged into the computer (Disk drives -> HTC 
> Android Phone USB Device when my myTouch is plugged in), so I
>
> believe my  USB drivers are there.
>
> On my phone under Settings -> Applications -> Development, USB
> debugging is checked.
>
> When I connect the phone I see "USB debugging connected" in the
> notification window.
>
> When I select the DDMS perspective I see nothing. When I type "adb
> devices" in a command window I get back nothing in the list of
> attached devices.
>
> I can run the emulator just fine, but I cannot see any physical
> devices (Nexus One or myTouch). What am I doing wrong?
>
> Ken

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: I have a question in soft keyboard.

2010-04-15 Thread schwiz
I'm not exactly sure what you mean, if you are talking about the
activity window resizing when you open your keyboard, that has to do
with the activity no the keyboard, try opening your keyboard in
dolphin browser or something like that and it won't resize the
background.  Sorry if that isn't what you are talking about.

On Apr 14, 10:13 pm, sungjae  wrote:
> Hello~
>
> I'm in the middle of developing a new soft keyboard.
>
> But I got trouble.
>
> When I input some text, my soft keyboard pops up and the background is
> resized, which is not an option I want.
>
> I'd like to force the background to keep its current state even though
> the keyboard pops up.
>
> Is there any way I can do??

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: how to use yahoo API to import contacts in android

2010-04-15 Thread schwiz
I was trying to figure this out for my wife, it seems yahoo charges
users for this kind of functionality.  At least as far as I can
tell...  But motoblur does integrate with yahoo mail perhaps there is
a way.

On Apr 15, 1:39 am, Omy  wrote:
> Hi ,
> I need some help regarding Use Of Yahoo API in android
> can any body help me how i can fetch all the contacts from yahoo
> contact list from android
> 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.


[android-developers] any lawyer types out there that can get this site down?

2010-04-07 Thread schwiz
http://androidplayground.net/web/

they have been spamming the market all day, hope someone can get them
shut down.

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Missing Android Phone from Google

2010-04-06 Thread schwiz
hope you learned your lesson, always open a package and inspect it
before signing for it.  I learned the hard way too with a newegg order
once.

On Apr 2, 4:47 pm, haleyathena  wrote:
> Recently Google awarded me with a free brand new Motorola Droid...the
> Fed Ex box arrived yesterday and it was EMPTY...absolutely empty! I'm
> pissed...i've called Fed Ex...Bright Point (Shipper)...and
> Google...they're all sending me around in circles and could careless!
> But i was counting on that phone to help me develop better apps!
> Anyone else have this problem? Or know of any numbers I can call to
> get a straight answer??
>
> I appreciate any help!

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] ad support?

2010-04-05 Thread schwiz
I am wanting to make an ad supported version of my app, any
suggestions as who to go with?  I was just looking into Admob, anyone
like a different company better?  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Android Dev for Military Applications

2010-04-04 Thread schwiz
Droid does kill people.

On Mar 31, 2:59 pm, Nate  wrote:
> There are a few opportunities out there for Android development in the
> military. We'd really like to pull in a developer to help our efforts
> out on some of these projects - the bulk of the work would go to you.
> If you're interested, please let me know. nchenenko at winvale dot com
> or 202 296 5505.

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


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-01 Thread schwiz
So I got a Droid and also in the box was a Sprint USB 3G/4G modem, I
thought it was pretty random, not sure what it has to do with
Android.  I think I got since my Droid didn't come with a free month
like they said it would.

On Mar 29, 7:48 am, zneref  wrote:
> People relax, 6-weeks term doesn't passed yet ;)
>
> On 29 Mar, 11:25, Paul  wrote:
>
>
>
> > Germany, still waiting.
> > ... and growing nervous :)

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Activity lifecycle problem on Nexus One - onStop not called

2010-03-04 Thread schwiz
It should be called when you press back but not home, but I have
noticed this problem using openeclair on my G1.  Perhaps its a new
feature/bug in 2.1?

On Mar 4, 1:54 pm, Zuli  wrote:
> Hi Matias,
> thanks for your reply, but that's not the point. Because onStop() is
> called when the activity is no longer visibile, it should be called
> when the user presses the HOME or BACK button, and that is not
> happening on the Nexus One... well not on mine at least :)
>
> Zuli
>
> On Mar 4, 8:23 pm, Matias Alberto de la Vega
>
>  wrote:
> > Zuli, onStop() is called when your Activity is no longer visible, this
> > may happen if a new activity is created (full screen mode) and is
> > positioned in front of yours, also it may be caused because another
> > Activity is resumed and brought to front (also full screen) and in the
> > last case onStop() is called when your Activity is about to be
> > destroyed (prior to onDestroy). After onPause() is called there are
> > two options, onRestart() is called to restart your Activity or
> > onDestroy() is called to kill your activity. Hope this helped. Bye
>
> > On 4 mar, 13:26, Zuli  wrote:
>
> > > Hi,
> > > I have a problem with the activity lifecycle specifically on Nexus One
> > > (2.1 running on emulator works fine).
> > > If I just create a simple empty Activity with no special launchModes
> > > that logs the calls on the onStart and onStop methods, this is what I
> > > see:
>
> > > - launch app: onStart called;
> > > - home button: onStop NOT called;
> > > - launch app: onStart NOT called;
> > > - home button: onStop NOT called:
>
> > > and so on. Sometimes if I press the back button then the onStop is not
> > > called, but the when i launch the activity again the onStart is called
> > > and right after the onStop is called.
> > > Similar results with different launchModes...
>
> > > What is going on? Can anyone confirm this?
>
> > > Zuli
>
> > > i found an android issue for the problem 
> > > here:http://code.google.com/p/android/issues/detail?id=6094
> > > and a similar thread 
> > > herehttp://groups.google.com/group/android-developers/browse_thread/threa...

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


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-02 Thread schwiz
In gmail if you click show details it says signed by google.com, only
other email I have ever seen like that is from google checkout.

On Mar 2, 6:44 pm, Larry  wrote:
> Not to mention the giveaway webpage design is so not google style.
>
> On Mar 2, 5:42 pm, Larry  wrote:
>
>
>
> > If it's real, google can just give us a link in the android market
> > webpage instead of making a google site which is public to all the
> > ppl.
>
> > But anyway...I am gonna fill the form guess I won't lose anything...
>
> > On Mar 2, 5:39 pm, Tikoze  wrote:
>
> > > I met the requirements and received the email as well.   I hope this
> > > is real but I am skeptical...
>
> > > Why is there nothing on the dev blog?
> > > Why is there nothing on the official market wepbape?
> > > Why is there not a notification or something when you log into the
> > > android market?
> > > Why is it sites.google.com and not a "real" webpage?
>
> > > All of these things have me very suspicious...
>
> > > On Mar 2, 5:33 pm, schwiz  wrote:
>
> > > > @jeka 5k isn't that big of a deal but having over 3.5 stars with 5k+
> > > > downloads is a much bigger accomplishment.
>
> > > > On Mar 2, 6:30 pm, jeka  wrote:
>
> > > > > Is 5K+ that big a deal to begin with? I know most top apps get more
> > > > > than that per day. Too low a threshold to be real AFAIKT.
>
> > > > > On Mar 2, 7:28 pm, Larry  wrote:
>
> > > > > > Do ppl who received this email here all have an app on market with 
> > > > > > 5k+
> > > > > > downloads?
>
> > > > > > On Mar 2, 5:23 pm, wataru  wrote:
>
> > > > > > > I didn't even doubt a second and already fill-in the form
> > > > > > > (yeah, I thought this is too good to be true too but tone of the 
> > > > > > > email
> > > > > > >  just sounded like the few announcement email I got from
> > > > > > >  Eric Chu before)
>
> > > > > > > Oh well, too late - I'm just hoping it's legit but in worst case
> > > > > > > somebody got my (bit of) personal information such as
> > > > > > > mailing address and phone number.
>
> > > > > > > Tomo
>
> > > > > > > On Mar 2, 7:19 pm, Larry  wrote:
>
> > > > > > > > Yea its too good to be true...
>
> > > > > > > > Is there any Google ppl here that can answer my question 
> > > > > > > > officially?
>
> > > > > > > > On Mar 2, 5:17 pm, g1bb  wrote:
>
> > > > > > > > > What could they possibly even do with my checkout order #?
>
> > > > > > > > > On Mar 2, 5:15 pm, Photics  wrote:
>
> > > > > > > > > > Heh... it seems suspicious to me. I didn't even click the 
> > > > > > > > > > link.
>
> > > > > > > > > > Although, if this is a fishing attempt, it starts out as a 
> > > > > > > > > > very good
> > > > > > > > > > one.

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


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-02 Thread schwiz
@jeka 5k isn't that big of a deal but having over 3.5 stars with 5k+
downloads is a much bigger accomplishment.

On Mar 2, 6:30 pm, jeka  wrote:
> Is 5K+ that big a deal to begin with? I know most top apps get more
> than that per day. Too low a threshold to be real AFAIKT.
>
> On Mar 2, 7:28 pm, Larry  wrote:
>
>
>
> > Do ppl who received this email here all have an app on market with 5k+
> > downloads?
>
> > On Mar 2, 5:23 pm, wataru  wrote:
>
> > > I didn't even doubt a second and already fill-in the form
> > > (yeah, I thought this is too good to be true too but tone of the email
> > >  just sounded like the few announcement email I got from
> > >  Eric Chu before)
>
> > > Oh well, too late - I'm just hoping it's legit but in worst case
> > > somebody got my (bit of) personal information such as
> > > mailing address and phone number.
>
> > > Tomo
>
> > > On Mar 2, 7:19 pm, Larry  wrote:
>
> > > > Yea its too good to be true...
>
> > > > Is there any Google ppl here that can answer my question officially?
>
> > > > On Mar 2, 5:17 pm, g1bb  wrote:
>
> > > > > What could they possibly even do with my checkout order #?
>
> > > > > On Mar 2, 5:15 pm, Photics  wrote:
>
> > > > > > Heh... it seems suspicious to me. I didn't even click the link.
>
> > > > > > Although, if this is a fishing attempt, it starts out as a very good
> > > > > > one.

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


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-02 Thread schwiz
yep I met all the requirements so it didn't seem fishy to me.  I hope
it is real I am excited for my phone :)

On Mar 2, 6:28 pm, Larry  wrote:
> Do ppl who received this email here all have an app on market with 5k+
> downloads?
>
> On Mar 2, 5:23 pm, wataru  wrote:
>
>
>
> > I didn't even doubt a second and already fill-in the form
> > (yeah, I thought this is too good to be true too but tone of the email
> >  just sounded like the few announcement email I got from
> >  Eric Chu before)
>
> > Oh well, too late - I'm just hoping it's legit but in worst case
> > somebody got my (bit of) personal information such as
> > mailing address and phone number.
>
> > Tomo
>
> > On Mar 2, 7:19 pm, Larry  wrote:
>
> > > Yea its too good to be true...
>
> > > Is there any Google ppl here that can answer my question officially?
>
> > > On Mar 2, 5:17 pm, g1bb  wrote:
>
> > > > What could they possibly even do with my checkout order #?
>
> > > > On Mar 2, 5:15 pm, Photics  wrote:
>
> > > > > Heh... it seems suspicious to me. I didn't even click the link.
>
> > > > > Although, if this is a fishing attempt, it starts out as a very good
> > > > > one.

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


[android-developers] Re: ActivitNotFoundException

2010-02-24 Thread schwiz
you are using the emulator or another device that does not support
speech recognition.

On Feb 24, 12:42 am, Mukesh kumar  wrote:
> Hi Everybody
>
> Problem: When we run this program. then after click the button(voice
> Recognition)
>
> Show message box with exception what we catch
> Exception:
> android.content.ActivitNotFoundException:No Activity Found to handle
> Intent{action=android.speech.action.RECOGNIZE_SPEECH}
>
> Please give me solution of it. why ActivityNotFoundException throws in
> program
>
> SpeechActivity.java
>
> package com.tutorial;
>
> import android.app.Activity;
> import android.content.Intent;
> import android.os.Bundle;
> import android.util.Log;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.widget.Button;
> import android.widget.EditText;
> import android.widget.Toast;
>
> public class SpeechActivtiy extends Activity
> {
>         Button Voice_Rec_BTN;
>         EditText VoiceResults_Txt;
>
>         /** Called when the activity is first created. */
>         @Override
>         public void onCreate(Bundle savedInstanceState)
>         {
>                 super.onCreate(savedInstanceState);
>                 setContentView(R.layout.speech);
>
>                 Voice_Rec_BTN = (Button) findViewById(R.id.startvoice);
>                 Voice_Rec_BTN.setOnClickListener(new OnClickListener()
>                 {
>                         public void onClick(View v)
>                         {
>                                 startVoiceRecognitionActivity();
>                         }
>                 });
>         }
>
>         /**
>          * Fire an intent to start the speech recognition activity.
>          */
>         private void startVoiceRecognitionActivity()
>         {
>                 Intent intent = new
> Intent("android.speech.action.RECOGNIZE_SPEECH");
>                 //intent.setAction(ACTIVITY_SERVICE);
>                 try
>                 {
>                         startActivityForResult(intent, 0);
>                 } catch (Exception e)
>                 {
>                         // TODO Auto-generated catch block
>                         Log.e(":::ERROR::", e.toString());
>                         Toast.makeText(SpeechActivtiy.this, e.toString(), 
> 10).show();
>                 }
>
>                 Log.v(":::","444");
>         }
>
>         @Override
>         protected void onActivityResult(int requestCode, int resultCode,
> Intent data)
>         {
>                 super.onActivityResult(requestCode, resultCode, data);
>         }
>
> }
>
> speech.xml
>
> 
>  android:id="@+id/rellayout"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> xmlns:android="http://schemas.android.com/apk/res/android";
>
>            android:id="@+id/list"
>      android:layout_width="fill_parent"
>      android:layout_height="341px"
>      android:layout_below="@+id/startvoice"
>      android:layout_alignParentLeft="true"
>      >
>      
>            android:id="@+id/startvoice"
>      android:layout_width="fill_parent"
>      android:layout_height="wrap_content"
>      android:text="Voice Recognition"
>      android:layout_alignParentTop="true"
>      android:layout_alignParentLeft="true"
>      >
> 
> 
>
> AndroidMainfest.xml
>
> 
> http://schemas.android.com/apk/res/android";
>       package="com.tutorial"
>       android:versionCode="1"
>       android:versionName="1.0">
>     
>
>          android:label="@string/hello">
>                 
>                         
>                          android:name="android.intent.category.LAUNCHER" /
>
>              
>         
>     
>     
>
> 
>
> string.xml
> 
> 
>     Hello World, SpeechToText!
>     SpeechTutorial
>      voice recognition Demo string>
>     Speak!
>
> 

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


[android-developers] Re: Need help with small animation

2010-02-24 Thread schwiz
all of this is handled for you if you just use the built in sliding
drawer class.

On Feb 23, 9:35 am, social hub  wrote:
> Hi,
>
> |---
> TEXT VIEW
> ---'
> SLIDE DRAWER image
>
> I have a layout like this above textview and an image that slides down after
> clicking the text view
>
> I have loooked at translate animation but the issue is I want the image to
> start from the bottom of text view and gradually get into its full view.
>
> Translate animation doesnt let me start from behind the textview so that it
> can appear slowly and coming out at the bottom of text view and expanding to
> its fullview
>
> I have linear layout now with textview and imageview
>
> Please let me know how to do this.
>
> Thanks in advance with your help

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


[android-developers] Re: Android SDK for Windows 7

2010-02-24 Thread schwiz
been running eclipse on my win7 64 machine since RC and on through
release with no issues.

On Feb 24, 1:14 pm, Evgeny V  wrote:
> Both are working fine on Windows 7 32bit
>
>
>
> On Wed, Feb 24, 2010 at 9:07 PM, DKIT Android  wrote:
> > Don't know about Eclipse, but I use IntelliJ IDEA and it works like a
> > charm...
>
> > On 24 Feb, 16:15, Julian  wrote:
> > > I have recently began developing for smartphones and I am extremely
> > > interested in developing for Android.  The only problem is that I have
> > > Windows 7 on my computer.  Is there any way I can install Eclipse and
> > > Android SKD? or do I have to install Windows Vista or XP on my
> > > computer?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Intent for editing text

2010-02-24 Thread schwiz
Im thinking you might need to make your app an inputdevice, here is an
example here it isn't really just limited to softkeyboards
http://d.android.com/resources/samples/SoftKeyboard/index.html

On Feb 24, 5:31 am, chris price  wrote:
> Hello,
>
> When typing some text a user can press down on the text and the edit
> text options are showing copy, cut, etc
>
> I want to add a option there called "Add to MyApp" which then runs
> some of my code. There will be no user interation so I will need type
> of service??
>
> How can I do this?
>
> Thanks Alot

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


[android-developers] Re: How does the imeOptions of EditText work

2010-02-24 Thread schwiz
have your activity implement onEditorActionListener then handle it in
the method onEditorAction.

On Feb 24, 11:25 am, Mark Nuetzmann  wrote:
> So if you set android:imeOptions="actionSearch" how do I intercept the
> result of the clicking the action/search button on the virtual
> keypad?  How do I assign that result to a button in the layout of my
> activity or in some way handle the click of this key?
>
> My specific situation is I am in the Search activity as the result of
> an in-app search.  In the activity I have an EditText at the top that
> shows what is being searched for. In the layout xml I set the
> imeOptions of this EditText to actionSearch...  I do not seem to be
> getting anything to happen when the user touches the aciotn key other
> than focus moving to the next focusable control (not what I want).

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


[android-developers] Re: To all android developers

2010-02-22 Thread schwiz
sounds like you should buy an iphone :P

On Feb 22, 12:59 pm, Greg Donald  wrote:
> On Sun, Feb 21, 2010 at 7:20 PM, ltjisstinky  wrote:
> > Lets try and keep the porn/risque apps to a minimum..
>
> > Also, if there are google engineers reading this. Do something about
> > the adult groups that just post porn pictures/videos. I don't need to
> > see hundreds of these groups while I search for quality groups.
>
> You are so funny.  Google engineers can't even run Marketplace stats,
> much less be your censor-guardian.
>
> --
> Greg Donald
> destiney.com | gregdonald.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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Example that redraws on a key without using a thread?

2010-02-19 Thread schwiz
you have the right idea,  first make you activity implement
onClickListener, then pass onClickListener this instead.  Then you
need to either be extending from TextView instead of view, or be
calling canvas.drawText()

On Feb 19, 4:01 pm, BobG  wrote:
> //This actually works. Hope it helps someone.
> package com.AITI.hellobutton;
>
> import android.app.Activity;
> import android.content.Context;
> import android.graphics.Canvas;
> import android.os.Bundle;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.widget.Button;
>
> public class hellobutton extends Activity {
>         public Button button01;
>         public int count;
>         public HelloButtonView hellobuttonview;
>
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         hellobuttonview = new HelloButtonView(this);
>         setContentView(R.layout.main);
>
>         button01=(Button)findViewById(R.id.Button01);
>         button01.setOnClickListener(new OnClickListener(){
>                 @Override
>                     public void onClick(View button01) {
>                         hellobuttonview.dodraw();
>                     }//onclick
>             });//onclicklistener
>     }//oncreate
>
>     public class HelloButtonView extends View{
>         public HelloButtonView(Context context){
>           super(context);
>         }
>
>         @Override
>         protected void onDraw(Canvas canvas){
>             super.onDraw(canvas);
>             dodraw();
>         };//ondraw
>
>         public void dodraw(){
>             count++;
>             button01.setText("button01 count "+count);
>                 invalidate();
>         }//dodraw
>     }} //activity
>
> //-eof

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


[android-developers] Re: drawing children in custom linearlayout

2010-02-10 Thread schwiz
Yeah I commented that line out because I decided to just set it in my
xml file

The Layout is showing up fine because I can see the black outline, its
just the textviews inside still aren't showing up.

On Feb 9, 11:40 pm, TreKing  wrote:
> On Tue, Feb 9, 2010 at 6:09 PM, schwiz  wrote:
> > Here is my revised
> > codehttp://pastebin.com/f1fb834ce right now I have my own textView
> > class in there that I plan to override onLongClick for but I have
> > tried this with a regular textView as well just to be sure, and it
> > still doesn't work.
>
> Are you sure the width you're using for the layout parameters is accurate?
> Maybe try WRAP_CONTENT or FILL_PARENT and see if that works?
> You commented out setOrientation so the LinearLayout will default to
> horizontal. Is this what you want?
>
> --- 
> --
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

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


[android-developers] Re: How can I draw a simple shape with shapedrawable?

2010-02-09 Thread schwiz
You need to override the constructor that has the attributes argument,
and then you just treat it like any other view in the xml file.  like


On Feb 9, 8:56 pm, Breezy  wrote:
> Okay, I see what you're talking about, but I guess my question is how
> do I put that into my ImageView that's in my XML file?
>
> On Feb 9, 7:02 pm, schwiz  wrote:
>
>
>
> > You make your own class that inherits from View and in the onDraw
> > method you call canvas.drawCircle, drawLine, drawPath, etc
>
> > On Feb 9, 6:47 pm, Breezy  wrote:
>
> > > Hmmm, still a little confused...  Are you saying to utilize the
> > > ImageView, but draw on it as if it were a canvas?
>
> > > On Feb 9, 6:31 pm, Jason Proctor 
> > > wrote:
>
> > > > one way is to override your View's draw() and then do stuff with the
> > > > Canvas instance passed in. the drawLine() etc methods are in Canvas.
>
> > > > >I've looked for a tutorial on it, but I can't figure out how to do
> > > > >it...  For starters, and I can dig some more from there, how do I have
> > > > >a simple program draw a simple rectangle?  Nothing else, no frills,
> > > > >just draw and display a rectangle?
>
> > > > >I was thinking for the layout I would use ImageView, then use
> > > > >ShapeDrawable from there, but I'm not so sure if that's correct.
>
> > > > >--
> > > > >You received this message because you are subscribed to the Google
> > > > >Groups "Android Developers" group.
> > > > >To post to this group, send email to 
> > > > >android-developers@googlegroups.com
> > > > >To unsubscribe from this group, send email to
> > > > >android-developers+unsubscr...@googlegroups.com
> > > > >For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > --
> > > > jason.vp.engineering.particle

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


[android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread schwiz
Thanks for the reply Romain but you misunderstood my problem, its not
the long click I am worried about but that my textViews are not
showing up in my linear layout when I call addView

On Feb 9, 6:14 pm, Romain Guy  wrote:
> You don't need to set a background color, you just need to call
> setWillNotDraw(false);
>
> > right now I have my own textView
> > class in there that I plan to override onLongClick for but I have
> > tried this with a regular textView as well just to be sure, and it
> > still doesn't work.
>
> You need to make the view long clickable.
>
>
>
>
>
>
>
> > On Feb 9, 3:30 pm, TreKing  wrote:
> >> On Tue, Feb 9, 2010 at 3:21 PM, schwiz  wrote:
> >> > The problem with adding them in the constructor is that I want to add
> >> > them dynamically, also I need to add the view in my xml file because
> >> > it is only one small part of a larger layout.  Thanks for the advice
> >> > though.
>
> >> One of my LinearLayouts is filled with views dynamically, so this should
> >> definitely work. Very strange. What I would do is:
> >> 1 - Replace your LinearLayout with a regular one and see if that works. At
> >> least you can determine if that's the problem.
> >> 2 - Change the background colors on your LinearLayout and views your adding
> >> to something that stands out (Pink, Green, et). See if anything shows up
> >> that way.
>
> >> This may help at least figuring out where you're going wrong.
>
> >> ---
> >>  --
> >> TreKing - Chicago transit tracking app for Android-powered 
> >> deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can I draw a simple shape with shapedrawable?

2010-02-09 Thread schwiz
You make your own class that inherits from View and in the onDraw
method you call canvas.drawCircle, drawLine, drawPath, etc



On Feb 9, 6:47 pm, Breezy  wrote:
> Hmmm, still a little confused...  Are you saying to utilize the
> ImageView, but draw on it as if it were a canvas?
>
> On Feb 9, 6:31 pm, Jason Proctor 
> wrote:
>
>
>
> > one way is to override your View's draw() and then do stuff with the
> > Canvas instance passed in. the drawLine() etc methods are in Canvas.
>
> > >I've looked for a tutorial on it, but I can't figure out how to do
> > >it...  For starters, and I can dig some more from there, how do I have
> > >a simple program draw a simple rectangle?  Nothing else, no frills,
> > >just draw and display a rectangle?
>
> > >I was thinking for the layout I would use ImageView, then use
> > >ShapeDrawable from there, but I'm not so sure if that's correct.
>
> > >--
> > >You received this message because you are subscribed to the Google
> > >Groups "Android Developers" group.
> > >To post to this group, send email to android-developers@googlegroups.com
> > >To unsubscribe from this group, send email to
> > >android-developers+unsubscr...@googlegroups.com
> > >For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > jason.vp.engineering.particle

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


[android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread schwiz
I actually did do that, I found that I do need to specify a background
color for the ondraw to be called, now that I am specifying the
background color my onDraw method is being called that draws the
outline around my linear layout, then I have onclick overridden to add
a textview to the linear layout with the background and everything
set, I get a log message so I know it is definately calling my onClick
method but the textViews just are not showing up.  Here is my revised
code http://pastebin.com/f1fb834ce  right now I have my own textView
class in there that I plan to override onLongClick for but I have
tried this with a regular textView as well just to be sure, and it
still doesn't work.

On Feb 9, 3:30 pm, TreKing  wrote:
> On Tue, Feb 9, 2010 at 3:21 PM, schwiz  wrote:
> > The problem with adding them in the constructor is that I want to add
> > them dynamically, also I need to add the view in my xml file because
> > it is only one small part of a larger layout.  Thanks for the advice
> > though.
>
> One of my LinearLayouts is filled with views dynamically, so this should
> definitely work. Very strange. What I would do is:
> 1 - Replace your LinearLayout with a regular one and see if that works. At
> least you can determine if that's the problem.
> 2 - Change the background colors on your LinearLayout and views your adding
> to something that stands out (Pink, Green, et). See if anything shows up
> that way.
>
> This may help at least figuring out where you're going wrong.
>
> --- 
> --
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

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


[android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread schwiz
The problem with adding them in the constructor is that I want to add
them dynamically, also I need to add the view in my xml file because
it is only one small part of a larger layout.  Thanks for the advice
though.

On Feb 9, 3:07 pm, TreKing  wrote:
> On Tue, Feb 9, 2010 at 2:38 PM, schwiz  wrote:
> > where are you calling
> > it, and do you call anything else before?
>
> Actually I have two, in both cases I just call addView() in the constructor
> to add the child views as needed.
> I looked at the code you posted and you overloaded the constructor that
> takes the AttributeSet. So you're inflating your custom view from a resource
> file? I'm just using the constructor that takes a Context. Maybe try that?
>
> --- 
> --
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

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


[android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread schwiz
Its a no go, I stopped the override ondraw and onlayout and I am
calling addView but it still isn't showing up, where are you calling
it, and do you call anything else before?

On Feb 9, 2:26 pm, TreKing  wrote:
> On Tue, Feb 9, 2010 at 12:07 AM, schwiz  wrote:
> > Hello I have a linear layout that I have overridden because I want to
> > dynamically add other views to it.  I am trying to add some textviews
> > to it and I call addViewToLayout in the onLayout method
>
> Can't you just add your views to the layout using addView()? I have one
> custom LinearLayout and this is what I do and it works fine. No need to
> override onLayout() or onDraw(). Maybe try that?
>
> --- 
> --
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

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


[android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread schwiz
So nobody has ever tried to do this before?

On Feb 9, 11:39 am, schwiz  wrote:
> Stepping through this code even more closely I found that the onDraw
> method isn't even being called at all despite the fact that every
> other view in the xml file is showing up custom and otherwise.
> However, this is the only view that inherits from LinearLayout all of
> the other just inherit from View.  Is there some special case or
> something extra I need to be doing?  Thanks.
>
> On Feb 9, 12:07 am, schwiz  wrote:
>
>
>
> > Hello I have a linear layout that I have overridden because I want to
> > dynamically add other views to it.  I am trying to add some textviews
> > to it and I call addViewToLayout in the onLayout method, stepping
> > through the program in debugger I am sure those are being called but
> > the layout is still showing up empty,  Any advice would be helpful!
> > Here is my code to help clarifyhttp://pastebin.com/f571b278b
> > You may ask why I am not using a list view, and it is because I want a
> > very distinct style that goes with the rest of my app, especially the
> > black outline you see that I am drawing.
> > Thanks,
> > Nathan

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


[android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread schwiz
Stepping through this code even more closely I found that the onDraw
method isn't even being called at all despite the fact that every
other view in the xml file is showing up custom and otherwise.
However, this is the only view that inherits from LinearLayout all of
the other just inherit from View.  Is there some special case or
something extra I need to be doing?  Thanks.

On Feb 9, 12:07 am, schwiz  wrote:
> Hello I have a linear layout that I have overridden because I want to
> dynamically add other views to it.  I am trying to add some textviews
> to it and I call addViewToLayout in the onLayout method, stepping
> through the program in debugger I am sure those are being called but
> the layout is still showing up empty,  Any advice would be helpful!
> Here is my code to help clarifyhttp://pastebin.com/f571b278b
> You may ask why I am not using a list view, and it is because I want a
> very distinct style that goes with the rest of my app, especially the
> black outline you see that I am drawing.
> Thanks,
> Nathan

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


[android-developers] Re: drawing children in custom linearlayout

2010-02-09 Thread schwiz

Anyone?
On Feb 9, 12:07 am, schwiz  wrote:
> Hello I have a linear layout that I have overridden because I want to
> dynamically add other views to it.  I am trying to add some textviews
> to it and I call addViewToLayout in the onLayout method, stepping
> through the program in debugger I am sure those are being called but
> the layout is still showing up empty,  Any advice would be helpful!
> Here is my code to help clarifyhttp://pastebin.com/f571b278b
> You may ask why I am not using a list view, and it is because I want a
> very distinct style that goes with the rest of my app, especially the
> black outline you see that I am drawing.
> Thanks,
> Nathan

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


[android-developers] drawing children in custom linearlayout

2010-02-08 Thread schwiz
Hello I have a linear layout that I have overridden because I want to
dynamically add other views to it.  I am trying to add some textviews
to it and I call addViewToLayout in the onLayout method, stepping
through the program in debugger I am sure those are being called but
the layout is still showing up empty,  Any advice would be helpful!
Here is my code to help clarify http://pastebin.com/f571b278b
You may ask why I am not using a list view, and it is because I want a
very distinct style that goes with the rest of my app, especially the
black outline you see that I am drawing.
Thanks,
Nathan

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


[android-developers] Re: Canvas drawing

2010-02-03 Thread schwiz
your draw routine should only be called if you call invalidate on your
view or its parent view.

On Feb 3, 7:46 am, Neilz  wrote:
> Hi all.
>
> When overiding onDraw() in my View, is it possible to say "Don't draw
> anything new, just keep what was there the last time"?
>
> In my app, I only want to draw when I get a sensor change. These
> changes come intermittently. However the draw() routine is being
> called continuously, many times per second, and is causing a lot of
> overhead. I want to hold the last screen output until I have new
> readings to pass in.
>
> Is this possible?

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


[android-developers] Re: Register a new MIME-type with Android

2010-01-28 Thread schwiz
Im not entirely sure but I think you need to implement a broadcast
receiver for that mimetype

On Jan 28, 8:08 am, Varun Khaneja  wrote:
> Hi,
>
> I want to register my application for files of a certain popular and
> well-documented MIME-type.
> The problem is that Android does not seem to recognize this MIME-type.
>
> The following sample code demonstrates this:
>
> package com.example.helloandroid;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.util.Log;
> import android.widget.TextView;
>
> public class HelloAndroid extends Activity {
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         TextView tv = new TextView(this);
>         tv.setText("Hello, Android");
>         setContentView(tv);
>         String extn =
> android.webkit.MimeTypeMap.getFileExtensionFromUrl("/data/a.xyz");
>         String xyzMimeType =
> android.webkit.MimeTypeMap.getSingleton().getMimeTypeFromExtension
> (extn);
>         Log.d ("HelloAndroid", "extn: " + extn + " | xyzMimeType: " +
> xyzMimeType);
>     }
>
> }
>
> The MIME-type returned by this API is NULL although it correctly
> returns the extension (extn = "xyz").
>
> So in my main application, if I skip the  /> line in the manifest file, the application does not receive the
> intent which means it is not launched.
> And there seems to be no way to specify android:mimeType as NULL.
>
> I also tried using , but with that, I get
> an error saying "Malformed XML".
> (Read about it 
> here:http://stackoverflow.com/questions/1733195/android-intent-filter-for-...)
>
> Could someone please throw some light on this?
>
> Thanks,
> -Varun

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


[android-developers] Re: What is the difference between rooted and Developer phone?

2010-01-28 Thread schwiz
The dev phone is for making custom builds of Android not for debugging
APKs you can debug with ANY android phone.

On Jan 28, 4:40 pm, Wayne Wenthin  wrote:
> Or look at moto's stuff.  They have some sort of way you can "rent" time on
> a real phone.   Not really sure its Moto but they are the ones pushing it
> right now the hardest.
>
>
>
>
>
> On Thu, Jan 28, 2010 at 2:39 PM, Wayne Wenthin  wrote:
> > The emulator is a good friend to have.  It will save you from going
> > bankrupt trying to keep up.  Unless your app makes alot of money.
>
> > On Thu, Jan 28, 2010 at 2:27 PM, Urban ArtFX wrote:
>
> >> Please help.
>
> >> On Jan 28, 2:05 pm, Urban ArtFX  wrote:
> >> > I was just wondering. I was going to buy the DEV 2 but then i decided
> >> > to just buy the Nexus One.  I want to troubleshoot my apps but i don't
> >> > want to buy old technology.  as it is I am going to have to buy a new
> >> > phone every 6 months to keep up with technology.  Any help would be
> >> > great.
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com >>  cr...@googlegroups.com>
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Writing code is one of few things
> > that teaches me I don't know everything.
>
> > Join the Closed Beta of Call Girl Manager
> >http://www.fuligin.com/forums
>
> --
> Writing code is one of few things
> that teaches me I don't know everything.
>
> Join the Closed Beta of Call Girl Managerhttp://www.fuligin.com/forums

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


[android-developers] Re: How to create txt file in android programatically?

2010-01-26 Thread schwiz
does it have to be text?  it may be easier to just use the xml read/
write libraries to do this.

On Jan 24, 11:10 pm, "pramod.deore"  wrote:
> Hello everybody ,
> Actually I am new to android. I want to create a .txt file
> programatically, save data to it and then retrieve the data. I had
> write one application for that but when I run it it creates file under
> data/data//files folder , I can see only size of this
> file but I can't open it.
>
> but when I deploy the application on mobile then there is no any file
> created. If i supplied path like
>
> FileOutputStream fOut = openFileOutput("/sdcard/
> deore.txt",Context.MODE_WORLD_WRITEABLE);
>
> then it throws Exception.
>
> So, please tell me where the actual file is saved under the phone and
> how to open it.
>
> 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Simple question... how do I open the browser?

2010-01-24 Thread schwiz
You need to use an intent

startActivity(new Intent(Intent.ACTION_VIEW, newUri ));

On Jan 24, 8:59 pm, Breezy  wrote:
> When a user clicks the "about" button in my app's menu I want it to
> open the browser and go to a specific webpage...  Is there like a one-
> liner out there somewhere to do this?  Seems simple but Google is not
> being helpful right now - or I'm just searching the wrong thing.
>
> 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread schwiz
Have you explained in your app description what you are requesting
sdcard access for?

On Jan 24, 2:36 pm, Carlo  wrote:
> Yes, but that is not my point : if you need to write to external data
> storage (the sdcard)  then the permission seems to be granted
> automatically if your app is under 1.5 (or lower) so the end user does
> not feel like.."hey you are going to write to my sdcard" and he does
> feel secure (even if it is not true at all because this permission is
> granted without his knowledge and application is probably going to
> write freely to the sdcard),  however, the exact same application
> using 1.6 , MUST add the permission and then the user must accept
> it but,  the way it is presented, specially that the application
> could modify the content of the sdcard makes the user feel like this
> 1,6 application is less secure than the previous one and might refuse
> to install it (which is the case we are facing), so you have better
> chance in the market having a 1.5 application than a 1.6 or higher,
> unless you dont need to access the sdcard, i am not calling this very
> good for pushing new OS application..
>
> On Jan 25, 4:45 am, Dianne Hackborn  wrote:
>
> > If you are explicitly supporting 1.6 and up, users are NOT shown these
> > permissions, since you have set android:targetSdk="4" so the platform will
> > not automatically add those permissions.
>
> > If you have not set the targetSdk to 4 or higher, then you are an older app,
> > and the platform must automatically give you those permissions, because on
> > previous versions of the platform there was no restriction on applications
> > doing these things.
>
> > On Sun, Jan 24, 2010 at 9:13 AM, Carlo  wrote:
> > > We are receiving many emails from customers very afraid with the new
> > > "SD card permission" that will "modify" their sdcard content. As all
> > > developers know, this permission was granted automatically until OS
> > > 1.5 but not anymore. I hope there will be some "education" now to
> > > the... "end user" to explain that the new application using the new OS
> > > are not necessary more..."dangerous" than the previous one.
>
> > > We feel like "penalized" to be one of those trying to support new
> > > version of the OS
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: newbie question on onDraw

2010-01-23 Thread schwiz
to force onDraw to call you must call invalidate.

On Jan 22, 10:23 am, bhupesh  wrote:
> All references so far I have seen is that the "framework" will call
> onDraw.  Which part of the framework specifically calls onDraw.  Can I
> control when onDraw gets called or can I call it myself without
> causing any problems.  What happens after onDraw.  Basically, if
> anybody can point me to or explain a complete detail flow of graphics,
> I would really appreciate that.  I am trying to benchmark performance
> and hence need these details.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: adding voice search

2010-01-21 Thread schwiz
I think you would override onActivityResult like I did in my project.

On Jan 21, 12:17 pm, Achanta  wrote:
> Thank you Schwiz and David for the replies. they were helpful.
>
> I included the part that David advised and it works great.
>
> Now I have a requirement with the search in my project.
> I need to provide a widget like the quick Search box in the main page
> of the app..ie., it should always be visible. It should also have the
> voice search[mic] button.
>
> So when users start typing in this or click on the mic button and
> start speaking, it should grab the string and open the search results
> page with this search string.
> How can I implement that?
>
> Thanks again.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Dialog sizing question

2010-01-20 Thread schwiz
in the high rez layout folder make a new xml file and give your linear
layout  a hard coded value, you can check the dev guide to see what
the minimum width/height needs to be for it to use the high rez layout
so you don't need to worry about making it to big

On Jan 19, 8:24 pm, Zsolt Vasvari  wrote:
> I have a pop-up dialog with a handful of views.  When I test it on a
> high-res, medium density screen (480x800x160dpi), the dialog is very
> small, about half of the available screen width.  I define the layout
> as such:
>
> 
> http://schemas.android.com/apk/res/
> android"
>                           android:layout_width="fill_parent"
>                           android:layout_height="wrap_content"
>                           android:orientation="vertical"
>                           android:paddingLeft="5dip"
>                           android:paddingRight="5dip">
>
>                                :
>                                :
> 
>
> I hoped that by not defining an a particular width, the system would
> take care of sizing it to the available screen real estate, and I need
> not to worry about the different display metrics.  This doesn't appear
> to be the case.  Am I missing something here?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: adding voice search

2010-01-19 Thread schwiz
yep and here is an example in my open source project let me know if
you have questions
http://code.google.com/p/schwiz-android-apps/source/browse/trunk/WolframQuickLaunch/src/net/schwiz/wolfram/walauncher.java

On Jan 19, 6:01 pm, Achanta  wrote:
> Did you happen to figure this out?
>
> Can someone point to the correct resource or example regarding voice
> search.
>
> Thank you.
>
> On Dec 1 2009, 5:01 pm, schwiz  wrote:
>
>
>
> > I have seen plenty of other apps do this can anyone at all please
> > point me to the documentation for this!!
>
> > On Dec 1, 2:22 pm, schwiz  wrote:
>
> > > bump
>
> > > On Dec 1, 12:53 am, schwiz  wrote:
>
> > > > I want to add avoicesearchbutton to one of my apps but I can't seem
> > > > to find documentation on it anywhere.  Can someone give me an example
> > > > or point me to one?
> > > > 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Unable to start download in default android Browser

2010-01-19 Thread schwiz
looks like the link is broken did you try emailing the developer?

On Jan 19, 9:14 am, mariush  wrote:
> Hi,
> I want to download and install widget from page widgets.opera.com,
> i enter to this site:http://widgets.opera.com/general/getopera/3529/1.6/
> and i am trying to download widget by pressing "Get Files Button".
> But instead of starting download, the site is only reloading...
> I`ve checked with wireshark, that serwer gives in response desired
> widget file
> with correct mime type.
> Any ideas why download isn`t started?
> 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Saving the contents of an array

2010-01-19 Thread schwiz
you could use the xmlSerializer class to write an xml file and sax to
read it back in

On Jan 19, 9:23 pm, Charlie Collins  wrote:
> If your array is not too large, I agree with theSmith, using
> SharedPreferences is very easy if you are not sure about how to use
> other data storage approaches. If you store it as a String you could
> then parse it and rebuild the array.
>
> If you have a lot of data, you might want to go ahead and check out
> using a database. Here is a quick database example I wrote recently,
> in case it helps:http://www.screaming-penguin.com/node/7742.
>
> Also, here are some examples of writing and reading to 
> files:http://unlocking-android.googlecode.com/svn/chapter5/trunk/FileStorag
> See "CreateFile" for writing to a file, and "ReadFile" for reading the
> data back. These are a bit simplified, and the process is pretty raw,
> but the concepts are there.
>
> HTH
>
> On Jan 19, 8:25 pm, Jeffrey  wrote:
>
>
>
> > How do I save the contents of an array to a file and then read it
> > again later? I have a small amount of data that will need to be stored
> > and since I have no idea where to start on using a SQLite database, I
> > think this will work a lot better.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: setContentView fails when creating a new activity

2010-01-19 Thread schwiz
what else is going on in onCreate?  are you hiding the title bar?

On Jan 19, 12:12 pm, oregonduckman  wrote:
> My code is calling setContentView(R.layout.someLayoutID); from an
> activities' onCreate method. The activity is launched with the
> following:
>                         Intent myIntent = new Intent(this,
> myClass.class);
>                         try
>                         {
>                                 this.startActivity(myIntent);
>                         }
>                         catch(ActivityNotFoundException e)
>                         {
>                                 e.toString();
>                         }
> The activity is declared in the manifest file as
> 
>
> The call to setContentView results in the following:
> DalvikVM[localhost:8656]
>         Thread [<3> main] (Suspended (exception RuntimeException))
>                 ActivityThread.performLaunchActivity(ActivityThread
> $ActivityRecord,
> Intent) line: 2481
>                 ActivityThread.handleLaunchActivity(ActivityThread
> $ActivityRecord,
> Intent) line: 2497
>                 ActivityThread.access$2200(ActivityThread,
> ActivityThread
> $ActivityRecord, Intent) line: 119
>                 ActivityThread$H.handleMessage(Message) line: 1848
>                 ActivityThread$H(Handler).dispatchMessage(Message)
> line: 99
>                 Looper.loop() line: 123
>                 ActivityThread.main(String[]) line: 4338
>                 Method.invokeNative(Object, Object[], Class, Class[],
> Class, int,
> boolean) line: not available [native method] [local variables
> unavailable]
>                 Method.invoke(Object, Object...) line: 521
>                 ZygoteInit$MethodAndArgsCaller.run() line: 860
>                 ZygoteInit.main(String[]) line: 618
>                 NativeStart.main(String[]) line: not available [native
> method]
>         Thread [<13> Binder Thread #2] (Running)
>         Thread [<11> Binder Thread #1] (Running)
>         Thread [<15> Binder Thread #3] (Running)
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Getting a TextView to span the length of the screen

2010-01-18 Thread schwiz
there may be a better way but I start with a large text size and run a
loop checking if the paint.measurestring > getwidth and decrement text
size each time.

On Jan 18, 7:39 am, Breezy  wrote:
> I've a textview I want to span almost the length of the screen, then 2
> buttons at the bottom.
>
> Right now I'm using a relative layout with a textview and two buttons
> and I can almost get it the way I want but the only thing is the
> textview isn't as long as I want it.  I want it to be as long as
> necessary for whatever handset is using it.  So a constant pixel
> amount is out.
>
> Lets see if this will work.
>
> -
> |                                             |
> |                                             |
> |                                             |
> |                                             |
> |                                             |
> |                                             |
> |                                             |
> |                                             |
> |                                             |
> |                                             |
> |     |
> ||                  |     |                   ||
> |     |
> -
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: RadialGradient question

2010-01-16 Thread schwiz
ok I think it is that it doesn't work with 2 colors, it seems the
positions variable doesn't effect the inner most color.  Is this by
design, a bug, or am I doing it wrong?

On Jan 16, 5:24 pm, schwiz  wrote:
> I have to bump this I have tried every number combination there is and
> it doesn't matter what I do the shader looks exactly the same as if
> the positions array was set to null.  Can anyone at all get the shader
> to look any different in there own projects in the past?  Does it not
> work with just 2 colors?  what is going on here, can anyone help
> please?
>
> On Jan 15, 12:08 pm, schwiz  wrote:
>
>
>
> > I appreciate the reply, however I don't think I understand, I have 2
> > colors I set the positions to  {.75f,.99f}  but it looks exactly the
> > same as if I just leave it as null.  I have tried experimenting with
> > some other values too but it always looks the same to me.
> > Here is a code snippet
>
> >                 positions = new float[2];
> >                 positions[1] = .75f;
> >                 positions[0] = .99f;
> >                 grad = new RadialGradient(circleX, circleY, circleR, colors,
> > positions, TileMode.CLAMP);
> >                 if(values[2] <= 
> > values[0]/2)Pallet.getInstance().white.setShader
> > (grad);
> >                 canvas.drawCircle(circleX, circleY, circleR - 3, 
> > Pallet.getInstance
> > ().white);
>
> > On Jan 15, 10:56 am, Romain Guy  wrote:
>
> > > It does matter, the positions are numbers between 0 and 1 indicating
> > > where each color stop should be in the gradient (0 == center, 1 ==
> > > outside.)
>
> > > On Fri, Jan 15, 2010 at 1:33 AM, schwiz  wrote:
> > > > Ok I was making a stupid mistake and not calling new before I set the
> > > > floats in the array, so my forceclose is fixed, however it doesn't
> > > > matter what numbers I put the in the array the gradient always looks
> > > > the same.  How can I give the inner color more weight?
> > > > Thanks!
> > > > Nathan
>
> > > > On Jan 15, 3:25 am, schwiz  wrote:
> > > >> I am having problems with the constructor RadialGradient (float x,
> > > >> float y, float radius, int[] colors, float[] positions,
> > > >> Shader.TileMode tile) If I don't pass null into positions I get a
> > > >> force close the logcat spits out a bunch of stuff about frame layout.
> > > >> So my question is what exactly do they mean when they say positions is
> > > >> the relative of each color in the array.  The end result I want is for
> > > >> the inner color to have more weight than the outer color.
> > > >> Thanks for your time!
> > > >> Nathan
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Romain Guy
> > > Android framework engineer
> > > romain...@android.com
>
> > > 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: RadialGradient question

2010-01-16 Thread schwiz
I have to bump this I have tried every number combination there is and
it doesn't matter what I do the shader looks exactly the same as if
the positions array was set to null.  Can anyone at all get the shader
to look any different in there own projects in the past?  Does it not
work with just 2 colors?  what is going on here, can anyone help
please?

On Jan 15, 12:08 pm, schwiz  wrote:
> I appreciate the reply, however I don't think I understand, I have 2
> colors I set the positions to  {.75f,.99f}  but it looks exactly the
> same as if I just leave it as null.  I have tried experimenting with
> some other values too but it always looks the same to me.
> Here is a code snippet
>
>                 positions = new float[2];
>                 positions[1] = .75f;
>                 positions[0] = .99f;
>                 grad = new RadialGradient(circleX, circleY, circleR, colors,
> positions, TileMode.CLAMP);
>                 if(values[2] <= 
> values[0]/2)Pallet.getInstance().white.setShader
> (grad);
>                 canvas.drawCircle(circleX, circleY, circleR - 3, 
> Pallet.getInstance
> ().white);
>
> On Jan 15, 10:56 am, Romain Guy  wrote:
>
>
>
> > It does matter, the positions are numbers between 0 and 1 indicating
> > where each color stop should be in the gradient (0 == center, 1 ==
> > outside.)
>
> > On Fri, Jan 15, 2010 at 1:33 AM, schwiz  wrote:
> > > Ok I was making a stupid mistake and not calling new before I set the
> > > floats in the array, so my forceclose is fixed, however it doesn't
> > > matter what numbers I put the in the array the gradient always looks
> > > the same.  How can I give the inner color more weight?
> > > Thanks!
> > > Nathan
>
> > > On Jan 15, 3:25 am, schwiz  wrote:
> > >> I am having problems with the constructor RadialGradient (float x,
> > >> float y, float radius, int[] colors, float[] positions,
> > >> Shader.TileMode tile) If I don't pass null into positions I get a
> > >> force close the logcat spits out a bunch of stuff about frame layout.
> > >> So my question is what exactly do they mean when they say positions is
> > >> the relative of each color in the array.  The end result I want is for
> > >> the inner color to have more weight than the outer color.
> > >> Thanks for your time!
> > >> Nathan
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
>
> > 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android 2d graphics help

2010-01-16 Thread schwiz
an Activity is the same as your midlet, you will make a View and
override onDraw instead of paint, and you call invalidate on the view
instead of repaint.  There are a few different ways to draw images
from pngs depending on what you want to do.  Look into the imageview
class or make your own view and draw your own bitmap.

On Jan 14, 8:06 pm, Mazi  wrote:
> Hi,
> i created a 2d game in java that runs as an applet, and i am now
> trying to translate this over to the android. As the android doesnt
> used paint() methods, i am thinking that i will have to import images
> of the game instead of drawing it, but i cannot find out how to do
> this. Anybody know how to add images to the folder and call them in
> the app? Also, how can i call a screen repaint() in the android?
> Thanks,
> A fairly new Developer
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android Pirate Site

2010-01-16 Thread schwiz
shut one down 3 more pop up, its an unavoidable part of software
development.

On Jan 16, 10:13 am, MakeMobile 
wrote:
> I stumbled upon this site offering 1000's of Android apps for free
> (including mine!).
>
> http://www.reddit.com/r/Android/comments/ap6z0/redditapps_a_1000_list...http://www.mediafire.com/redditapps
>
> How do I report this to Google? How do we shut them down?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: RadialGradient question

2010-01-15 Thread schwiz
I appreciate the reply, however I don't think I understand, I have 2
colors I set the positions to  {.75f,.99f}  but it looks exactly the
same as if I just leave it as null.  I have tried experimenting with
some other values too but it always looks the same to me.
Here is a code snippet

positions = new float[2];
positions[1] = .75f;
positions[0] = .99f;
grad = new RadialGradient(circleX, circleY, circleR, colors,
positions, TileMode.CLAMP);
if(values[2] <= values[0]/2)Pallet.getInstance().white.setShader
(grad);
canvas.drawCircle(circleX, circleY, circleR - 3, 
Pallet.getInstance
().white);

On Jan 15, 10:56 am, Romain Guy  wrote:
> It does matter, the positions are numbers between 0 and 1 indicating
> where each color stop should be in the gradient (0 == center, 1 ==
> outside.)
>
>
>
>
>
> On Fri, Jan 15, 2010 at 1:33 AM, schwiz  wrote:
> > Ok I was making a stupid mistake and not calling new before I set the
> > floats in the array, so my forceclose is fixed, however it doesn't
> > matter what numbers I put the in the array the gradient always looks
> > the same.  How can I give the inner color more weight?
> > Thanks!
> > Nathan
>
> > On Jan 15, 3:25 am, schwiz  wrote:
> >> I am having problems with the constructor RadialGradient (float x,
> >> float y, float radius, int[] colors, float[] positions,
> >> Shader.TileMode tile) If I don't pass null into positions I get a
> >> force close the logcat spits out a bunch of stuff about frame layout.
> >> So my question is what exactly do they mean when they say positions is
> >> the relative of each color in the array.  The end result I want is for
> >> the inner color to have more weight than the outer color.
> >> Thanks for your time!
> >> Nathan
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: RadialGradient question

2010-01-15 Thread schwiz
Ok I was making a stupid mistake and not calling new before I set the
floats in the array, so my forceclose is fixed, however it doesn't
matter what numbers I put the in the array the gradient always looks
the same.  How can I give the inner color more weight?
Thanks!
Nathan

On Jan 15, 3:25 am, schwiz  wrote:
> I am having problems with the constructor RadialGradient (float x,
> float y, float radius, int[] colors, float[] positions,
> Shader.TileMode tile) If I don't pass null into positions I get a
> force close the logcat spits out a bunch of stuff about frame layout.
> So my question is what exactly do they mean when they say positions is
> the relative of each color in the array.  The end result I want is for
> the inner color to have more weight than the outer color.
> Thanks for your time!
> Nathan
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] RadialGradient question

2010-01-15 Thread schwiz
I am having problems with the constructor RadialGradient (float x,
float y, float radius, int[] colors, float[] positions,
Shader.TileMode tile) If I don't pass null into positions I get a
force close the logcat spits out a bunch of stuff about frame layout.
So my question is what exactly do they mean when they say positions is
the relative of each color in the array.  The end result I want is for
the inner color to have more weight than the outer color.
Thanks for your time!
Nathan
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Archos Approval on an app

2010-01-14 Thread schwiz
I actually recieved a response from them on one of my many emails and
tweets, they said do not worry US developers will get their vouchers
and they will expire in March.  I am guessing they are handing them
out on March 30th.

On Jan 14, 7:37 pm, Andrei  wrote:
> still did not get anything from Archos
>
> On Dec 9 2009, 12:37 am, Andrei  wrote:
>
>
>
> > i send them email
> > my app is approved and they will send voucher when US store is set up
>
> > On Dec 8, 6:00 pm, Hong  wrote:
>
> > > According to Tim Strazzere, UK/Europe/Asia developers have received the
> > > coupon codes, while none of the US developers has gotten any.  I 
> > > submitted 4
> > > apps, and I still haven't gotten any.
>
> > > Maybe remote kill switch should be in my next app 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: attaching a slidingdrawer to my activity

2010-01-11 Thread schwiz
according to the dev guide its fair game, there is just no guarantee
that they are going to look the same across all of the releases but
they imply that the icons for menu and notifications will always work.

On Jan 11, 2:56 pm, jotobjects  wrote:
> Another best-practices note!
>
> How about the drawables that are part of the API like
> android.R.drawable?  For instance isn't it desirable for the user
> experience to use common icons such as R.drawable.ic_delete and
> R.drawable.ic_menu_add, etc.?  Is it best practice to copy these into
> your application?  Is there an issue with this if your application is
> not open source?
>
> (Sorry to add this new subject to his thread)
>
> On Jan 11, 10:24 am, Mark Murphy  wrote:
>
>
>
> > jotobjects wrote:
> > > Looking at your sample you include the drawer handle png drawable that
> > > looks a lot like the one in the home page.  Is there a built-in drawer
> > > handle on the platform or does every app have to create their own?
>
> > The core Android team generally does not recommend you attempt to rely
> > on built-in drawables. This would be a fine example, as I would expect
> > the drawable used by the Home screen's sliding drawer to be missing in
> > Android 2.1, since the sliding drawer is not used by the Home screen
> > anymore, at least not for applications.
>
> > Whether you copy an image out of the AOSP or find your own, you should
> > supply your own drawable.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > _Android Programming Tutorials_ Version 1.1 Available!
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Moving Image Over Another Image

2010-01-11 Thread schwiz
You need to use a framelayout or make your own view class

On Jan 11, 1:03 pm, k_day  wrote:
> You will probably want to write your own layout.  See here for more
> information:
>
> http://developer.android.com/guide/topics/ui/custom-components.html
>
> The SDK has a pretty easy to use animation framework.  There are some
> good examples in this document:
>
> http://developer.android.com/guide/topics/graphics/2d-graphics.html
>
> -k_day
>
> On Jan 11, 7:18 am, prakhy  wrote:
>
>
>
> > Hi all,
>
> > I need to design a board UI using android platform. i was planning to
> > take one image as board and moving the required images over the board.
> > How do i achieve the same? I need to split the board based on
> > coordinates and  need to move the required images to specifies
> > coordinates. Is there any andorid api for image movements and
> > animation? I will greatly appreciate your replies.
>
> > Prakhy
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: attaching a slidingdrawer to my activity

2010-01-10 Thread schwiz
oh so you just put the sliding drawer along with the rest of your
normal layout then?  they are making it too easy.  Is that sample from
one of your books?  I have a subscription but I couldn't find anything
on drawers in them.

On Jan 10, 2:27 pm, Mark Murphy  wrote:
> schwiz wrote:
> > Can anyone explain how to attach a sliding drawer to an activity.  I
> > get the xml creation part but what do you need to call to actually
> > attach your xml creation to the activity, or even better to a layout
> > within the activity.
>
> Well, here's a small sample:
>
> http://github.com/commonsguy/cw-android/tree/master/Fancy/DrawerDemo/
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, $35/Year
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] attaching a slidingdrawer to my activity

2010-01-10 Thread schwiz
Can anyone explain how to attach a sliding drawer to an activity.  I
get the xml creation part but what do you need to call to actually
attach your xml creation to the activity, or even better to a layout
within the activity.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: any nexus discount for developers?

2010-01-09 Thread schwiz
they never sold the actual developer phones to developers cheaper, I
doubt they will discount the nexus one for us.

On Jan 9, 11:22 pm, ian  wrote:
> Does anybody know if developers will be able to buy a Nexus for less
> than $529?
>
>  I need a phone for testing my apps soon but the price seems steep.
>
> Also I'm worried 2,1 may break my apps, which are designed for 1.5.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: "Something wrong here" error message

2010-01-09 Thread schwiz
it is an issue for me because for some reason when this happens it
calls my oncreatdialog

On Nov 27 2009, 12:55 pm, Dianne Hackborn  wrote:
> Don't worry about it, it's not an issue.
>
> 2009/11/27 Per Sandström 
>
>
>
>
>
> > I have had a few reports coming in from Droid-users using my apps and
> > getting this error message:
>
> > 11-25 16:17:44.589 W/UsageStats( 1015): Something wrong here, didn't
> > expect (package name) to be resumed
>
> > Everytime I have got an error description for this, I have never been
> > able to reproduce the error on the emulators. Are there any good
> > information on what exactly this error is? I have a hard time
> > imagining what such an error message can really mean.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: upgrade my G1 to android 2.0

2010-01-08 Thread schwiz
if you root your phone and head over to xda there are a few 2.0 builds
for G1 but last time I checked the camera wasnt working yet.

On Jan 8, 11:05 am, Mark Murphy  wrote:
> DAVIDT wrote:
> > I want to upgrade my G1, which is currently running on andriod 1.6, to
> > andriod 2.0 or 2.1. Is it possible?
>
> Not presently, no.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Consulting/App Development:http://commonsware.com/consulting
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android Books?...

2010-01-05 Thread schwiz
Hello Android has a decent couple chapters on graphics and shows how
to make a basic sudoku game.  There is a link to it in the page Mark
shared.  If you find anything really good let me know :D
Also, here is an open source game engine for android that may help you
http://code.google.com/p/rokon/

On Jan 5, 8:09 pm, "Mark Murphy"  wrote:
> > Can anyone recommend any good Android books for a beginner?  I'm
> > mostly interested in games...
>
> Game development does not get a lot of coverage in the current crop of
> Android books. Here's a list of all those I know of in print:
>
> http://wiki.andmob.org/books
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Books:http://commonsware.com/books.html
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: UI design for Board Game

2010-01-05 Thread schwiz
yeah should be fairly easy just look into the 2d graphics api, you
might check out a book called 'hello android' it has a pretty good
chapter on the 2d api.

On Jan 5, 12:17 am, prakhy  wrote:
> Hi,
>
> I need to design a board UI using android platform. i was planning to
> take one image as board and moving the required images over the board.
> How do i achieve the same? I need to find the coordinates for image
> and need to move the required images to specifies coordinates. Is
> there any andorid api for this?
>
> Prakhy
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Possible to awake the phone by touching the screen?

2010-01-05 Thread schwiz
I don't think its possible, plus its a horrible idea cause it would
unlock the phone everytime you put it in your pocket.

On Jan 4, 8:25 pm, Nazgulled  wrote:
> Hi,
>
> As an heads-up, I'm an amateur developer and a university student in
> the area but I have not knowledge at all about Android development. I
> haven't yet had the time to start looking at the SDK and
> documentation. However, I have an idea for an app that I would like to
> try and develop for Android phones but I need to do something that I
> don't think it's quite possible.
>
> I own an HTC Hero and the phone can only be awaken by pressing the
> menu button or the power off button. Dunno if it's like this for every
> Android phone. I'm looking for a way to awake the phone by touching
> the screen.
>
> My idea is to replace the KeyGuard with something else but instead of
> awaking the phone by pressing one of those buttons, I would like to do
> it by touching the screen.
>
> Is this even possible or the Androd framework doesn't provide this
> functionality at all?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android Dev Phone with Verizon?

2010-01-04 Thread schwiz
I remember reading a hack somewhere a long time ago to enable the
phones on verizon, but honestly if you are going to spend that much
money on buying a dev phone, might as well save up an extra 100 bucks
and buy yourself a droid if you are going with verizon.

On Jan 4, 1:07 pm, "to...@webpro.com"  wrote:
> I know the dev phones are sim unlocked will they also work with non
> sim carriers like verizon?

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


[android-developers] Re: Conventions about using SD card

2010-01-03 Thread schwiz
Well as you have seen from your own experience there doesn't seem to
be any real convention.  I would do whatever you find the most
convenient as a user. I personally like it when they make a folder
with the app name not the package name.

On Jan 3, 10:18 am, Andriy Zakharchuk 
wrote:
> Hello all,
>
> I have a question about SD card usage in Android applications. I need
> my application to store some files on the SD card. Is there any
> document (conventions) about how the application should use the SD
> card?
>
> I saw applications create a directory named as the application itself
> and store their files in this directory. I saw a number of
> applications that create a directory named as the application's
> package. I saw some applications that write files directly to the SD
> card root. And, finally, built-in camera application uses standard
> DCIM/100 scheme.
>
> So the question is: is there any recommendation about where to store
> files (to make them visible for users and avoid conflicts with other
> applications) or I can decide it on my own.
>
> Thank you 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] when is onDraw called, how to force it?

2010-01-02 Thread schwiz
I am working on a custom view which has text in it.  I have a touch
even that opens a dialog to change the text but after the text is
updated in memory it still doesn't update in my view until I touch the
screen again.  I am calling invalidate() in my function to update the
value of the text.  To try to help clarify what is going on a little
better I put a log entry in the onDraw override saying that it has
been drawn and it seems completely random, I have 4 views in my
activity and when I touch one on the screen some of them are redrawn
and others are not.  Can anyone offer any insight as to what is
happening?

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


[android-developers] Re: Any Tips for implementing free versions of applications?

2010-01-02 Thread schwiz
yep its just a simple startActivity with a action_view intent and pass
it this market://search?q=pname:

On Jan 2, 3:05 am, moneytoo  wrote:
> Here's the Market 
> stuff...http://developer.android.com/intl/zh-TW/guide/publishing/publishing.h...
>
> On Jan 2, 8:34 am, "dan.x.sheph...@googlemail.com"
>
>
>
>  wrote:
> > Thanks, I've just uploaded a trail version.  Because it was a puzzle
> > game that takes a certain length of time to do I just made it time out
> > after 2 minutes.  They can still keep using it, but only for 2 minutes
> > at a time, which is enough to do puzzle in easy level, but not in
> > medium or hard unless you are some kind of genius with very fast
> > fingers.  This way I also don't have to check if they are reinstalling
> > where one would have to leave some kind of data on the phone or keep a
> > record of owners in a remote database or something like that.  I think
> > the idea of tracking usage and a link direct to the market is a good
> > one.  But I don't know how you tell what the exact direct android
> > market URL to an application is on the phone.  Anyway, thank you for
> > your advice.  I think when I make something a bit larger/better I
> > might go about spend more time on such things.  I did put a hit
> > counter on the associated web site at least just to see if anyone
> > visits the site.  If it gets busy, then maybe I could put pay per
> > click adverts on it or something, but I doubt it will get that busy.
>
> > On Jan 2, 5:06 am, schwiz  wrote:
>
> > > upload a paid version too, and in the free version keep track of how
> > > many times they play or how long they play with preferences and then
> > > don't allow them to start a new game and also give them a button to
> > > take them directly to the market with your paid version.
>
> > > On Dec 31 2009, 10:49 am, "dan.x.sheph...@googlemail.com"
>
> > >  wrote:
> > > > Hi, I already mentioned this briefly in another post as part of
> > > > another publishing topic.
>
> > > > But I think it is pretty important for a lot of us to know good ways
> > > > to make free versions that can't be cracked too easily etc.  After all
> > > > most people just download the free stuff, I know I do, so its
> > > > important for numbers.
>
> > > > I just made a game called ScrollSlider and I want to make a free
> > > > version with limited evaluation period perhaps, but I could use some
> > > > advice on how to do it.  I'm also having problems with data
> > > > persistence as views appear and disappear and managing game loop view
> > > > thread accordingly.
>
> > > > Cheers in advance for any tips,
>
> > > > Dan
>
> > > >www.cuffedtothekeyboard.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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Any Tips for implementing free versions of applications?

2010-01-01 Thread schwiz
upload a paid version too, and in the free version keep track of how
many times they play or how long they play with preferences and then
don't allow them to start a new game and also give them a button to
take them directly to the market with your paid version.

On Dec 31 2009, 10:49 am, "dan.x.sheph...@googlemail.com"
 wrote:
> Hi, I already mentioned this briefly in another post as part of
> another publishing topic.
>
> But I think it is pretty important for a lot of us to know good ways
> to make free versions that can't be cracked too easily etc.  After all
> most people just download the free stuff, I know I do, so its
> important for numbers.
>
> I just made a game called ScrollSlider and I want to make a free
> version with limited evaluation period perhaps, but I could use some
> advice on how to do it.  I'm also having problems with data
> persistence as views appear and disappear and managing game loop view
> thread accordingly.
>
> Cheers in advance for any tips,
>
> Dan
>
> www.cuffedtothekeyboard.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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how do you draw a new line?!

2010-01-01 Thread schwiz
This is really frustrating, I am trying to get a carriage return drawn
in my custom view and nothing is working.  I have tried
'System.getProperty("line.separator")' but that makes it say null and
I have tried '\r' and '\n' and those just both draw a little square.
I am using the canvas.drawText meathod.  Thanks for your reply!

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


[android-developers] Re: custom keyboard

2009-12-31 Thread schwiz
I thought about that, but the problem is that my app needs additional
math symbols but it still needs the regular android keyboard as well.
Is there a way to allow my users to toggle from my custom keyboard to
the built-in android keyboard without registering my keyboard as an
input method?  How do I even get to use my keyboard in my app without
registering it as an input method?

On Dec 31 2009, 9:50 pm, Dianne Hackborn  wrote:
> This is really not how the input method framework is supposed to work.  An
> IME should be a generic input facility, not for a particular application.
>  If you need some app-specific input, you should build it into your UI
> rather than pushing it out to a generic IME.
>
>
>
>
>
> On Thu, Dec 31, 2009 at 4:46 PM, schwiz  wrote:
> > what a bummer, wish I had more room in the app description to explain
> > to my users how to enable and use the keyboard that goes with my app.
> > One other question, does anyone know how to move the cursor in an edit
> > text box.  I want one of my buttons to make a square root symbol with
> > two parentheses, and have the cursor be in the middle of them.
> > thanks!
> > Nathan
>
> > On Dec 29, 10:32 pm, Dai Hiro  wrote:
> > > This class manages input method settings :
> >http://developer.android.com/reference/android/provider/Settings.Secu...
>
> > > Unfortunately you can only read those settings and not modify them.
> > > I think you should find an other way to do what you want to do.
>
> > > Kwaku
>
> > > On Mon, Dec 28, 2009 at 5:38 PM, schwiz  wrote:
> > > > Ok that was the problem thanks.  This leaves me with two questions,
> > > > how do I enable the keyboard without making the user do it, and how do
> > > > I make it the default keyboard for my app.  Thanks for the reply!
>
> > > > On Dec 28, 10:06 am, Dai Hiro  wrote:
> > > >> Hi,
>
> > > >> Did you activate it in Locale & Text Settings ?
>
> > > >> Kwaku
>
> > > >> On Sun, Dec 27, 2009 at 11:53 PM, schwiz  wrote:
> > > >> > I am wanting to add a custom keyboard for my app, I was taking a
> > look
> > > >> > at the softkeyboard example on the included sample code in the SDK.
> > > >> > When I install it in the emulator it isn't showing up though.  I try
> > > >> > to access it by longpressing an input box and then clicking select
> > > >> > input when the context menu pops up.  However, the latin keyboard
> > made
> > > >> > in the example doesn't show up as one of the options.  Am I missing
> > > >> > something?  Anyone have advice or know of another example I can look
> > > >> > at?
>
> > > >> > --
> > > >> > You received this message because you are subscribed to the Google
> > > >> > Groups "Android Developers" group.
> > > >> > To post to this group, send email to
> > android-developers@googlegroups.com
> > > >> > To unsubscribe from this group, send email to
> > > >> > android-developers+unsubscr...@googlegroups.com > > >> >  cr...@googlegroups.com>
> > > >> > For more options, visit this group at
> > > >> >http://groups.google.com/group/android-developers?hl=en
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


  1   2   >