[android-developers] Re: certification for android developers

2010-11-02 Thread pramod.deore
> is there any certification for android developers provided by Google?
No.

On Nov 3, 11:42 am, Shalini  wrote:
> is there any certification for android developers provided by Google?
> please let me know this . I want to do that certification.

-- 
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] smack+android+openfire problem

2010-11-02 Thread hello hello
hi android developers

I have some doubts in using the resource of smack api from android
 I implemented the xmpp client send and receive messages from android
then how to add groups and delete groups from openfire ?
I configured openfire code in local system and how to utilise from android


please help me

its very necessary to me

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: How to unsign the signed apk file?

2010-11-02 Thread Sarwar Erfan


On Nov 3, 12:29 pm, Nency Robert  wrote:
> HI Chris,
>
> Also want to know how to know the signature of any apk file?
> please share commands/procedure/tools for it.
>
> Thanks.


You will need Jarsigner.

Get all information here:
http://developer.android.com/guide/publishing/app-signing.html


Regards
Sarwar Erfan

-- 
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] certification for android developers

2010-11-02 Thread Shalini
is there any certification for android developers provided by Google?
please let me know this . I want to do that certification.

-- 
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


Re: [android-developers] Re: How to unsign the signed apk file?

2010-11-02 Thread Nency Robert
HI Chris,

Also want to know how to know the signature of any apk file?
please share commands/procedure/tools for it.

Thanks.



On Tue, Nov 2, 2010 at 7:20 PM, Chris Stratton  wrote:
> Open the apk as a zip file and remove the META-INF directory
>
> On Nov 2, 4:26 am, Nency Robert  wrote:
>> HI All,
>> I want to know How to unsign the signed apk file?
>> Please help.
>> Thnkx
>
> --
> 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

-- 
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] What are some good Automated Unit And System Test Tools for Android?

2010-11-02 Thread Greg Giacovelli
So I give in. I approached this problem as an oh hey that's not too
bad, I can write a bunch of unit tests, and I have been keeping my
suite green. However as things get more involved continuous
integration and testing is a great great thing to have. And then I saw
oh Android has emma integration as well awesome ... and then that's
where it get's iffy.

So I setup Hudson and have it call the coverage target of the ant
build.xml that the android executable in the sdk can generate. And
then it hits me.

adb -s  shell am instrument -w ...

will never return a result code that is not 0 ... because adb
technically exited cleanly and usually will regardless of how the
shell command that executed did.

So again I say, Oh that's not too bad, I can just wrap adb with a
parser that parses output for errors and return a non 0 resultcode to
fail my build if a test fails. Problem is then I also want to see what
tests fail. I know eclipse is doing something smarter so I dig deeper
and find the extra switches you can pass am instrument including the -
r flag.

adb -s  shell am instrument -r -w ...

Now this is starting to get complicated as the output gets more
complex and this originally thought simple task is getting more
intense. As this SDK is maturing more I have to think, someone has
endured this pain and made a kickass way to automate and report on
these sdk tools and output. Like something complete with performance
test tracking, code coverage reporting etc. These outputs all exit in
the SDK but they just have to be adapted to the tools used outside. I
have to think after a year or two this adapter(s) has to have been
written. However I have only been able to find blackbox testing
frameworks and not anything along the lines of regression test suite
automation of the whitebox sort.

Any suggestions welcome.

-- 
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: Overriding Back Button Action in Activity

2010-11-02 Thread tanmay....@gmail.com

Yes.
I thought that as I am overriding the the back button it would not
effect on my keyboard .
but when the keyboard is open and I press back button it is closing
application but it is not closing the open keyboard as expected..
What I need to do so that I can know that the keyboard is open close
it and not close the application

Thanks,
Tanmay

-- 
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


Re: [android-developers] Overriding Back Button Action in Activity

2010-11-02 Thread Frank Weiss
Are you sure you need to handle the back key in order to close the soft
keyboard? I've always seen that the back button is wired up by the OS to do
that when the soft keyboard has been opened by tapping an edit text.

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

Re: [android-developers] Creating Sliding Drawer in new look

2010-11-02 Thread Rocky
Hey TreKing,

I tried, but i'm not getting exactly what i want,

Can any one help to solve this problem..

On Tue, Nov 2, 2010 at 10:14 PM, TreKing  wrote:

> On Tue, Nov 2, 2010 at 4:15 AM, RKJ (Android developer) <
> rkjhaw1...@gmail.com> wrote:
>
>> Is it possible.
>
>
> Probably. Why don't you just try it?
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> 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
>



-- 
Thanks & Regards

Rakesh Kumar Jha
Software Developer
Symphony Services Corp (India) Pvt Ltd
Bangalore
(O) +918030274295
(R) +919886336619

-- 
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

Re: [android-developers] Re: error to include slider in layout (how to include slider)

2010-11-02 Thread Rocky
solved
any one can use
Thax for reply,

I solved, I was missing two thing,
1. handle="@+id/slideHandleButton"
2. slider content should be same as layoutout id.



On Tue, Nov 2, 2010 at 5:06 PM, Sunil  wrote:

> Hi, you missed to add the handle attribute in the SlidingDrawer xml
> node,
>
> here is the modified declaration for your reference
>   android:layout_width="wrap_content"
> android:id="@+id/SlidingDrawer"
> android:content="@+id/contentLayout"
> android:padding="10dip"
> android:scrollX="10sp"
> android:scrollY="100sp"
> android:layout_height="250dip"
>  handle="@+id/slideHandleButton"
> >
>
> Thanks,
> Sunil
>
> On Nov 2, 3:29 pm, Rocky  wrote:
> > Hi,
> >
> > I created a slider  view -
> >
> > slider_button.xml
> > 
> >
> >  >  android:layout_width="fill_parent" android:layout_height="wrap_content"
> >  xmlns:android="http://schemas.android.com/apk/res/android";
> >  android:orientation="horizontal" android:gravity="bottom"
> > android:background="#FF">
> >   >  android:layout_width="wrap_content"
> >  android:id="@+id/SlidingDrawer"
> >  android:content="@+id/contentLayout"
> >  android:padding="10dip"
> >  android:scrollX="10sp"
> >  android:scrollY="100sp"
> >  android:layout_height="250dip">
> >
> >   >  android:layout_height="wrap_content"
> >  android:id="@+id/slideHandleButton"
> >  android:background="@drawable/leftarrow">
> >  
> >   >  android:layout_width="wrap_content"
> >  android:id="@+id/button_content"
> >  android:orientation="horizontal"
> >  android:gravity="center|top"
> >  android:padding="10dip"
> >  android:background="#C0C0C0"
> >  android:layout_height="wrap_content">
> >
> >   >  android:layout_width="wrap_content"
> >  android:layout_height="wrap_content"
> >  android:text="Replay">
> > 
> >   >  android:layout_width="wrap_content"
> >  android:layout_height="wrap_content"
> >  android:text="Replay All">
> > 
> >   >  android:layout_width="wrap_content"
> >  android:layout_height="wrap_content"
> >  android:text="Forward">
> > 
> >
> > 
> >   >  android:layout_height="wrap_content"
> >  android:id="@+id/slideHandleButton"
> >  android:background="@drawable/rightarrow">
> > 
> > 
> > 
> >
> > I want to include this slider in another layout  -
> >
> > main.xml -
> > 
> >  > xmlns:android="http://schemas.android.com/apk/res/android";
> > android:orientation="vertical"
> > android:layout_width="fill_parent"
> > android:layout_height="fill_parent"
> > android:background="@drawable/background_color"
> >
> > >
> >  android:layout_height="fill_parent"
> > />
> > 
> >
> >  > android:layout_width="fill_parent"
> > android:background="#00"
> > android:layout_height="1dip" />
> >   > android:id="@+id/message_view_from"
> > android:editable="false"
> > android:layout_width="fill_parent"
> > android:layout_height="wrap_content"
> > android:layout_marginLeft="1dip"
> > android:gravity="left"
> > android:hint="To :"
> > android:textColor="?android:attr/textColorSecondary"
> >
> > android:textAppearance="?android:attr/textAppearanceSmall" />
> >> android:layout_width="fill_parent"
> > android:background="#00"
> > android:layout_height="1dip" />
> >  android:layout_height="fill_parent"
> > />
> > 
> >
> > ---
> > Then i'm calling this main.xml from activity class, I'm getting error
> >
> > 11-02 12:46:00.971: ERROR/AndroidRuntime(710):
> java.lang.RuntimeException:
> > Unable to start activity ComponentInfo{com.android.slider/main}:
> >
> > android.view.InflateException: Binary XML file line #6: Error inflating
> > class android.widget.SlidingDrawer
> > 11-02 12:46:00.971: ERROR/AndroidRuntime(710): at
> >
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
> > 11-02 12:46:00.971: ERROR/AndroidRuntime(710): at
> > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
> > 11-02 12:46:00.971: ERROR/AndroidRuntime(710): at
> > android.app.ActivityThread.access$2300(ActivityThread.java:125)
> > 11-02 12:46:00.971: ERROR/AndroidRuntime(710): at
> > android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
> > 11-02 12:46:00.971: ERROR/AndroidRuntime(710): at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > 11-02 12:46:00.971: ERROR/A

[android-developers] Re: Failed to find provider info for android.server.checkin

2010-11-02 Thread pramod.deore
After getting full access from network administrator issue has been
resolved. Thanks

On Nov 3, 9:15 am, "pramod.deore"  wrote:
> Hi, I have getting this error. because of this I can't access internet
> on my emulator. How to resolve this issue?
> 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] Overriding Back Button Action in Activity

2010-11-02 Thread tanmay....@gmail.com
I have just overide my back button in my code like this

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {

return true;
}
return super.onKeyDown(keyCode, event);
}

  @Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
startActivity(new  Intent(context, MainDialog.class));
finish();
return true;
}
return super.onKeyUp(keyCode, event);
}


Now I am facing a weird problem, I have a edit text on the current
Activity. At the time of editing when I am trying to close the virtual
keyboard by pressing the back button . My Application finishes... But
I just want to close the keyboard not the Avtivity.. Any suggestion to
solve my issue..?

Thanks in advance, Tanmay

-- 
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] Sound in android web view

2010-11-02 Thread nena joy
*My java code is here*

package com.customlistview1;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.webkit.WebChromeClient;
public class Image extends Activity
 {
   private WebView webview;
   @Override
public void onCreate(Bundle icicle)
 {
   super.onCreate(icicle);
   setContentView(R.layout.web);
   setupwebwiew();
}
   private void setupwebwiew()
{
webview=(WebView)findViewById(R.id.webkit);
webview.setWebViewClient(new WebViewClient());
webview.setWebChromeClient(new WebChromeClient());
webview.getSettings().setJavaScriptEnabled(true);

webview.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
webview.loadUrl("file:///android_asset/buttonsound2.html");
    webview.loadUrl("file:///android_asset/we.mp3");
   }
 }


I enabled the javascript.
But not play the sound.

-- 
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] Failed to find provider info for android.server.checkin

2010-11-02 Thread pramod.deore
Hi, I have getting this error. because of this I can't access internet
on my emulator. How to resolve this issue?
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


Re: [android-developers] Re: SharedIDs

2010-11-02 Thread Dianne Hackborn
On Tue, Nov 2, 2010 at 8:28 PM, kypriakos  wrote:

> I agree with you Dianne, such a method would certainly cause more
> trouble
> if not handled properly but I tried and I cannot avoid it. I do need
> separate
> imported code to share the same space. I will exercise extreme caution
> and if I see that this is causing more harm than good I will bail out
> and seek
> alternative solutions - would having the processes from each apk write/
> read from
> the public SDcard space may be a better option? Not sure but at least
> for
> testing purposes I will try it.
>

If you just need to share data, a content provider can work very well.  You
can set permissions on the content provider to a signature-only permission
you define so other apps can't access the data.

I can't help much more without actually knowing what you are trying to do.


> The requirement also specifies that the two apks should be signed with
> the
> same key. But unless these are apks to be released I don't think this
> is necessary
> right - particularly if they are ran on emulators.
>

To use sharedUserId the two apps *must* be signed with the same cert, and if
they aren't you will break.  You are right, you generally rely on using
release signed .apks to ensure they are signed with the same cert...  you
could play some games to ensure that development builds are signed with the
same dev cert (by having all developers use it), but can't mix release and
dev builds.

-- 
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: SharedIDs

2010-11-02 Thread kypriakos

Yes I meant SharedUserId - I typed in a hurry ;)

And yes of course - android:sharedUserId="string" it is string but I
guess I
glanced at the  spec.a bit too much.

I agree with you Dianne, such a method would certainly cause more
trouble
if not handled properly but I tried and I cannot avoid it. I do need
separate
imported code to share the same space. I will exercise extreme caution
and if I see that this is causing more harm than good I will bail out
and seek
alternative solutions - would having the processes from each apk write/
read from
the public SDcard space may be a better option? Not sure but at least
for
testing purposes I will try it.

The requirement also specifies that the two apks should be signed with
the
same key. But unless these are apks to be released I don't think this
is necessary
right - particularly if they are ran on emulators.

On Nov 2, 12:57 pm, Dianne Hackborn  wrote:
> You mean sharedUserId?  There isn't a range, it is a string.  And you must
> pick a unique string that nobody else will use (if your name conflicts with
> another app, your app can't be installed).
>
> Also I would pretty strongly recommend against using this.  It is mainly
> there to be able to run multiple .apks in the same process.  If you don't
> need to do that, this is probably going to cause you more trouble than it
> helps.
>
> On Tue, Nov 2, 2010 at 9:29 AM, kypriakos  wrote:
>
> > Hi - regarding using SharedIDs between two separate apps (that I want
> > to share each
> > other's space) is there a particular range where these values can be
> > in?
>
> > --
> > 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
>
> --
> 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


Re: [android-developers] Re: Can anyone recommend a good OpenGL ES book?

2010-11-02 Thread Leigh McRae
The Red Book is pretty good for OpenGL but it's not ES.  Here is a free 
link.


http://fly.cc.fer.hr/~unreal/theredbook/

Other than that you're likely best off with getting an iphone book about 
3d game dev.




On 11/2/2010 10:47 PM, Matt Quigley wrote:

A little.  I took a 3D graphics class in college.  I've actually been
drawing lines, squares, and textures on Android already.  The thing
is, I'd like to know how to start from scratch, instead of starting
from a tutorial.  Basically, I'd like to KNOW why I'm writing the code
I write.  It's just a yucky feeling (to me, at least) to not know why
a line of code is there.

On Nov 2, 7:53 pm, Leigh McRae  wrote:

Do you have any 3d experience?

On 11/2/2010 7:28 PM, Matt Quigley wrote:


I'm looking for a good book to buy to help me with OpenGL ES.  This is
obviously going to be for Android, but I suppose the benefits will
spill over to iPhone development too.  Although I'm not specifically
opposed to a general OpenGL book, I'm not going to be using it on my
desktop (at least not professionally).
Wouldn't hurt to throw a few good online references too, although what
I've found with online tutorials is that they teach a code snippet but
not the whole picture.  Or, they don't target ES (embedded systems,
like Android).
Thanks,
-Matt

--
Leigh McRaewww.lonedwarfgames.com


--
Leigh McRae
www.lonedwarfgames.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: Only 64-bit build environments are supported beyond froyo/2.2.

2010-11-02 Thread Yaseen Lanka
This is being discussed here :
http://groups.google.com/group/android-platform/browse_thread/thread/b0bb991131589363

Thanks

On Sep 28, 9:39 pm, alexc  wrote:
> Dear Android Developers,
>
> Is it true that "Only 64-bit build environments are supported beyond
> froyo/2.2."?
> When I try to build it, it gives me this message.
> I try to search everywhere in the Internet and can not find any
> information about this rule.
>
> Any help is greatly appreciated.
>
> Alex

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


[android-developers] Re: Can anyone recommend a good OpenGL ES book?

2010-11-02 Thread Matt Quigley
A little.  I took a 3D graphics class in college.  I've actually been
drawing lines, squares, and textures on Android already.  The thing
is, I'd like to know how to start from scratch, instead of starting
from a tutorial.  Basically, I'd like to KNOW why I'm writing the code
I write.  It's just a yucky feeling (to me, at least) to not know why
a line of code is there.

On Nov 2, 7:53 pm, Leigh McRae  wrote:
> Do you have any 3d experience?
>
> On 11/2/2010 7:28 PM, Matt Quigley wrote:
>
> > I'm looking for a good book to buy to help me with OpenGL ES.  This is
> > obviously going to be for Android, but I suppose the benefits will
> > spill over to iPhone development too.  Although I'm not specifically
> > opposed to a general OpenGL book, I'm not going to be using it on my
> > desktop (at least not professionally).
>
> > Wouldn't hurt to throw a few good online references too, although what
> > I've found with online tutorials is that they teach a code snippet but
> > not the whole picture.  Or, they don't target ES (embedded systems,
> > like Android).
>
> > Thanks,
> > -Matt
>
> --
> Leigh McRaewww.lonedwarfgames.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


Re: [android-developers] Can anyone recommend a good OpenGL ES book? Options

2010-11-02 Thread TreKing
On Tue, Nov 2, 2010 at 9:20 PM, metal mikey  wrote:

> @Emre: do not hijack threads! Have a question? Then make your own thread!
>

I don't think he did - in Gmail it's a separate thread (and so is your
post). If you're using the Web interface to Google Groups ... uh, don't.
It's terrible and does this "hijacking" all the time.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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] Temporary files

2010-11-02 Thread Peter Eastman
As discussed in another thread (http://groups.google.com/group/android-
developers/browse_thread/thread/d79bfa05528cbbee/2b08822eeb767b7b), my
program allows users to export data by email.  I do this by writing
the data to a temporary file, then attaching it to an Intent:

startActivity(new Intent(Intent.ACTION_SEND).setType("application/
vnd.mytype").putExtra(Intent.EXTRA_STREAM,
android.net.Uri.fromFile(tempFile)));

I've run into a difficulty with this approach, though: making sure the
temporary file gets deleted when it isn't needed anymore.

On most platforms, File.createTempFile() creates the file in a special
location such as /tmp which ensures it will get deleted the next time
the computer boots.  Not so on Android: it just creates the file at
the root level of the SD card, causing "temp" files to just build up
and never get deleted.  I tried to force it to get deleted by calling
deleteOnExit().  No good: it still doesn't get deleted, presumably
because Android apps never really "exit", they just get suspended and
then killed.

So it looks like I need to manually delete the file when it's no
longer needed.  The question is, how can I tell when it's no longer
needed?  In this case, it's not a matter of when *my* program is done
with it, but rather when the email client is done with it.  Does
anyone have suggestions for how to deal with this?

Peter

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


[android-developers] Can anyone recommend a good OpenGL ES book? Options

2010-11-02 Thread metal mikey
@Emre: do not hijack threads! Have a question? Then make your own
thread!

On Nov 3, 12:58 pm, TreKing  wrote:
> On Tue, Nov 2, 2010 at 7:06 PM, Emre A. Yavuz  wrote:
>
> > Let's assume I'd like to pass a Context variable in my MainActivity to
> > either Activity "A" or "B.
>
> Why would you want to pass a Context variable to either of two instances of
> objects that themselves derive from Context?
>
> > How should I do it, what is the most efficient approach ? Any suggestions ?
>
> Uh ... don't. Just use the Activity itself as the Context.
>
> Why do you think you need to pass a Context instance around?
>
> ---­--
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
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


Re: [android-developers] How to pass a Context variable from one Activity to another ?

2010-11-02 Thread TreKing
On Tue, Nov 2, 2010 at 7:06 PM, Emre A. Yavuz  wrote:

> Let's assume I'd like to pass a Context variable in my MainActivity to
> either Activity "A" or "B.


Why would you want to pass a Context variable to either of two instances of
objects that themselves derive from Context?


> How should I do it, what is the most efficient approach ? Any suggestions ?


Uh ... don't. Just use the Activity itself as the Context.

Why do you think you need to pass a Context instance around?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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 use Webview.loadUrl(String url) when my html file is local

2010-11-02 Thread Doug
You might want to look at the documentation:

http://developer.android.com/resources/articles/using-webviews.html

And look at the WebViewDemo app it references.

On Nov 2, 7:55 am, Amit Mangal  wrote:
> Hi Everyone,
>
> how do I open a a local html-page (named, for instance "test.html") in a
> WebView?
>
> where should i keep this keep html page with images in project and how to
> use
> Webview.loadUrl(String url) ?
>
> 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] How to pass a Context variable from one Activity to another ?

2010-11-02 Thread Emre A. Yavuz

Hi,

I have a Tab Layout which has two tabs that correspond to one Activity each 
("A" and "B") . When I run my application, let's say by running MainActivity(), 
I expect it to display the first Tab and thus run Activity "A" by default and 
switch to Activity "B" when the second Tab is selected. Let's assume I'd like 
to pass a Context variable in my MainActivity to either Activity "A" or "B. How 
should I do it, what is the most efficient approach ? Any suggestions ? 

Cheers,

Emre


  

-- 
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 onCreate is asynchronous

2010-11-02 Thread jotobjects


On Nov 2, 2:43 pm, Kostya Vasilyev  wrote:
> Services are a mechanism for doing tasks that take a long time (among
> another things). Based on this, the result of a service doing something
> is typically available after a delay, so services are asynchronous by
> their nature.

Right.  Long running tasks have asynchronous results.  That's why you
put them in a Service (and run the actual tasks in a thread).

>
> If you have a piece of code that you wish to run synchronously, just
> call that code directly (remembering to avoid code that can lead to ANRs).
>
> The only time I can see synchronous start / bind could be useful is
> updating an Activity with the current state of some process managed by a
> service.

Right, that's 101 as Frank said. I'm not trying to do anything
synchronously.  But what tripped me up was that I have new work for
the Service to do from time to time based on other things going on in
the application.  There is no way to actually know when the Service
exists.  So you can't reliably communicate with the Service EXCEPT via
Intents with startService (as Mark pointed out) or somehow with the
ServiceConnection by deferring communication with the servie until
after onServiceConnected(0 is called.

Some of the Local Service examples out there can lead one to believe
that the service can be used directly and that's not true.

>
> But even this case should work pretty well, because at the time onCreate
> is called (and presumable, that's where service start / bind is called),
> the activity is not fully visible yet (since its content view is only
> specified inside onCreate).
>
> -- Kostya
>
> 03.11.2010 0:30, jotobjects пишет:
>
> > On Nov 2, 1:33 pm, Frank Weiss  wrote:
> >> GUI Programming 101
>
> >> All GUIs I've seen use an event queue. This is one of the biggest prardigm
> >> shifts to overcome for someone who is used to sequential, non-GUI
> >> applications.
> > The Service object by definition has nothing to with GUI programming,
> > but you sort of have the right idea.
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget 
> --http://kmansoft.wordpress.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: Android source code (complete)

2010-11-02 Thread Matt Quigley
There are many more project directories that make up the Android
source.  /platform/frameworks/base is just one of many on
http://android.git.kernel.org/.  I don't know off hand where
ServiceManager.java is, but it's there somewhere.

-Matt

On Nov 2, 1:25 am, adithya <24adit...@gmail.com> wrote:
> Hi all,
>
> I have downloaded some amount of android source code (for Bluetooth
> API's, wifi API's,etc)..I was just browsing through Bluetooth source
> code in eclipse and bumped on this ServiceManager class whose source
> code i couldn't read !! When i browsed through the android.jar i
> couldn't see the source code for few packages like java.nio ,etc..
>
> I have downloaded git for windows and whatever source code i have is
> through the following command :
>
> git clone git://source.android.com/platform/frameworks/base
>  and put all the java files into a 'sources' folder which worked..
>
> How can i get the source code for aforementioned classes ??
>
> Thanks,
> Adithya.

-- 
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


Re: [android-developers] Can anyone recommend a good OpenGL ES book?

2010-11-02 Thread Leigh McRae

Do you have any 3d experience?

On 11/2/2010 7:28 PM, Matt Quigley wrote:

I'm looking for a good book to buy to help me with OpenGL ES.  This is
obviously going to be for Android, but I suppose the benefits will
spill over to iPhone development too.  Although I'm not specifically
opposed to a general OpenGL book, I'm not going to be using it on my
desktop (at least not professionally).

Wouldn't hurt to throw a few good online references too, although what
I've found with online tutorials is that they teach a code snippet but
not the whole picture.  Or, they don't target ES (embedded systems,
like Android).

Thanks,
-Matt



--
Leigh McRae
www.lonedwarfgames.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] Can anyone recommend a good OpenGL ES book?

2010-11-02 Thread Matt Quigley
I'm looking for a good book to buy to help me with OpenGL ES.  This is
obviously going to be for Android, but I suppose the benefits will
spill over to iPhone development too.  Although I'm not specifically
opposed to a general OpenGL book, I'm not going to be using it on my
desktop (at least not professionally).

Wouldn't hurt to throw a few good online references too, although what
I've found with online tutorials is that they teach a code snippet but
not the whole picture.  Or, they don't target ES (embedded systems,
like Android).

Thanks,
-Matt

-- 
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 to use NDK on Windows

2010-11-02 Thread cindy
Hi All,

I have installed Cygwin 1.7.7 for Windows.During the installation, i
selected to install GNUMake 3.8.1. All those went through smoothly.

After installation, I check the version of make using following
command:

/bin/make

The version  is GNU make 3.81.

So I export the path using:
export GNUMAKE=/bin/make

However when I tried to run ndk-build, I still get following error:
You are using a non-Cygwin compatible Make program.

What am I wrong?

Thanks!

Cindy

-- 
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: SSLContext.getInstance("SSL") throws java.security.NosuchAlgorithmException: SSLContext SSL implementation not found

2010-11-02 Thread DanH
Was just wondering because you were doing a getInstance on "TSL", not
"TLS".

On Nov 1, 2:04 pm, gato chlr  wrote:
> DanH , thanks for the answer, i have read about TLS, and now i know it is a
> SSLv3.
>
> I have tried with TLS , and it works! but, then i get a
> javax.net.ssl.SSLException: Not Trusted server certificate. So it seems that
> my know my dummy trustManager is not working :S. the exception occurs in the
> instruction :
>
> HttpResponse response = httpclient.execute(targetHost, httpget,
> localcontext);
>
>  I have changed the value "SSL" to "TLS" in my desktop (not for android) and
> it work fine. But in my android application (this one) it throws that
> exception.
>
> Maybe my trustManager does not works in Android, if anybody has a code or
> solution to fix this problem i will really appreciate
>
> thank for the answers
>
> On 1 November 2010 14:37, DanH  wrote:
>
> > Have you tried "TLS"?
>
> > On Nov 1, 9:29 am, gato chlr  wrote:
> > > Hi list,
>
> > > i want to implement a client for https, all in my localhost (in my
> > apache,
> > > it is configured to ask authentication), with a resource "
> >https://localhost:443/resources/resource1.xml";
> > > the server works fine.
>
> > > I have a client for desktop, and it works fine, the resources are
> > consumed
> > > using httpcomponents-client-4.0.3), i have readed that Android uses that
> > > version.
>
> > > This is the code of my client in Android (practically is the same of
> > desktop
> > > mapped to android) ,
>
> > > in the line of   SSLContext sc = SSLContext.getInstance("TSL"); the next
> > > exception is thrown :
>
> > > java.security.NosuchAlgorithmException: SSLContext SSL implementation not
> > > found
>
> > > Please does anybody know how to solve this issue?
>
> > > i have tried with TSL and the exception continue.
>
> > > import java.io.IOException;
>
> > > import javax.net.ssl.HttpsURLConnection;
> > > import javax.net.ssl.SSLContext;
> > > import javax.net.ssl.TrustManager;
> > > import javax.net.ssl.X509TrustManager;
>
> > > import org.apache.http.HttpEntity;
> > > import org.apache.http.HttpException;
> > > import org.apache.http.HttpHost;
> > > import org.apache.http.HttpRequest;
> > > import org.apache.http.HttpRequestInterceptor;
> > > import org.apache.http.HttpResponse;
> > > import org.apache.http.auth.AuthScheme;
> > > import org.apache.http.auth.AuthScope;
> > > import org.apache.http.auth.AuthState;
> > > import org.apache.http.auth.Credentials;
> > > import org.apache.http.auth.UsernamePasswordCredentials;
> > > import org.apache.http.client.CredentialsProvider;
> > > import org.apache.http.client.methods.HttpGet;
> > > import org.apache.http.client.protocol.ClientContext;
> > > import org.apache.http.impl.auth.BasicScheme;
> > > import org.apache.http.impl.client.DefaultHttpClient;
> > > import org.apache.http.protocol.BasicHttpContext;
> > > import org.apache.http.protocol.ExecutionContext;
> > > import org.apache.http.protocol.HttpContext;
> > > import org.apache.http.util.EntityUtils;
>
> > > import android.app.Activity;
> > > import android.os.Bundle;
> > > import android.widget.TextView;
>
> > > public class androidNativeRest extends Activity {
>
> > >     /** Called when the activity is first created. */
> > >     public void onCreate(Bundle savedInstanceState) {
>
> > >         super.onCreate(savedInstanceState);
>
> > >         TextView tv = new TextView(this);
>
> > >         String res="nada";
>
> > >         DefaultHttpClient httpclient = new DefaultHttpClient();
>
> > >         httpclient.getCredentialsProvider().setCredentials(
> > >                 new AuthScope("10.0.2.2", 443),
> > >                 new UsernamePasswordCredentials("user", "pass"));
>
> > >         BasicHttpContext localcontext = new BasicHttpContext();
>
> > >         // Generate BASIC scheme object and stick it to the local
> > >         // execution context
> > >         BasicScheme basicAuth = new BasicScheme();
> > >         localcontext.setAttribute("preemptive-auth", basicAuth);
>
> > >         // Add as the first request interceptor
> > >         httpclient.addRequestInterceptor(new PreemptiveAuth(), 0);
>
> > >         HttpHost targetHost = new HttpHost("10.0.2.2", 443, "https");
>
> > >         HttpGet httpget = new HttpGet("/resources/resource1.xml");
>
> > >         res+="executing request: " + httpget.getRequestLine()+"/ln";
> > >         res+="to target: " + targetHost+"/ln";
> > >         //--TRUST MANAGER---
> > >         //Create a trust manager that does not validate certificate
> > chains
> > >         TrustManager[] trustAllCerts = new TrustManager[]{
> > >                 new X509TrustManager() {
> > >                     public java.security.cert.X509Certificate[]
> > > getAcceptedIssuers() {
> > >                         return null;
> > >                     }
> > >                     public void checkClientTrusted(
> > >                         java.security.cert

[android-developers] Re: SIGH ... Android & SOAP

2010-11-02 Thread joedeveloper
Yeah SOAP was all that about 5 - 7 years ago in the SOA world.
However, I don't think there were ever really any services that I
consumed via SOAP that really utilized SOAP so much that it had to be
done with SOAP.

The protocol itself is in depth so it makes sense for complex services
but not for simple services where REST is better.

My question. is that WSDL endpoint that you can access or is this just
straight up SOAP with no WSDL?
If there is a WSDL you should be able to do what Frank is saying and
create the stubs. Typically in java you can do by using the WSDL2Java
tool.

Another way is to write an interface where you consume the SOAP
service and provide an endpoint to your android client to make calls
to which could be as simple as an HTTP POST/GET api, which does all of
the heavy SOAP lifting.

Best of luck.
Joe

On Nov 2, 1:36 pm, Frank Weiss  wrote:
> If you have to use it because the legacy server uses it, I would recommend
> using a SOAP package to create the client stub source code and adapt that
> code to 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: Problem with turning off GPS updates when application goes into the background.

2010-11-02 Thread Streets Of Boston
Get the LocationManager in onCreate(). Store this in an instance-
variable.
Request location updates in onResume(), using the instance-variable.
Remove location updates in onPause(), using the instance-variable.



On Nov 2, 2:10 pm, Chirag Patel  wrote:
> Hi I'm having a problem when trying to stop location updates when the
> app goes into the background. In my onCreate() method I start request
> updates like this:
>
>                 LocationManager locationManager =
> (LocationManager)context.getSystemService(Context.LOCATION_SERVICE);
>
>                 
> locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
> LOCATION_UPDATE_INTERVAL, LOCATION_UPDATE_DISTANCE, this);
>
> locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
> LOCATION_UPDATE_INTERVAL, LOCATION_UPDATE_DISTANCE, this);
>
> Then in my onPause() and onDestroy() methods I request to stop the
> updates like this:
>
>                 LocationManager locationManager =
> (LocationManager)context.getSystemService(Context.LOCATION_SERVICE);
>                 locationManager.removeUpdates(this);
>
> However the GPS icon remains in the status bar and the only way to get
> rid of it is to manually kill the application. Am I doing anything
> wrong?
>
> Cheers

-- 
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: SIGH ... Android & SOAP

2010-11-02 Thread Streets Of Boston
My advise is the same as the previous two posters; try to avoid SOAP
if you can.
If you can't avoid it, ksoap2 is a soap library for Android. I haven't
used it personally, so your mileage may vary :-).


On Nov 1, 7:30 pm, Darkside Android  wrote:
> This post is directed to those of you who may have been, are or will be
> FORCED to deal with stone-age SOAP w/s and Android.
>
> What has been the best way to consume these 7-layered nightmares?
> Is there any native (non 3rd-party) support in Android?
> Library recommendations (which to embrace, which to drop-it-like-its-hot,
> etc)
>
> Thx,
> D.A.

-- 
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 to use NDK to do AMR encoding

2010-11-02 Thread cindy
Hi All,

Has anyone used NDK to convert PCM to AMR in streaming mode?

Thanks!

April

-- 
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


Re: [android-developers] Dynamic class loading - how?

2010-11-02 Thread Mark Murphy
1. They would have to be Dalvik bytecode (e.g., dex files), not JAR files.

2. Running dex files downloaded dynamically from hither or yon, such
as the SD card, is just *begging* for somebody to hack your app by
replacing your dex file with theirs.

So, I believe it is technically possible, but I would not recommend it
unless you're willing to do a lot to ensure you're running the
downloaded code that you think you're running. There may be a better
solution to whatever problem you think you are solving this way.

On Tue, Nov 2, 2010 at 5:41 PM, moa  wrote:
> Is it possible to dynamically load classes from a URL into your
> application in the same way as a desktop application can? For example,
> can you do a simple boot-strap application which you install onto the
> device, that boots up loads the main jars required for the
> applications from a server, or from a local jar on the SD for example?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


Re: [android-developers] Remembering Shared Preferences

2010-11-02 Thread TreKing
On Tue, Nov 2, 2010 at 4:34 PM, sisko  wrote:

> The problem is, when I revisit the activity, the EditView never contains
> the text I input the last time.
>

What do you mean "when you revisit"? What are the steps involved in the
problem you're seeing?


> I actually contains the above TextView content and I can't then edit it.
>

What TextView? Can't edit what? The EditText or this TextView?


>  I know that's not really clear but does anyone have any ideas to help with
> seting and retrieving shared preferences properly ??
>

Check to make sure your value exists somewhere else in your code and just
write it out to the log to make sure.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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

Re: [android-developers] Re: Service onCreate is asynchronous

2010-11-02 Thread Kostya Vasilyev
Services are a mechanism for doing tasks that take a long time (among 
another things). Based on this, the result of a service doing something 
is typically available after a delay, so services are asynchronous by 
their nature.


If you have a piece of code that you wish to run synchronously, just 
call that code directly (remembering to avoid code that can lead to ANRs).


The only time I can see synchronous start / bind could be useful is 
updating an Activity with the current state of some process managed by a 
service.


But even this case should work pretty well, because at the time onCreate 
is called (and presumable, that's where service start / bind is called), 
the activity is not fully visible yet (since its content view is only 
specified inside onCreate).


-- Kostya

03.11.2010 0:30, jotobjects пишет:

On Nov 2, 1:33 pm, Frank Weiss  wrote:

GUI Programming 101

All GUIs I've seen use an event queue. This is one of the biggest prardigm
shifts to overcome for someone who is used to sequential, non-GUI
applications.

The Service object by definition has nothing to with GUI programming,
but you sort of have the right idea.




--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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


Re: [android-developers] Is it possible for an app to replace the NotificationManager?

2010-11-02 Thread TreKing
On Tue, Nov 2, 2010 at 4:22 PM, Dan Dumont  wrote:

> Sure there is.
>

I disagree. What do you gain by allowing other apps to extend the
Notification Manager? Besides the possibility of a malicious one breaking
all other apps' notifications?


> Android has been missing persistent reminder notification sounds for a long
> time.
>

No, it hasn't, as pointed out by Mark above.


> Other custom builds have it i'm sure, but being able to set a preference
> for reminder sounds, vibrates etc would be better handled as part of the
> notification manager.
>

Sounds, vibrates, etc are already configurable by setting the proper values
on a Notification object.


> Yes, there are apps that do this for sms messages, or a few different
> content types in general, but there is no generic solution.
>

A generic solution for what? I don't see what problem you're having that you
think a custom NotificationManager would solve.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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] Dynamic class loading - how?

2010-11-02 Thread moa
Is it possible to dynamically load classes from a URL into your
application in the same way as a desktop application can? For example,
can you do a simple boot-strap application which you install onto the
device, that boots up loads the main jars required for the
applications from a server, or from a local jar on the SD for example?

-- 
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] Remembering Shared Preferences

2010-11-02 Thread sisko
Hi guys,

I am using the following code to set the input from an EditView in a
SharePreference.
But I am also trying to read the input back into the EditView.

final EditText input_nickname   =   (EditText)
findViewById(R.id.EditText_Nickname);
input_nickname.setOnKeyListener( new View.OnKeyListener() {
@Override
public boolean onKey(View v, int keyCode, 
KeyEvent event) {
// TODO Auto-generated method stub
if( 
mGameSettings.contains(GAME_PREFERENCES_NICKNAME) ){

Toast.makeText(QuizSettingsActivity.this, "Exists",
Toast.LENGTH_SHORT ).show();

input_nickname.setText( mGameSettings.getString(GAME_PREFERENCES_NICKNAME,
"") );
}else{
String processed_nickname   
=   input_nickname.getText().toString();

Toast.makeText(QuizSettingsActivity.this, "Not Exists",
Toast.LENGTH_SHORT ).show();
Editor editor   =   
mGameSettings.edit();

editor.putString(GAME_PREFERENCES_NICKNAME, processed_nickname);
editor.commit();
}
return false;
}

});

The problem is, when I revisit the activity, the EditView never
contains the text I input the last time. I actually contains the above
TextView content and I can't then edit it.

I know that's not really clear but does anyone have any ideas to help
with seting and retrieving shared preferences properly ??

-- 
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


Re: [android-developers] Is it possible for an app to replace the NotificationManager?

2010-11-02 Thread Mark Murphy
On Tue, Nov 2, 2010 at 5:22 PM, Dan Dumont  wrote:
> Android has been missing persistent reminder notification
> sounds for a long time.

http://developer.android.com/reference/android/app/Notification.html#FLAG_INSISTENT

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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] Re: Service onCreate is asynchronous

2010-11-02 Thread jotobjects

On Nov 2, 1:33 pm, Frank Weiss  wrote:
> GUI Programming 101
>
> All GUIs I've seen use an event queue. This is one of the biggest prardigm
> shifts to overcome for someone who is used to sequential, non-GUI
> applications.

The Service object by definition has nothing to with GUI programming,
but you sort of have the right idea.

-- 
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


Re: [android-developers] Is it possible for an app to replace the NotificationManager?

2010-11-02 Thread Dan Dumont
Sure there is.  Android has been missing persistent reminder notification
sounds for a long time.   Other custom builds have it i'm sure, but being
able to set a preference for reminder sounds, vibrates etc would be better
handled as part of the notification manager.

Being able to extend it would be nice.
Yes, there are apps that do this for sms messages, or a few different
content types in general, but there is no generic solution.

Anyway, thanks for the answers.


On Tue, Nov 2, 2010 at 2:56 PM, TreKing  wrote:

> On Tue, Nov 2, 2010 at 1:52 PM, ddum...@gmail.com wrote:
>
>> Or extend it in some way to allow for pre/post-processing of all
>> notifications and additional workflow?
>>
>
> No - this is system-level functionality. There's no good reason to give an
> app access / control over all other apps' notifications.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> 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
>

-- 
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

Re: [android-developers] Re: is there a limit for the lenght of a texview's text?

2010-11-02 Thread TreKing
On Tue, Nov 2, 2010 at 3:43 PM, Paolo  wrote:

> the font color is the default.


Change it and the background color just to see what happens.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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: LVL advice in the Android Developer Blog

2010-11-02 Thread cybice
It's hard to say,
for example let's get a file with all 32 bit numbers in it,
so CRC32 of this file gives us a number which already contains in
file,
so it's not impossible - some solutions for some files exists.

Also CRC32 is not a strong crypto hash function so Np or not Np this
is the question.



On Nov 2, 5:09 am, Zsolt Vasvari  wrote:
> So basically the advice given the blog is impossible to achive (or NP-
> Complete)?
>
> On Nov 2, 9:09 am, cybice  wrote:
>
>
>
>
>
>
>
> > But, no 100% probability that this method find something :-)
> > But :-) i think CRC32 is not a good hash function so probability to
> > find solution is not zero
>
> > On Nov 2, 3:45 am, cybice  wrote:
>
> > > Another way :-)
>
> > > while(CALC_CRC(compiled_code)!=CRC)
> > > {
> > >   CRC = CRC++;
> > >   InjectCRCIntoSource(CRC);
> > >   Compile();
>
> > > }
>
> > > On Nov 1, 10:50 am, Zsolt Vasvari  wrote:
>
> > > > Under the part "Make your application temper-resistant" Tim Bray
> > > > advises:
>
> > > > "The most obvious mechanism is to use a lightweight hash function,
> > > > such as CRC32, and build a hash of your application’s code. You can
> > > > then compare this checksum with a known good value. You can find the
> > > > path of your application’s files by calling
> > > > context.GetApplicationInfo() — just be sure not to compute a checksum
> > > > of the file that contains your checksum! "
>
> > > > It's the last part I have a problem with.  How do I compute the CRC32
> > > > of the app that already contains the said CRC32?- Hide quoted text -
>
> > - Show quoted text -

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


Re: [android-developers] Re: Samsung Tab Emulator

2010-11-02 Thread Yves Liu
That worked. Thanks.

On Tue, Nov 2, 2010 at 11:34 AM, Kumar Bibek  wrote:

> Switch to 1.6 and add multiple screen support.
>
> http://developer.android.com/guide/practices/screens_support.html#attrs
>
> On Nov 2, 10:57 pm, "yves...@gmail.com"  wrote:
> > Anybody here tried the Samsung Tab emulator?
> http://innovator.samsungmobile.com/galaxyTab.do
> >
> > My app layout doesn't look right. I am using Relative Layout, and both
> > width and height are fill_parent. But when I run this in the emulator,
> > it only occupies a small portion of the screen. 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
>

-- 
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] problem with Search suggestions

2010-11-02 Thread Achie
I am trying to implement search suggestions in my app in the lines of
Searchable Dictionary, except that my data comes from a Sqlite
Database.

Everything seems to be working except the suggestions. I created a
sample animal database with these values
 {"Lion", "Tiger", "Elephant", "Deer", "Kangaroo"}

Now when I start typing and click on submit button it works fine.

example typing 't' and hitting search returns the list with Tiger and
Elephant. But when showing search suggestions it seems to get the
correct number of items being returned as it shows those many rows but
it does not populate them. When I click on any of the rows I see that
its not passing selectionArgs. It is being null.

What might be causing this issue?
Here is my Database class
DATABASE===
package com.achie.gs1;

public class SampleDatabase {


private static final String DATABASE_NAME = "zoodatabase.db";
private static final String ANIMALS_TABLE = "animals";
private static final int DATABASE_VERSION = 2;

private final ZooOpenHelper mDatabaseOpenHelper;
private static final HashMap mColumnMap =
buildColumnMap();

public static final String ANIMAL_NAME = "name";

public SampleDatabase(Context context) {
mDatabaseOpenHelper = new ZooOpenHelper(context);
}

private static HashMap buildColumnMap() {
HashMap map = new HashMap();
map.put(ANIMAL_NAME, ANIMAL_NAME);
map.put(BaseColumns._ID, "rowid AS "+BaseColumns._ID);
map.put(SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID, "rowid AS
"+SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID);
map.put(SearchManager.SUGGEST_COLUMN_SHORTCUT_ID, "rowid AS
"+SearchManager.SUGGEST_COLUMN_SHORTCUT_ID);

return map;
}

public Cursor getAnimal(String rowId, String[] columns) {
String selection = "rowid = ?";
String[] selectionArgs = new String[] {rowId};
return query(selection, selectionArgs, columns);
}

public Cursor getAnimalMatches(String query, String[] columns) {
String selection = ANIMAL_NAME + " LIKE ?";
String[] selectionArgs = new String[] {"%"+query+"%"};
return query(selection, selectionArgs, columns);
}

private Cursor query(String selection, String[] selectionArgs,
String[] columns) {
SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
qb.setTables(ANIMALS_TABLE);
qb.setProjectionMap(mColumnMap);

Cursor cursor = 
qb.query(mDatabaseOpenHelper.getReadableDatabase(),
columns, selection, selectionArgs, null, null, null);
if(cursor == null) {
return null;
} else if (!cursor.moveToFirst()) {
cursor.close();
return null;
}
return cursor;
}

private static class ZooOpenHelper extends SQLiteOpenHelper {

private SQLiteDatabase mDatabase;
private static final String CREATE_ANIMALS_TABLE = "CREATE TABLE
"+ANIMALS_TABLE+
" (_id integer primary key autoincrement, 
"+ANIMAL_NAME+" text not
null);";
private static final String[] ANIMALS = new String[] {"Lion",
"Tiger", "Elephant", "Deer", "Kangaroo"};

public ZooOpenHelper(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}

public void onCreate(SQLiteDatabase db) {
mDatabase = db;
mDatabase.execSQL(CREATE_ANIMALS_TABLE);
loadDatabase();
}

public void onUpgrade(SQLiteDatabase db, int oldVersion, int
newVersion) {}

private void loadDatabase() {
new Thread(new Runnable() {
@Override
public void run() {
loadAnimals();
}
}).start();
}

private void loadAnimals() {
for (int i=0; ihttp://groups.google.com/group/android-developers?hl=en


[android-developers] Sqlite busy timeout - [was Re: error code 5: database is locked]

2010-11-02 Thread William Ferguson
I'm definitely not turning it off.
I'll try explicitly enabling locking as see if it make a difference.

But I'd like to know what busy timeout is being used for Android.
I would hope my app is not falling foul of it.
But I have one (very simple) query what regularly takes about 2
seconds to execute.


On Nov 2, 9:14 pm, Kostya Vasilyev  wrote:
> William,
>
> This:
>
> http://developer.android.com/reference/android/database/sqlite/SQLite...)
>
> suggests that thread-safe locking is enabled by default.
>
> Are you turning it off somewhere, perhaps?
>
> If not, I think you could try calling this method to explicitly enable
> locking.
>
> -- Kostya
>
> 02.11.2010 8:07, William Ferguson пишет:
>
>
>
> > I have seen some other discussions on this issue for Sqlite and the
> > solution was to increase the busy timeout for the DB.
> > Anyone know how that is achieved on Android?
>
> > On Nov 2, 12:14 am, William Ferguson
> > wrote:
> >> I'm seeing the same thing.
>
> >> And to answer the questions:
> >> 1 - There is no other app using my db, though it is accessed from both
> >> my Activity and an IntentService within my app. Both of which needs
> >> write access.
> >> 2 - I closed the cursor every time.
>
> >> I cannot see any need for the entire DB to be locked (there is no DDL
> >> being executed).
> >> But its possible that there is a collision between the 2 Threads. Ie
> >> both trying to write at the same time (though never to the same
> >> record).
> >> But I had presumed that one would halt (unless it times out) waiting
> >> for the first to release a write lock.
> >> But it doesn't look like there is any waiting being done.
> >> Is that an option that can be configure? for an SQLite transaction? I
> >> couldn't find anything that suggested that.
>
> >> Stacktrace below.
>
> >> William
>
> >> 11-01 23:40:30.173: ERROR/Database(8715): Error inserting ..
> >> crane=large length=6
> >>          android.database.sqlite.SQLiteException: error code 5:
> >> database is locked
> >>          at
> >> android.database.sqlite.SQLiteStatement.native_execute(Native Method)
> >>          at
> >> android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:
> >> 66)
> >>          at
> >> android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:
> >> 1426)
> >>          at
> >> android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:
> >> 1286)
>
> >> On Oct 25, 10:48 pm, AJ  wrote:
>
> >>> Hi gcstang,
> >>> Very basic but check the following:-
> >>> 1- Is any other app using your DB?
> >>> 2- Did you close the cursor every time when you opened it?
> >>> Thanks,
> >>> AJ
> >>> On Oct 25,5:41 pm, gcstang  wrote:
>  ping, anyone that can answer this?
>  On Oct 16, 10:58 am, gcstang  wrote:
> > Here is the stack:
> > android.database.sqlite.SQLiteException:errorcode5:databaseislocked
> >          at
> > android.database.sqlite.SQLiteStatement.native_execute(Native Method)
> >          at
> > android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:
> > 55)
> >          at
> > android.database.sqlite.SQLiteDatabase.updateWithOnConflict(SQLiteDatabase.java:
> > 1779)
> >          at
> > android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:
> > 1709)
> >          at com.myapp.MyDbAdapter.updateField2(MyDbAdapter.java:468)
> >          at com.myapp.MyView$13.run(MyView.java:1260)
> >          at java.lang.Thread.run(Thread.java:1102)
> > On Oct 15, 11:54 am, DanH  wrote:
> >> Where is theerrorbeing thrown from?  (You might include the
> >> exception traceback.)
> >> On Oct 15, 9:44 am, gcstang  wrote:
> >>> Has anyone encountered this and is there a solution to work around it?
> >>> I'm creating a Thread and in that thread I open adatabaseconnection
> >>> using the DBHelper, perform an update on a field in mydatabaseand
> >>> close it. I create a separate one in the Thread because if the View is
> >>> closed the global one for that view is closed, causing my Thread
> >>> update to throw anerror.
> >>> The thread is in a View, that also has it's own instance of the
> >>> DBHelper and
> >>> opens thedatabaseonCreate
> >>> closes it onPause
> >>> opens it onResume
> >>> closes it onDestroy
> >>> The instance in my Thread is throwing this but not all the time :error
> >>> code5:databaseislocked
> >>> Is there a known practice I should implement so I don't get thiserror?
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget 
> --http://kmansoft.wordpress.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: is there a limit for the lenght of a texview's text?

2010-11-02 Thread Paolo
the font color is the default.

It is very strange because if i cut the string at 3000 characters I
can see it...



On 2 Nov, 20:33, TreKing  wrote:
> On Tue, Nov 2, 2010 at 2:31 PM, Paolo  wrote:
> > I can scroll the the view unitl the end, it is very long, but empy and
> > black.
> > But in the code if I print the textview's content in the Log window I can
> > see all the string.
>
> May your string font color is black or transparent? Try explicitly setting
> it to something else.
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
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


Re: [android-developers] startElement not called in SAX Parser

2010-11-02 Thread Frank Weiss
I'd try annotating the startElement method with @Override to make sure its
signature actually matches the interface the SAXParser is making the
callbacks to.

-- 
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

Re: [android-developers] SIGH ... Android & SOAP

2010-11-02 Thread Frank Weiss
If you have to use it because the legacy server uses it, I would recommend
using a SOAP package to create the client stub source code and adapt that
code to 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

Re: [android-developers] Service onCreate is asynchronous

2010-11-02 Thread Frank Weiss
GUI Programming 101

All GUIs I've seen use an event queue. This is one of the biggest prardigm
shifts to overcome for someone who is used to sequential, non-GUI
applications.

-- 
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] Where to learn Android graphics concepts and techniques

2010-11-02 Thread Doug Gordon
I need to do some custom drawing on the screen and am a bit overwhelmed 
when looking at documentation on extending a View, what a Canvas is, 
Paint, strokes, determining current size of screen space, etc. All I'm 
looking for is a good sample or tutorial that explains the concepts 
behind all of this and might give me an idea of which way to go about it.


What I need to do is to draw what basically looks like an organization 
chart. That is, there will be several text boxes (TextViews) with 
borders drawn around them to box them in. The boxes will be 
interconnected by lines running horizontally and vertically. The trick 
will be to dynamically place everything to fit on the screen and then to 
compute the end points for the various line segments and draw them.


I did this for the PalmOS version of my product and it was not that 
difficult, but then PalmOS had a very crude graphic API compared to 
Android (crude but easy to use!). Any ideas on where I can look to get 
an idea of how to approach this?


  Doug G
  GHCS Software

--
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


Re: [android-developers] Re: is there a limit for the lenght of a texview's text?

2010-11-02 Thread TreKing
On Tue, Nov 2, 2010 at 2:31 PM, Paolo  wrote:

> I can scroll the the view unitl the end, it is very long, but empy and
> black.
> But in the code if I print the textview's content in the Log window I can
> see all the string.
>

May your string font color is black or transparent? Try explicitly setting
it to something else.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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: is there a limit for the lenght of a texview's text?

2010-11-02 Thread Paolo
I can scroll the the view unitl the end, it is very long, but empy and
black.
But in the code if I print the textview's content in the Log window I
can see all the string.


On 2 Nov, 19:40, Kumar Bibek  wrote:
> Nothing is shown? Are you sure??
>
> On Nov 2, 10:32 pm, Paolo  wrote:
>
>
>
> > No, i haven't. If I cut the same string at smaller dimension, like
> > 3000 characters instead of the real lenght (4782), the textview is
> > showed correctly.
>
> > Why this behaviour?
>
> > On 2 Nov, 17:46, TreKing  wrote:
>
> > > On Tue, Nov 2, 2010 at 4:39 AM, Paolo  wrote:
> > > > I've found a problem with textview when i have to show a long text in
> > > > a textview into a scroolview. The text is over 4800 characters and
> > > > when I have to show it the textview is empty. Nothing is showed.
>
> > > Did you test with smaller sized strings? Do you have the same problem?
>
> > > ---
> > >  --
> > > TreKing  - Chicago
> > > transit tracking app for Android-powered devices

-- 
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


Re: [android-developers] Service onCreate is asynchronous

2010-11-02 Thread Mark Murphy
On Tue, Nov 2, 2010 at 2:54 PM, jotobjects  wrote:
> I have tried both startService() and bindService().  Both methods
> return before Service.onCreate() is called.  So work I was expecting
> to complete in Service.onCreate() is not done.

It is not done by the time startService() or bindService() return. It
is not supposed to be done by then. Android will not have even begun
to start the service by the time those methods return (except
bindService(), if the service is already running). This is no
different than startActivity(), in that regard.

> Is it necessary to do initialization steps in the Service
> constructor?  If so what use is the Service.onCreate method?  Any
> suggestions about how others handle this problem?

What problem?

> Further even the Service constructor is called asynchronously.

Correct.

> It looks like all operations on a Local Service have to go through the
> ServiceConnection, or at least operations on the service have to be
> deferred until after onServiceConnected has been called.  Is that
> correct?

If you are using the local binding pattern, you need to wait until
onServiceConnected() -- until then, you are not bound.

startService() is more for the command pattern, where the activity
should not depend upon when the service does what it does.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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] Re: can't install Android platform 2.2 on windows vista 64 bit computer

2010-11-02 Thread DanH
It works.  You need to disable the hardware protection thingie to run
the emulator reliably, but nothing prevents you from doing install/
build.

On Nov 1, 2:20 pm, jane  wrote:
> Hi,
> I'm new for android's developing. I'm using windows vista 64 bit
> computer.
>  I try a couple of times run SDK manager.exe from android-sdk-windows
> package, but I can't install Android platform 2.2 and android platform
> 2.1 version. Does that mean android 2.2 not working with windows vista
> 64 bit?
> Did anyone have any experience for android installing on windows vista
> 64 bit? Thanks for any help.
>
> Jane

-- 
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 onCreate is asynchronous

2010-11-02 Thread jotobjects
Further even the Service constructor is called asynchronously.

It looks like all operations on a Local Service have to go through the
ServiceConnection, or at least operations on the service have to be
deferred until after onServiceConnected has been called.  Is that
correct?

Any other pointers about the correct design pattern to use for a
LocalService?

On Nov 2, 11:54 am, jotobjects  wrote:
> I have tried both startService() and bindService().  Both methods
> return before Service.onCreate() is called.  So work I was expecting
> to complete in Service.onCreate() is not done.
>
> Is it necessary to do initialization steps in the Service
> constructor?  If so what use is the Service.onCreate method?  Any
> suggestions about how others handle this problem?
>
> I found this thread which describes the problem, but the poster's
> solution is not described.
>
> http://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: OpenGL more textures for one rect

2010-11-02 Thread Robert Green
This is what glBindTexture() is for :)

On Nov 1, 3:15 pm, AFgan  wrote:
> In Android OpenGL ES, I want to be able to switch textures for a given
> Rectangle. I have one rect and I put two textures, depending on
> different conditions. I just want to switch between textures.
>
> I followed this code to create the 
> textures:http://blog.poweredbytoast.com/loading-opengl-textures-in-androidbut
> it seems that this is only for one texture.
>
> If I use only one texture, it renders fine, but then I don't know how
> to tell the rect to use another texture (same rect, different
> texture). Do I do something like "setTexture" with the ID that is
> generated in loadTextures()? Do I have to have an array with texture
> names (numbers) that I then change .. I just don't get it..
>
> Help is really appreciated.

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


Re: [android-developers] can't install Android platform 2.2 on windows vista 64 bit computer

2010-11-02 Thread Kumar Bibek
What is the problem that you are facing? Where are you stuck?

On Tue, Nov 2, 2010 at 12:50 AM, jane  wrote:

> Hi,
> I'm new for android's developing. I'm using windows vista 64 bit
> computer.
>  I try a couple of times run SDK manager.exe from android-sdk-windows
> package, but I can't install Android platform 2.2 and android platform
> 2.1 version. Does that mean android 2.2 not working with windows vista
> 64 bit?
> Did anyone have any experience for android installing on windows vista
> 64 bit? Thanks for any help.
>
> Jane
>
> --
> 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




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.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

Re: [android-developers] SIGH ... Android & SOAP

2010-11-02 Thread Kumar Bibek
Well, I would try to avoid SOAP as long as possible :)  There's no native
support yet, and I guess, there won't be any in the future as well, just my
guess :)


On Tue, Nov 2, 2010 at 5:00 AM, Darkside Android
wrote:

> This post is directed to those of you who may have been, are or will be
> FORCED to deal with stone-age SOAP w/s and Android.
>
> What has been the best way to consume these 7-layered nightmares?
> Is there any native (non 3rd-party) support in Android?
> Library recommendations (which to embrace, which to drop-it-like-its-hot,
> etc)
>
> Thx,
> D.A.
>
> --
> 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




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.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

Re: [android-developers] Share Data with ACTION_SEND

2010-11-02 Thread Prajakta Shitole
Hi Mark,

Thank you for the link below. It works great. I could get my problem
resolved.

Thanks,
Prajakta



On Tue, Nov 2, 2010 at 10:03 AM, Mark Murphy wrote:

> Remove any ResolveInfo objects you do not want (e.g., Facebook) from
> the list. Display the resulting subset in a dialog or activity. Here
> is an example:
>
>
> http://github.com/commonsguy/cw-advandroid/tree/master/Introspection/Launchalot/
>
> On Tue, Nov 2, 2010 at 12:40 PM, Prajakta Shitole 
> wrote:
> > Hi Mark,
> > Thanks for your reply. I tried doing the below, but I am not sure how can
> i
> > remove Facebook from the list that appears in the createChooser or the
> > Dialog box:
> > PackageManager pManager = getPackageManager();
> > Intent intent = new Intent(Intent.ACTION_SEND);
> > intent.setType("text/plain");
> > intent.addCategory(Intent.CATEGORY_DEFAULT);
> > List resolveInfo = pManager.queryIntentActivities(intent,
> > pManager.MATCH_DEFAULT_ONLY);
> > for(int i=0;i > ActivityInfo activityInfo = resolveInfo.get(i).activityInfo;
> >
> if(activityInfo.name.equalsIgnoreCase("com.facebook.katana.ShareLinkActivity"){
> >   // i get the Facebook activity
> >  }
> > }
> >
> > Please can anyone let me know how I can filter out Facebook from the list
> in
> > the Dialog Box that appears after an ACTION_SEND intent.
> > Thanks,
> > Prajakta
> > On Fri, Oct 29, 2010 at 11:24 PM, Mark Murphy 
> > wrote:
> >>
> >> On Sat, Oct 30, 2010 at 2:03 AM, Prajakta Shitole  >
> >> wrote:
> >> > Please can anyone let me know how to disable Facebook from being
> listed
> >> > in
> >> > the list of to "Share" items.
> >>
> >> Uninstall the application.
> >>
> >> > As Facebook allows only Urls to be posted I
> >> > have used the Facebook SDK when I need to share a link, picture and
> >> > message.
> >> > So I am currently displaying an Alert Dialog with Facebook listed and
> >> > the
> >> > second option as Others where I would like to enlist the other items
> >> > like
> >> > Gmail/ Y!Mail and twitter etc to share data. I dont want Facebook to
> >> > appear
> >> > in this list. So please can anyone let me know how to show all
> >> > applications
> >> > except Facebook in the list or any other work around.
> >>
> >> Use PackageManager and queryIntentActivities() to generate your list,
> >> then attempt to filter out Facebook.
> >>
> >> --
> >> Mark Murphy (a Commons Guy)
> >> http://commonsware.com | http://github.com/commonsguy
> >> http://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
> >
> > --
> > 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 (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://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
>

-- 
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

Re: [android-developers] Re: SSLContext.getInstance("SSL") throws java.security.NosuchAlgorithmException: SSLContext SSL implementation not found

2010-11-02 Thread Kumar Bibek
SSL context is not implemented on Android. And as far as certificate
exception issue, there seems to be a problem on 2.2 where some TrustManagers
do not work as expected, which do work on lower versions. Even I am stuck
with this issue. Seems like a 2.2 issue. I had read about this somehwere.

http://stackoverflow.com/questions/2899079/custom-ssl-handling-stopped-working-on-android-2-2-froyo

On Tue, Nov 2, 2010 at 12:34 AM, gato chlr  wrote:

> DanH , thanks for the answer, i have read about TLS, and now i know it is a
> SSLv3.
>
> I have tried with TLS , and it works! but, then i get a
> javax.net.ssl.SSLException: Not Trusted server certificate. So it seems that
> my know my dummy trustManager is not working :S. the exception occurs in the
> instruction :
>
> HttpResponse response = httpclient.execute(targetHost, httpget,
> localcontext);
>
>  I have changed the value "SSL" to "TLS" in my desktop (not for android)
> and it work fine. But in my android application (this one) it throws that
> exception.
>
> Maybe my trustManager does not works in Android, if anybody has a code or
> solution to fix this problem i will really appreciate
>
> thank for the answers
>
> On 1 November 2010 14:37, DanH  wrote:
>
>> Have you tried "TLS"?
>>
>> On Nov 1, 9:29 am, gato chlr  wrote:
>> > Hi list,
>> >
>> > i want to implement a client for https, all in my localhost (in my
>> apache,
>> > it is configured to ask authentication), with a resource "
>> https://localhost:443/resources/resource1.xml";
>> > the server works fine.
>> >
>> > I have a client for desktop, and it works fine, the resources are
>> consumed
>> > using httpcomponents-client-4.0.3), i have readed that Android uses that
>> > version.
>> >
>> > This is the code of my client in Android (practically is the same of
>> desktop
>> > mapped to android) ,
>> >
>> > in the line of   SSLContext sc = SSLContext.getInstance("TSL"); the next
>> > exception is thrown :
>> >
>> > java.security.NosuchAlgorithmException: SSLContext SSL implementation
>> not
>> > found
>> >
>> > Please does anybody know how to solve this issue?
>> >
>> > i have tried with TSL and the exception continue.
>> >
>> > import java.io.IOException;
>> >
>> > import javax.net.ssl.HttpsURLConnection;
>> > import javax.net.ssl.SSLContext;
>> > import javax.net.ssl.TrustManager;
>> > import javax.net.ssl.X509TrustManager;
>> >
>> > import org.apache.http.HttpEntity;
>> > import org.apache.http.HttpException;
>> > import org.apache.http.HttpHost;
>> > import org.apache.http.HttpRequest;
>> > import org.apache.http.HttpRequestInterceptor;
>> > import org.apache.http.HttpResponse;
>> > import org.apache.http.auth.AuthScheme;
>> > import org.apache.http.auth.AuthScope;
>> > import org.apache.http.auth.AuthState;
>> > import org.apache.http.auth.Credentials;
>> > import org.apache.http.auth.UsernamePasswordCredentials;
>> > import org.apache.http.client.CredentialsProvider;
>> > import org.apache.http.client.methods.HttpGet;
>> > import org.apache.http.client.protocol.ClientContext;
>> > import org.apache.http.impl.auth.BasicScheme;
>> > import org.apache.http.impl.client.DefaultHttpClient;
>> > import org.apache.http.protocol.BasicHttpContext;
>> > import org.apache.http.protocol.ExecutionContext;
>> > import org.apache.http.protocol.HttpContext;
>> > import org.apache.http.util.EntityUtils;
>> >
>> > import android.app.Activity;
>> > import android.os.Bundle;
>> > import android.widget.TextView;
>> >
>> > public class androidNativeRest extends Activity {
>> >
>> > /** Called when the activity is first created. */
>> > public void onCreate(Bundle savedInstanceState) {
>> >
>> > super.onCreate(savedInstanceState);
>> >
>> > TextView tv = new TextView(this);
>> >
>> > String res="nada";
>> >
>> > DefaultHttpClient httpclient = new DefaultHttpClient();
>> >
>> > httpclient.getCredentialsProvider().setCredentials(
>> > new AuthScope("10.0.2.2", 443),
>> > new UsernamePasswordCredentials("user", "pass"));
>> >
>> > BasicHttpContext localcontext = new BasicHttpContext();
>> >
>> > // Generate BASIC scheme object and stick it to the local
>> > // execution context
>> > BasicScheme basicAuth = new BasicScheme();
>> > localcontext.setAttribute("preemptive-auth", basicAuth);
>> >
>> > // Add as the first request interceptor
>> > httpclient.addRequestInterceptor(new PreemptiveAuth(), 0);
>> >
>> > HttpHost targetHost = new HttpHost("10.0.2.2", 443, "https");
>> >
>> > HttpGet httpget = new HttpGet("/resources/resource1.xml");
>> >
>> > res+="executing request: " + httpget.getRequestLine()+"/ln";
>> > res+="to target: " + targetHost+"/ln";
>> > //--TRUST MANAGER---
>> > //Create a trust manager that does not validate certificate
>> chains
>> > TrustManager[] trustAllCerts = new Tru

Re: [android-developers] How to draw dotted-line

2010-11-02 Thread Kumar Bibek
Draw where???

On Tue, Nov 2, 2010 at 7:18 AM, 颖赖  wrote:

>  How to draw dotted-line?
> I know someone already asked this question, but i cann't find the annals.
> Could you tell me how to draw it or record the message sen
> Thanks for 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




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.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] Best way to dim background of layout

2010-11-02 Thread Vinay
Hi All,

A part of my main.xml is as below:



>>  


>>  










I would like to dim the "Relative Layout" and its contents when the
sliding drawer opens. and regain the brightness once the sliding
drawer closes. I have written animation xml for the same. I'm able to
dim using alpha animation. But can't retain the dimness till I close
the drawer.

The other possible way of doing this is creating two different set of
images for the image view in the relative layout and altering them
when slider opens and closes.

Kindly let me know if its possible to handle dimming by any means
other than using multiple images.

Thanks a lot.

-- 
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 to draw the video frame 0f YUV420 as soon as possible?

2010-11-02 Thread 袁堂夫
I use Opengl 2.0 and write shader  (nexes one). The only problem is
that glTexImage2D is too slowly,costing 40ms per frame.
So do you have good idea to fix it? Tell me,please. Thank you very much.


glActiveTexture ( GL_TEXTURE0 );
glBindTexture ( GL_TEXTURE_2D, userData.textureId[0] );
glUniform1i ( userData.samplerLocY, 0);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, 
GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, 
GL_CLAMP_TO_EDGE);
//glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
//glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
//glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
//glPixelStorei(GL_UNPACK_ALIGNMENT,1);


glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, width, height, 0,
GL_LUMINANCE, GL_UNSIGNED_BYTE, pict->data[0]);

-- 
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: error to include slider in layout (how to include slider)

2010-11-02 Thread Sunil
Hi, you missed to add the handle attribute in the SlidingDrawer xml
node,

here is the modified declaration for your reference
 

Thanks,
Sunil

On Nov 2, 3:29 pm, Rocky  wrote:
> Hi,
>
> I created a slider  view -
>
> slider_button.xml
> 
>
>   android:layout_width="fill_parent" android:layout_height="wrap_content"
>  xmlns:android="http://schemas.android.com/apk/res/android";
>  android:orientation="horizontal" android:gravity="bottom"
> android:background="#FF">
>        android:layout_width="wrap_content"
>      android:id="@+id/SlidingDrawer"
>      android:content="@+id/contentLayout"
>      android:padding="10dip"
>      android:scrollX="10sp"
>      android:scrollY="100sp"
>      android:layout_height="250dip">
>
>            android:layout_height="wrap_content"
>      android:id="@+id/slideHandleButton"
>      android:background="@drawable/leftarrow">
>      
>                        android:layout_width="wrap_content"
>              android:id="@+id/button_content"
>              android:orientation="horizontal"
>              android:gravity="center|top"
>              android:padding="10dip"
>              android:background="#C0C0C0"
>              android:layout_height="wrap_content">
>
>                                android:layout_width="wrap_content"
>                  android:layout_height="wrap_content"
>                  android:text="Replay">
>             
>                                android:layout_width="wrap_content"
>                  android:layout_height="wrap_content"
>                  android:text="Replay All">
>             
>                                android:layout_width="wrap_content"
>                  android:layout_height="wrap_content"
>                  android:text="Forward">
>             
>
>         
>                android:layout_height="wrap_content"
>          android:id="@+id/slideHandleButton"
>          android:background="@drawable/rightarrow">
>     
> 
> 
>
> I want to include this slider in another layout  -
>
> main.xml -
> 
>      xmlns:android="http://schemas.android.com/apk/res/android";
>     android:orientation="vertical"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     android:background="@drawable/background_color"
>
>     >
>  />
> 
>
>                  android:layout_width="fill_parent"
>             android:background="#00"
>             android:layout_height="1dip" />
>                           android:id="@+id/message_view_from"
>                     android:editable="false"
>                     android:layout_width="fill_parent"
>                     android:layout_height="wrap_content"
>                     android:layout_marginLeft="1dip"
>                     android:gravity="left"
>                     android:hint="To :"
>                     android:textColor="?android:attr/textColorSecondary"
>
> android:textAppearance="?android:attr/textAppearanceSmall" />
>                    android:layout_width="fill_parent"
>             android:background="#00"
>             android:layout_height="1dip" />
>  />
> 
>
> ---
> Then i'm calling this main.xml from activity class, I'm getting error
>
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710): java.lang.RuntimeException:
> Unable to start activity ComponentInfo{com.android.slider/main}:
>
> android.view.InflateException: Binary XML file line #6: Error inflating
> class android.widget.SlidingDrawer
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
> android.app.ActivityThread.access$2300(ActivityThread.java:125)
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
> android.os.Looper.loop(Looper.java:123)
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
> android.app.ActivityThread.main(ActivityThread.java:4627)
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
> dalvik.system.NativeStart.main(Native Method)
> 11-02 12:46:00.971: ERROR/AndroidRuntime(710): Caused by:
> android.vie

[android-developers] startElement not called in SAX Parser

2010-11-02 Thread HugoZalm
Hoi,

I'am building a RSS reader based on newsdroid and androidRSS.
(newsdroid: http://www.helloandroid.com/tutorials/newsdroid-rss-reader)
(androidRSS: 
http://www.ibm.com/developerworks/xml/tutorials/x-androidrss/index.html)

Up til now, i'am able to read a RSS-file and parse it. Although,
during parising, the parser never calls the startElement procedure !
Useless to say that this is a great problem for me ! Log-files during
processing shows parsing uses startDocument, endElement and Characters
without any problem. It just never reach startElement.

Anyone got a clue ?


This is my code:

##
class RSSReader
##

 / ...

RSSHandler rh = new RSSHandler();
try {
 rh.updateArticles(this, link);
} catch (Exception e) {
 Log.i(TAG, e);
}

 / ...


##
class RSSHandler
##

 / ...

/** STARTDOCUMENT **/
public void startDocument() throws SAXException {
targetFlag = TARGET_FEED;
}

/** STARTELEMENT **/
public void startElement(String uri, String localName, String qName,
Attributes atts) throws
   SAXException{
if(localName.trim().equals("title")) {
inTitle = true;
} else if (localName.trim().equals("item")){
targetFlag = TARGET_ARTICLES;
inItem = true;
} else if (localName.trim().equals("description")){
inDescription = true;
} else if (localName.trim().equals("pubDate")){
inPubdate = true;
} else if (localName.trim().equals("link")){
inLink = true;
}
}

/** ENDELEMENT **/
public void endElement(String uri, String name, String qName) throws
SAXException {
if(name.trim().equals("title")) {
inTitle = false;
} else if (name.trim().equals("item")){
targetFlag = TARGET_FEED;
inItem = false;
} else if (name.trim().equals("description")){
inDescription = false;
} else if (name.trim().equals("pubDate")){
inPubdate = false;
} else if (name.trim().equals("link")){
inLink = false;
}
if (targetFlag == TARGET_ARTICLES) {
rssDB.insertItem(feedId, currentArticle.title,
currentArticle.pubdate,
 currentArticle.description,
currentArticle.link);
currentArticle.feedId = feedId;
currentArticle.title = null;
currentArticle.pubdate = null;
currentArticle.description = null;
currentArticle.link = null;
}
}

/** CHARACTERS **/
public void characters(char ch[], int start, int length) {
String chars = (new String(ch).substring(start,start+length));
if(inItem) {
if(inTitle) currentArticle.title = chars;
if(inPubdate)   currentArticle.pubdate = chars;
if(inDescription)   currentArticle.description = 
chars;
if(inLink)  currentArticle.link = chars;
}
}

/** GET ARTICLES **/
public void updateArticles(Context ctx, String link) throws
MalformedURLException {
URL url = new 
URL("http://pipes.yahoo.com/hugozalm/a20popularblogs?
_render=rss");
try {
int targetFlag = 1;
A20DB db = new A20DB(ctx);
SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();
XMLReader xr = sp.getXMLReader();
xr.setContentHandler(this);
InputSource is = new InputSource(url.openStream());
xr.parse(is);
} catch (IOException e) {
Log.e("A20RSS",e.toString());
} catch (SAXException e) {
Log.e("A20RSS",e.toString());
} catch (ParserConfigurationException e) {
Log.e("A20RSS",e.toString());
}
}

 / ...


-- 
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/gro

[android-developers] Android source code (complete)

2010-11-02 Thread adithya
Hi all,

I have downloaded some amount of android source code (for Bluetooth
API's, wifi API's,etc)..I was just browsing through Bluetooth source
code in eclipse and bumped on this ServiceManager class whose source
code i couldn't read !! When i browsed through the android.jar i
couldn't see the source code for few packages like java.nio ,etc..

I have downloaded git for windows and whatever source code i have is
through the following command :

git clone git://source.android.com/platform/frameworks/base
 and put all the java files into a 'sources' folder which worked..

How can i get the source code for aforementioned classes ??

Thanks,
Adithya.

-- 
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


Re: [android-developers] Re: Hourglass

2010-11-02 Thread ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ
Thanks for the reply

2010/11/2 Dianne Hackborn 

> Ignoring everything else, you should do the work in an async task.  3
> seconds is a *LONG* time.  Seriously, it's a really really long time.  When
> you are sitting there interacting with your phone and it sits there frozen
> for 3 seconds, that's an eternity.
>
> Once you have that out of the way, it's just a matter of deciding what you
> want to do in the UI during the time you don't have your final data to
> display to the user.  One approach is to just have a progress indicator
> embedded in the UI that is shown while waiting for the data -- see for
> example the music picker:
>
>
> http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=src/com/android/music/MusicPicker.java;h=c41746ddf2cbeb80e111d72139b42e8f01329c30;hb=HEAD#l565
>
>
> On Mon, Nov 1, 2010 at 6:34 PM, Bret Foreman wrote:
>
>> I'm working on the same issue. My Activity takes some time to
>> calculate the graphics that will be displayed, about 3 seconds in some
>> complex cases. That's just long enough that the user often hits the
>> button again. If an hourglass is not an option, I suppose I can throw
>> up some sort of splash, do the main work in an AsyncTask, then put up
>> the results. But it's a lot of added complication for a 3 second
>> delay.
>>
>> On Nov 1, 5:21 pm, Frank Weiss  wrote:
>> > I don't understand your question. Your new activity should load quickly,
>> > what time would there be to display an hourglass?
>>
>> --
>> 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
>>
>
>
>
> --
> 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
>

-- 
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] Access and control real mobile devices via the web.

2010-11-02 Thread android Admin
hey ,

after reviewing all the phone emulators i encountered by accident to
the best testing tool of all.

it's called the handset cloud and you can really operate the phone
keys, touch-screen, or QWERTY keyboard to control the device, install
applications on the device and verify that your

application or service works properly and displays correctly on the
phone’s screen.

you guys should try it , its free to try .

-- 
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] Options to stream raw aac over http to android

2010-11-02 Thread Nick Campion
I am looking for a bit of help understanding the implications of the
'Android Supported Media Formats'[1].

I see that the AAC formats are only supported for decoding when using
3GPP or MPEG-4 container and that there is no support for raw AAC.

My question is this, I am working on a project which would require
playing audio from an aac audio stream from an http server.[2]  Not my
server, nothing I can change about that.  The supported formats seems
to
suggest I should move to 'wrapping' my aac audio in either 3gp or mp4.

I am able to, with assistance from several tools, convert a sample of
the stations audio from aac to aac embedded in both 3gp and mp4
containers.  I'm not really clear on what is happening when I do this
conversion and if it would be possible to do this on the phone without
the assistance of one of these tools.  Not really sure where else to
reach out to with this as reviewing this mailing list and the internet
for a few days haven't really moved me forward.

I'll list what I think my options are, and maybe someone can chime in
if
they think they can steer me in the right direction:
1. ) Figure out how to slip an mp4 or 3gp 'container' around the aac
audio stream using an internal proxy.
2. ) Obtain a aac license and do my own decoding or license a 3rd
party
tool in the same way
3. ) Try to convert my client to use another audio format for their
radio station.
4. ) Provide a proxy service for the client where I capture the stream
and then convert it to 3gp/mp4 content and then stream that

Any help is appreciated.

[1] - http://developer.android.com/guide/appendix/media-formats.html
[2] - example: http://wnyc-wqxr-ice.streamguys.com:80/wqxr.aac

--
Nick Campion
Android Development and Release Pipeline
www.doapps.com

Also follow us at http://www.twitter.com/doapp
And "fan" us at http://www.facebook.com/DoApps
Plus our blog is here: http://www.doapps.com/blog/

-- 
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


Re: [android-developers] Re: SSLContext.getInstance("SSL") throws java.security.NosuchAlgorithmException: SSLContext SSL implementation not found

2010-11-02 Thread gato chlr
DanH , thanks for the answer, i have read about TLS, and now i know it is a
SSLv3.

I have tried with TLS , and it works! but, then i get a
javax.net.ssl.SSLException: Not Trusted server certificate. So it seems that
my know my dummy trustManager is not working :S. the exception occurs in the
instruction :

HttpResponse response = httpclient.execute(targetHost, httpget,
localcontext);

 I have changed the value "SSL" to "TLS" in my desktop (not for android) and
it work fine. But in my android application (this one) it throws that
exception.

Maybe my trustManager does not works in Android, if anybody has a code or
solution to fix this problem i will really appreciate

thank for the answers

On 1 November 2010 14:37, DanH  wrote:

> Have you tried "TLS"?
>
> On Nov 1, 9:29 am, gato chlr  wrote:
> > Hi list,
> >
> > i want to implement a client for https, all in my localhost (in my
> apache,
> > it is configured to ask authentication), with a resource "
> https://localhost:443/resources/resource1.xml";
> > the server works fine.
> >
> > I have a client for desktop, and it works fine, the resources are
> consumed
> > using httpcomponents-client-4.0.3), i have readed that Android uses that
> > version.
> >
> > This is the code of my client in Android (practically is the same of
> desktop
> > mapped to android) ,
> >
> > in the line of   SSLContext sc = SSLContext.getInstance("TSL"); the next
> > exception is thrown :
> >
> > java.security.NosuchAlgorithmException: SSLContext SSL implementation not
> > found
> >
> > Please does anybody know how to solve this issue?
> >
> > i have tried with TSL and the exception continue.
> >
> > import java.io.IOException;
> >
> > import javax.net.ssl.HttpsURLConnection;
> > import javax.net.ssl.SSLContext;
> > import javax.net.ssl.TrustManager;
> > import javax.net.ssl.X509TrustManager;
> >
> > import org.apache.http.HttpEntity;
> > import org.apache.http.HttpException;
> > import org.apache.http.HttpHost;
> > import org.apache.http.HttpRequest;
> > import org.apache.http.HttpRequestInterceptor;
> > import org.apache.http.HttpResponse;
> > import org.apache.http.auth.AuthScheme;
> > import org.apache.http.auth.AuthScope;
> > import org.apache.http.auth.AuthState;
> > import org.apache.http.auth.Credentials;
> > import org.apache.http.auth.UsernamePasswordCredentials;
> > import org.apache.http.client.CredentialsProvider;
> > import org.apache.http.client.methods.HttpGet;
> > import org.apache.http.client.protocol.ClientContext;
> > import org.apache.http.impl.auth.BasicScheme;
> > import org.apache.http.impl.client.DefaultHttpClient;
> > import org.apache.http.protocol.BasicHttpContext;
> > import org.apache.http.protocol.ExecutionContext;
> > import org.apache.http.protocol.HttpContext;
> > import org.apache.http.util.EntityUtils;
> >
> > import android.app.Activity;
> > import android.os.Bundle;
> > import android.widget.TextView;
> >
> > public class androidNativeRest extends Activity {
> >
> > /** Called when the activity is first created. */
> > public void onCreate(Bundle savedInstanceState) {
> >
> > super.onCreate(savedInstanceState);
> >
> > TextView tv = new TextView(this);
> >
> > String res="nada";
> >
> > DefaultHttpClient httpclient = new DefaultHttpClient();
> >
> > httpclient.getCredentialsProvider().setCredentials(
> > new AuthScope("10.0.2.2", 443),
> > new UsernamePasswordCredentials("user", "pass"));
> >
> > BasicHttpContext localcontext = new BasicHttpContext();
> >
> > // Generate BASIC scheme object and stick it to the local
> > // execution context
> > BasicScheme basicAuth = new BasicScheme();
> > localcontext.setAttribute("preemptive-auth", basicAuth);
> >
> > // Add as the first request interceptor
> > httpclient.addRequestInterceptor(new PreemptiveAuth(), 0);
> >
> > HttpHost targetHost = new HttpHost("10.0.2.2", 443, "https");
> >
> > HttpGet httpget = new HttpGet("/resources/resource1.xml");
> >
> > res+="executing request: " + httpget.getRequestLine()+"/ln";
> > res+="to target: " + targetHost+"/ln";
> > //--TRUST MANAGER---
> > //Create a trust manager that does not validate certificate
> chains
> > TrustManager[] trustAllCerts = new TrustManager[]{
> > new X509TrustManager() {
> > public java.security.cert.X509Certificate[]
> > getAcceptedIssuers() {
> > return null;
> > }
> > public void checkClientTrusted(
> > java.security.cert.X509Certificate[] certs,
> String
> > authType) {
> > }
> > public void checkServerTrusted(
> > java.security.cert.X509Certificate[] certs,
> String
> > authType) {
> > }
> >  

[android-developers] Re: device fingerprinting

2010-11-02 Thread ryandroid
It is interesting to know that ANDROID_ID isn't unique, it is more
interesting to know that Google did not set out a requirement to make
this unique, and now making the world being so complicated.




On Oct 31, 6:01 am, DanH  wrote:
> Well, there's the IMEI, the IMSI, and the ANDROID_ID.  Alas, the
> ANDROID_ID isn't unique (and is in fact identical on many Droid2
> units).
>
> On Oct 30, 12:41 pm, bagelboy  wrote:
>
>
>
> > Hello Devs,
>
> > I'm working on an LVL implementation and I want to use as many
> > different device identifiers as I can. I have considered using IMEI
> > numbers but I've discarded that because a) it's intrusive and b) not
> > all devices will have them.
>
> > What might I use to fingerprint a phone for license verification?
>
> > As an aside, how have your experiences with LVL been so far? Any
> > pitfalls? I'm not asking for anyone to share their implementation
> > details as that would give the hackers ideas.
>
> > -BB- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: Playing default ringtone with SoundPool or MediaPlayer

2010-11-02 Thread Kyle
Wound up finding a much better way of doing this. Someone turned onto
an easy way to use MediaPlayer for this function:

MediaPlayer ring =
MediaPlayer.create(this,Settings.System.DEFAULT_RINGTONE_URI);
ring.prepare();
ring.start();

-- 
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


Re: [android-developers] Re: SSLContext.getInstance("SSL") throws java.security.NosuchAlgorithmException: SSLContext SSL implementation not found

2010-11-02 Thread gato chlr
somebody?

On 1 November 2010 15:04, gato chlr  wrote:

> DanH , thanks for the answer, i have read about TLS, and now i know it is a
> SSLv3.
>
> I have tried with TLS , and it works! but, then i get a
> javax.net.ssl.SSLException: Not Trusted server certificate. So it seems that
> my know my dummy trustManager is not working :S. the exception occurs in the
> instruction :
>
>
> HttpResponse response = httpclient.execute(targetHost, httpget,
> localcontext);
>
>  I have changed the value "SSL" to "TLS" in my desktop (not for android)
> and it work fine. But in my android application (this one) it throws that
> exception.
>
> Maybe my trustManager does not works in Android, if anybody has a code or
> solution to fix this problem i will really appreciate
>
> thank for the answers
>
>
> On 1 November 2010 14:37, DanH  wrote:
>
>> Have you tried "TLS"?
>>
>> On Nov 1, 9:29 am, gato chlr  wrote:
>> > Hi list,
>> >
>> > i want to implement a client for https, all in my localhost (in my
>> apache,
>> > it is configured to ask authentication), with a resource "
>> https://localhost:443/resources/resource1.xml";
>> > the server works fine.
>> >
>> > I have a client for desktop, and it works fine, the resources are
>> consumed
>> > using httpcomponents-client-4.0.3), i have readed that Android uses that
>> > version.
>> >
>> > This is the code of my client in Android (practically is the same of
>> desktop
>> > mapped to android) ,
>> >
>> > in the line of   SSLContext sc = SSLContext.getInstance("TSL"); the next
>> > exception is thrown :
>> >
>> > java.security.NosuchAlgorithmException: SSLContext SSL implementation
>> not
>> > found
>> >
>> > Please does anybody know how to solve this issue?
>> >
>> > i have tried with TSL and the exception continue.
>> >
>> > import java.io.IOException;
>> >
>> > import javax.net.ssl.HttpsURLConnection;
>> > import javax.net.ssl.SSLContext;
>> > import javax.net.ssl.TrustManager;
>> > import javax.net.ssl.X509TrustManager;
>> >
>> > import org.apache.http.HttpEntity;
>> > import org.apache.http.HttpException;
>> > import org.apache.http.HttpHost;
>> > import org.apache.http.HttpRequest;
>> > import org.apache.http.HttpRequestInterceptor;
>> > import org.apache.http.HttpResponse;
>> > import org.apache.http.auth.AuthScheme;
>> > import org.apache.http.auth.AuthScope;
>> > import org.apache.http.auth.AuthState;
>> > import org.apache.http.auth.Credentials;
>> > import org.apache.http.auth.UsernamePasswordCredentials;
>> > import org.apache.http.client.CredentialsProvider;
>> > import org.apache.http.client.methods.HttpGet;
>> > import org.apache.http.client.protocol.ClientContext;
>> > import org.apache.http.impl.auth.BasicScheme;
>> > import org.apache.http.impl.client.DefaultHttpClient;
>> > import org.apache.http.protocol.BasicHttpContext;
>> > import org.apache.http.protocol.ExecutionContext;
>> > import org.apache.http.protocol.HttpContext;
>> > import org.apache.http.util.EntityUtils;
>> >
>> > import android.app.Activity;
>> > import android.os.Bundle;
>> > import android.widget.TextView;
>> >
>> > public class androidNativeRest extends Activity {
>> >
>> > /** Called when the activity is first created. */
>> > public void onCreate(Bundle savedInstanceState) {
>> >
>> > super.onCreate(savedInstanceState);
>> >
>> > TextView tv = new TextView(this);
>> >
>> > String res="nada";
>> >
>> > DefaultHttpClient httpclient = new DefaultHttpClient();
>> >
>> > httpclient.getCredentialsProvider().setCredentials(
>> > new AuthScope("10.0.2.2", 443),
>> > new UsernamePasswordCredentials("user", "pass"));
>> >
>> > BasicHttpContext localcontext = new BasicHttpContext();
>> >
>> > // Generate BASIC scheme object and stick it to the local
>> > // execution context
>> > BasicScheme basicAuth = new BasicScheme();
>> > localcontext.setAttribute("preemptive-auth", basicAuth);
>> >
>> > // Add as the first request interceptor
>> > httpclient.addRequestInterceptor(new PreemptiveAuth(), 0);
>> >
>> > HttpHost targetHost = new HttpHost("10.0.2.2", 443, "https");
>> >
>> > HttpGet httpget = new HttpGet("/resources/resource1.xml");
>> >
>> > res+="executing request: " + httpget.getRequestLine()+"/ln";
>> > res+="to target: " + targetHost+"/ln";
>> > //--TRUST MANAGER---
>> > //Create a trust manager that does not validate certificate
>> chains
>> > TrustManager[] trustAllCerts = new TrustManager[]{
>> > new X509TrustManager() {
>> > public java.security.cert.X509Certificate[]
>> > getAcceptedIssuers() {
>> > return null;
>> > }
>> > public void checkClientTrusted(
>> > java.security.cert.X509Certificate[] certs,
>> String
>> > authType) {
>> >  

[android-developers] Re: LVL advice in the Android Developer Blog

2010-11-02 Thread Zsolt Vasvari
So basically the advice given the blog is impossible to achive (or NP-
Complete)?



On Nov 2, 9:09 am, cybice  wrote:
> But, no 100% probability that this method find something :-)
> But :-) i think CRC32 is not a good hash function so probability to
> find solution is not zero
>
> On Nov 2, 3:45 am, cybice  wrote:
>
>
>
> > Another way :-)
>
> > while(CALC_CRC(compiled_code)!=CRC)
> > {
> >   CRC = CRC++;
> >   InjectCRCIntoSource(CRC);
> >   Compile();
>
> > }
>
> > On Nov 1, 10:50 am, Zsolt Vasvari  wrote:
>
> > > Under the part "Make your application temper-resistant" Tim Bray
> > > advises:
>
> > > "The most obvious mechanism is to use a lightweight hash function,
> > > such as CRC32, and build a hash of your application’s code. You can
> > > then compare this checksum with a known good value. You can find the
> > > path of your application’s files by calling
> > > context.GetApplicationInfo() — just be sure not to compute a checksum
> > > of the file that contains your checksum! "
>
> > > It's the last part I have a problem with.  How do I compute the CRC32
> > > of the app that already contains the said CRC32?- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: Devices where install from unknown sources is not allowed.

2010-11-02 Thread SoCast ltd
The captivate is just as bad
however more experienced users can adb install to overcome this.
I feel bad for at&t users
they are always so locked down
And no 4g anytime soon. This should be a no brainer. Ditch at&t now.
Stop wasting your money.


On Nov 1, 10:37 am, MB  wrote:
> Hi,
>
> I would really appreciate if someone could point me to a list of
> devices/carriers where install from unknown sources is not allowed.
>
> For e.g. I can confirm that HTC Aria (offered by AT&T) does not allow
> install from sources other than market.
>
> Thanks,
>
> -MB.

-- 
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: Devices where install from unknown sources is not allowed.

2010-11-02 Thread loweroctave
You can't on the Captivate either.  I believe it's just AT&T that has
blocked this feature in the US.

On Nov 1, 2:43 pm, MB  wrote:
> HTC Aria does not even have an option where in user can enable
> installation of apks outside market.
> AT&T/HTC has blocked it.
>
> I am looking for an explicit list of  names of such devices/carriers.
>
> On Nov 1, 11:19 am, DanH  wrote:
>
>
>
>
>
>
>
> > Any device where "Allow installation of non-Market applications" is
> > not checked.
>
> > On Nov 1, 12:37 pm, MB  wrote:
>
> > > Hi,
>
> > > I would really appreciate if someone could point me to a list of
> > > devices/carriers where install from unknown sources is not allowed.
>
> > > For e.g. I can confirm that HTC Aria (offered by AT&T) does not allow
> > > install from sources other than market.
>
> > > Thanks,
>
> > > -MB.

-- 
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] OpenGL more textures for one rect

2010-11-02 Thread AFgan
In Android OpenGL ES, I want to be able to switch textures for a given
Rectangle. I have one rect and I put two textures, depending on
different conditions. I just want to switch between textures.

I followed this code to create the textures:
http://blog.poweredbytoast.com/loading-opengl-textures-in-android but
it seems that this is only for one texture.

If I use only one texture, it renders fine, but then I don't know how
to tell the rect to use another texture (same rect, different
texture). Do I do something like "setTexture" with the ID that is
generated in loadTextures()? Do I have to have an array with texture
names (numbers) that I then change .. I just don't get it..

Help is really appreciated.

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


[android-developers] can't install Android platform 2.2 on windows vista 64 bit computer

2010-11-02 Thread jane
Hi,
I'm new for android's developing. I'm using windows vista 64 bit
computer.
 I try a couple of times run SDK manager.exe from android-sdk-windows
package, but I can't install Android platform 2.2 and android platform
2.1 version. Does that mean android 2.2 not working with windows vista
64 bit?
Did anyone have any experience for android installing on windows vista
64 bit? Thanks for any help.

Jane

-- 
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] Truncate TextView in Custom ListView

2010-11-02 Thread dinesh
Hi,

I am using Custom Listview , that contains Image View,TextView,
TextView designed using RelativeLayout.

My Issue is to truncate the second TextView  if the textview length is
longer than the width then truncate and makes ...

It is not working.

If i use TextView independently it works. How to get that  in Custom
layout.

I applied   the  following attributes to the TextView




-- 
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: Advertising network

2010-11-02 Thread Nexage
Hi Bruno,

May I suggest checking out Nexage? Here's how we enable mobile apps:
http://nexage.com/pub-and-app-developers/mobile-apps.

With our flagship product, Nexage Mediation, we provide:

   1. A single integration point to access 50+ ad sources
   2. Consolidated reporting dashboard
   3. For developers, a comprehensive SDK suite to deploy across
multiple platforms
   4. Easy, reliable payment and reconciliation

You can sign up here: http://nexage.com/contact-us

Best,

Jenn


On Oct 7, 11:30 am, Bruno Rørdam  wrote:
> Hello everyone, i want to add promotion in my app to get earn money in
> this way. What is your experience with this? whichadvertisingnetwork
> would you recommend?
>
> 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] LVL suggestion

2010-11-02 Thread Zsolt Vasvari
I just banged my head against the wall for half a day on this problem.

I moved the LVL code into my project's namespace, but the following
call in LicenseChecker.checkAccess() would fail:

boolean bindResult = mContext.bindService(new
Intent(ILicensingService.class.getName()), this,
Context.BIND_AUTO_CREATE);


May I suggest that this be changed to:

boolean bindResult = mContext.bindService(new
Intent(ILicensingService.Stub.DESCRIPTOR), this,
Context.BIND_AUTO_CREATE);

and, obviously, DESCRIPTOR made package private.

Should I file a bug report?

-- 
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] Truncate TextView in Custom ListView

2010-11-02 Thread dinesh
Hi,

I am using Custom Listview , that contains Image View,TextView,
TextView designed using RelativeLayout.

My Issue is to truncate the second TextView  if the textview length is
longer than the width then truncate and makes ...

It is not working.

If i use TextView independently it works. How to get that  in Custom
layout.

I applied   the  following attributes to the TextView




-- 
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] SIGH ... Android & SOAP

2010-11-02 Thread Darkside Android
This post is directed to those of you who may have been, are or will be
FORCED to deal with stone-age SOAP w/s and Android.

What has been the best way to consume these 7-layered nightmares?
Is there any native (non 3rd-party) support in Android?
Library recommendations (which to embrace, which to drop-it-like-its-hot,
etc)

Thx,
D.A.

-- 
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] Truncate TextView in Custom ListView

2010-11-02 Thread dinesh
Hi,

I am using Custom Listview , that contains Image View,TextView,
TextView designed using RelativeLayout.

My Issue is to truncate the second TextView  if the textview length is
longer than the width then truncate and makes ...

It is not working.

If i use TextView independently it works. How to get that  in Custom
layout.

I applied   the  following attributes to the TextView




-- 
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


Re: [android-developers] Re: glTexImage2D is too slow

2010-11-02 Thread 袁堂夫
thanks for your response, as we have data in YUV format, so we use
GL_LUMINANCE texture to transmit the YUV data to the GPU, then convert
the YUV data to RGB data in the GPU. we have found that it costs
nearly 40 ms to display a 600*300 video frame.
My question is:
1) I think the YUV to RGB convertion should not occupy the CPU time,
as it is completed in the GPU. but seems that it also blocks the CPU?
2) if the first answer is no, then transmit the 600*300 YUV data to
GPU cost 40 ms?


2010/11/2 cybice :
> Why do you need opengl for video output?
>
> glTexImage2D is really slow  - but you can improve performance of
> video app
> if render more than one video frames into one data buffer,
> so one call to glTexImage2D will pass to opengl subsystem more than
> one videoframe
> and then you can change video frames at opengl by switching texture
> coordinate attribute (see glVertexAttribPointer)
> Try another configs in config chooser it can be faster, try default
> config.
> Reduce video resolution.
> Why for VIDEO you use GL_TEXTURE_WRAP_S,  try GL_CLAMP_TO_EDGE
> Why GL_LUMINANCE - do you really need luminance texture or this way
> you say to subsystem that you need 16bit texture?
>
>
>
>
>
>
> On Oct 31, 9:13 am, 袁堂夫  wrote:
>> Hi,how are you?
>> We use Opengl 2.0 to develop a video programme on android with nexus one.
>> We find that the fuction glTexImage2D is too slow,but we write a
>> shader programme accord to  the sample GL2JNILib.
>> I guess the GPU is not working, why it happened? how to fix it?
>> help me,please.Thank you very much.
>> --some important  code---
>>VideoView(Context context)
>>{
>> super(context);
>>//   m_Activity=(hello)context;
>> m_AndroidHolder = getHolder();
>> m_AndroidHolder.addCallback(this);
>> m_AndroidHolder.setType(SurfaceHolder.SURFACE_TYPE_GPU);
>> m_AndroidHolder.setFormat(PixelFormat.RGB_565);
>> .
>> .
>> .}
>> --
>>  public void initEGL()
>>{
>>mEGL = (EGL10)EGLContext.getEGL();
>>mGLDisplay = mEGL.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
>>int[] curGLVersion = new int[2];
>>mEGL.eglInitialize(mGLDisplay, curGLVersion);
>>ConfigChooser configChooser=  new ConfigChooser(5, 6, 5, 0, 0, 0);
>>mGLConfig = configChooser.chooseConfig(mEGL,mGLDisplay);
>>mGLSurface = mEGL.eglCreateWindowSurface(mGLDisplay,
>> mGLConfig,m_View.m_AndroidHolder, null);
>>int[] attrib_list = {0x3098, 2, EGL10.EGL_NONE };
>>mGLContext = mEGL.eglCreateContext(mGLDisplay, mGLConfig,
>> EGL10.EGL_NO_CONTEXT, attrib_list);
>>mEGL.eglMakeCurrent(mGLDisplay, mGLSurface, mGLSurface, mGLContext);
>>}
>> --
>>glActiveTexture ( GL_TEXTURE0 );
>>glBindTexture ( GL_TEXTURE_2D, userData.textureId[0] );
>>glUniform1i ( userData.samplerLocY, 0);
>>
>> glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
>>
>> glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
>>glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S,
>> GL_CLAMP_TO_EDGE);
>>glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T,
>> GL_CLAMP_TO_EDGE);
>>glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, width, height, 0,
>> GL_LUMINANCE, GL_UNSIGNED_BYTE, pict->data[0]);
>
> --
> 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

-- 
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 can I hide views when the soft keyboard is up?

2010-11-02 Thread newobj
I have a pretty standard search edit widget on top / search results
list widget on bottom activity in my app. Below the results list
widget I also have my view for ads. When the soft keyboard is brought
up in this activity, I'd like to hide the view the ads are in because
they consume too much screen space. I tried making that view
android:isScrollContainer="true" but that had no effect.

So the question is, how can I ensure that certain views will be hidden
when the soft keyboard is brought up?

-- 
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 to draw dotted-line

2010-11-02 Thread 颖赖
How to draw dotted-line?
I know someone already asked this question, but i cann't find the annals.
Could you tell me how to draw it or record the message sen
Thanks for 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

Re: [android-developers] Is it possible for an app to replace the NotificationManager?

2010-11-02 Thread TreKing
On Tue, Nov 2, 2010 at 1:52 PM, ddum...@gmail.com  wrote:

> Or extend it in some way to allow for pre/post-processing of all
> notifications and additional workflow?
>

No - this is system-level functionality. There's no good reason to give an
app access / control over all other apps' notifications.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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

Re: [android-developers] Is it possible for an app to replace the NotificationManager?

2010-11-02 Thread Kumar Bibek
Nope. You cannot drop/stop any notifications generated, untill and unless
you make a custom build.

On Wed, Nov 3, 2010 at 12:22 AM, ddum...@gmail.com wrote:

> Or extend it in some way to allow for pre/post-processing of all
> notifications and additional workflow?
>
> --
> 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




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.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] Service onCreate is asynchronous

2010-11-02 Thread jotobjects
I have tried both startService() and bindService().  Both methods
return before Service.onCreate() is called.  So work I was expecting
to complete in Service.onCreate() is not done.

Is it necessary to do initialization steps in the Service
constructor?  If so what use is the Service.onCreate method?  Any
suggestions about how others handle this problem?

I found this thread which describes the problem, but the poster's
solution is not described.

http://groups.google.com/group/android-developers/browse_thread/thread/5e62acec947168e3/f8a8a8e577a57e39?lnk=gst&q=service+onCreate#f8a8a8e577a57e39

-- 
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] Is it possible for an app to replace the NotificationManager?

2010-11-02 Thread ddum...@gmail.com
Or extend it in some way to allow for pre/post-processing of all
notifications and additional workflow?

-- 
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: is there a limit for the lenght of a texview's text?

2010-11-02 Thread Kumar Bibek
Nothing is shown? Are you sure??

On Nov 2, 10:32 pm, Paolo  wrote:
> No, i haven't. If I cut the same string at smaller dimension, like
> 3000 characters instead of the real lenght (4782), the textview is
> showed correctly.
>
> Why this behaviour?
>
> On 2 Nov, 17:46, TreKing  wrote:
>
> > On Tue, Nov 2, 2010 at 4:39 AM, Paolo  wrote:
> > > I've found a problem with textview when i have to show a long text in
> > > a textview into a scroolview. The text is over 4800 characters and
> > > when I have to show it the textview is empty. Nothing is showed.
>
> > Did you test with smaller sized strings? Do you have the same problem?
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices

-- 
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 Tab Emulator

2010-11-02 Thread Kumar Bibek
Switch to 1.6 and add multiple screen support.

http://developer.android.com/guide/practices/screens_support.html#attrs

On Nov 2, 10:57 pm, "yves...@gmail.com"  wrote:
> Anybody here tried the Samsung Tab 
> emulator?http://innovator.samsungmobile.com/galaxyTab.do
>
> My app layout doesn't look right. I am using Relative Layout, and both
> width and height are fill_parent. But when I run this in the emulator,
> it only occupies a small portion of the screen. 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: Devices where install from unknown sources is not allowed.

2010-11-02 Thread MB
Hi Chris,

Thanks for the response. Can you please elaborate on "getting around
this using the SDK" ?

At one point Telus ( a Canadian carrier) used to do this for
blackberry devices. Users were able to get around this using Desktop
manager, which was officially supported(it still is) by RIM.

Thanks a lot once again for sharing info regarding the "Sideload
wonder machine"

Thanks,

--MB.


On Nov 1, 10:33 pm, Chris Stratton  wrote:
> From what I've heard it sounds like it's AT&T in general.
>
> Note that you can work around this using the SDK or end-user packaging
> of the same capability as the "sideload wonder machine"
>
> On Nov 1, 1:37 pm, MB  wrote:
>
>
>
> > I would really appreciate if someone could point me to a list of
> > devices/carriers where install from unknown sources is not allowed.
>
> > For e.g. I can confirm that HTC Aria (offered by AT&T) does not allow
> > install from sources other than market.
>
> > Thanks,
>
> > -MB.

-- 
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] Problem with turning off GPS updates when application goes into the background.

2010-11-02 Thread Chirag Patel
Hi I'm having a problem when trying to stop location updates when the
app goes into the background. In my onCreate() method I start request
updates like this:

LocationManager locationManager =
(LocationManager)context.getSystemService(Context.LOCATION_SERVICE);


locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
LOCATION_UPDATE_INTERVAL, LOCATION_UPDATE_DISTANCE, this);

locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
LOCATION_UPDATE_INTERVAL, LOCATION_UPDATE_DISTANCE, this);

Then in my onPause() and onDestroy() methods I request to stop the
updates like this:

LocationManager locationManager =
(LocationManager)context.getSystemService(Context.LOCATION_SERVICE);
locationManager.removeUpdates(this);

However the GPS icon remains in the status bar and the only way to get
rid of it is to manually kill the application. Am I doing anything
wrong?

Cheers

-- 
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


Re: [android-developers] WISH YOU HAPPY DIWALI

2010-11-02 Thread peeyush varshney
Dear All,

I am trying to install ubuntu inside window but i am facing some
difficulties.

1) if i install ubuntu by just clicking on webu. it is showing some error at
last.
2) if i install using boot devices.. i am not able to proceed after
selecting the partition info.(I select exist partition).

Regards,
Peeyush


On Tue, Nov 2, 2010 at 9:08 PM, subrat kumar panda <
evergreen.sub...@gmail.com> wrote:

> Thank You , Wish u Diwali 2 u also.
>
> On Tue, Nov 2, 2010 at 2:55 PM, narasimha rao 
> wrote:
> > hi,
> >
> > WISH YOU HAPPY DIWALI  ALL  MOBILE DEVELOPERS
> >
> > --
> > Thanks & Regards,
> >
> > KVL Narasimha Rao.
> > Contact No: +91 9912656178
> >
> > --
> > 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
>
> --
> 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
>



-- 
Thank & Regards
Peeyush Varshney

-- 
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   3   >