[android-developers] Re: 64bit Windows Problems

2008-11-12 Thread 心蓝
I think u can install the XP system

2008/11/12 melvin ram <[EMAIL PROTECTED]>

>
> I'm on a windows vista64 machine and i'm not able to run the emulator.
> Here's the output from the terminal:
>
>
> --
> C:\android-sdk\tools>ddms.bat
> 27:01 E/ddms: shutting down due to uncaught exception
> 27:01 E/ddms: java.lang.UnsatisfiedLinkError: C:\android-sdk\tools\lib
> \swt-win32
> -3236.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
>at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>at java.lang.ClassLoader.loadLibrary0(Unknown Source)
>at java.lang.ClassLoader.loadLibrary(Unknown Source)
>at java.lang.Runtime.loadLibrary0(Unknown Source)
>at java.lang.System.loadLibrary(Unknown Source)
>at org.eclipse.swt.internal.Library.loadLibrary(Library.java:
> 123)
>at org.eclipse.swt.internal.win32.OS.(OS.java:18)
>at org.eclipse.swt.graphics.FontData.(FontData.java:259)
>at com.android.ddms.PrefsDialog.setDefaults(PrefsDialog.java:
> 198)
>at com.android.ddms.PrefsDialog.init(PrefsDialog.java:140)
>at com.android.ddms.Main.main(Main.java:74)
>
> --
>
> I've installed JDK 32bit, Eclipse & ADT
>
> >
>


-- 
Welcome to my site about GPhone:
http://51gphone.cn
I am a GFans!!欢迎你来到我的GPhone网站!!http://51gphone.cn

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



[android-developers] Re: Any way to have two MediaRecorders recording at once?

2008-11-12 Thread Dave

I don't see a way to do that with the current API. We will be
enhancing the audio API's in a future release of the SDK.

On Nov 11, 3:14 pm, "Blake B." <[EMAIL PROTECTED]> wrote:
> Ok, I thought that may be the case.
>
> I need to create a "sliding window" effect in the recording, so that
> there is always 15 seconds of audio history recorded. I wanted to
> stair-step two 20-second recorders so that every 5 seconds I would
> delete one audio recording file when its "history" got too long, then
> restart it. In this way, there would at most be two files of 20
> seconds of audio on the SDcard and not get too large.
>
> I can concatenate two .amr recordings, but I have to indroduce a 100ms
> delay between stopping one recording and starting the next, otherwise
> I get the same "Record channel already open" error.  This delay of
> course causes a skip in the audio file where 100ms of audio is
> omitted.
>
> Since can't have two recorders recording, is there any way to:
>
> - direct the audio recording stream to multiple files?
> - buffer the audio recording so that I can manage the recording size
> in-memory?
> - other creative ideas to accomplish the "sliding window" effect?
>
> Thanks
>
> On Nov 11, 1:29 pm, Dave <[EMAIL PROTECTED]> wrote:
>
> > No, this use case is not supported.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] linker lv wants to chat

2008-11-12 Thread linker lv

I've been using Google Talk and thought you might like to try it out.
We can use it to call each other for free over the internet. Here's an
invitation to download Google Talk. Give it a try!

---

linker lv wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-83a4756011-17b0decffc-4e31739b178d25dc
You'll need to click this link to be able to chat with linker lv.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with linker lv, visit:
http://mail.google.com/mail/a-83a4756011-17b0decffc-a3327d336b

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

Gmail and Google Talk are still in beta. We're working hard to add new features
and make improvements, so we might also ask for your comments and suggestions
periodically. We appreciate your help in making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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



[android-developers] Re: Get a webpage and display it to webview

2008-11-12 Thread 心蓝
i'm also newbee in android , i want to konw the answer about this question!

2008/11/12 CharlesA <[EMAIL PROTECTED]>

>
> i'm newbee in android, i want  to get the page and display it to
> webview, i'm able to get the page content, but i'm not sure how to set
> the content to the web view.
> How do i add webview to R
>
> Any help would be appreciated.
> thanks
>
> >
>


-- 
Welcome to my site about GPhone:
http://51gphone.cn
I am a GFans!!欢迎你来到我的GPhone网站!!http://51gphone.cn

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



[android-developers] how to transport between the java application on handset with PC?

2008-11-12 Thread Linker

a java application in G1 phone(real phone)
now it must pass data to PC
i don't know how to do it?
can anyone tell me? you'd better provide a sample to me.

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



[android-developers] Re: How to send email programmatically?

2008-11-12 Thread Peli

You can find a code snippet here:
http://www.openintents.org/en/node/121

There is also a related SENDTO action which you can look up in the
documentation.

Peli
www.openintents.org

On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> Ok how would I implement the 'send form'. Do you mean that I should launch a
> web browser and use some webmail type of application hosted on a server?
> I was thinking about the Email Outbox. How can I put a simple text message
> as an email in the Outbox? I know I could do this long long ago with Palm OS
> ver3.0. Hope there is a way to do it on Android.
>
> - Sunit
>
>
>
> On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <[EMAIL PROTECTED]> wrote:
> > If you don't want to direct the user to the typical send form, then you're
> > going to have to either try and adapt an existing java based mailer to
> > android or write an SMTP client from scratch.  The SMTP standard isn't too
> > hard to implement.
>
> > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <[EMAIL PROTECTED]>wrote:
>
> >> Any ideas? Any pointers to some examples?
>
> >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <[EMAIL PROTECTED]>wrote:
>
> >>> Suppose I have an Activity which has couple of text fields - one for the
> >>> subject and one for body text.
> >>> And there is a simple Button. When user clicks the button, I wish to send
> >>> the text in the textfields via email to a predetermined email address.
> >>> How can I achieve this?
>
> >>> Sorry for being lazy and not looking up the SDK docs :)
>
> >>> PS: I have configured the EMAIL app on G1 using the Email setup steps, so
> >>> it can receive and send email from my email account.
>
> >>> --
> >>> - Sunit Katkar
> >>>http://sunitkatkar.blogspot.com/- Android OS Tutorials
>
> >> --
> >> - Sunit Katkar
> >>http://sunitkatkar.blogspot.com/- Android OS Tutorials
>
> > --
> > Andrew Burgess
>
> --
> - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Detecting activity create difference (through tab pressing or restart)

2008-11-12 Thread Huebi

I need to know if my activity has been startd by pressing the tab (so
through a tab change) or just through a restart of my application. The
OnTabChangedListener for TabHost seems to get called after my tab
content activity has been started. Is there a way to get information
about the tab change before the tab content activity is started again?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Exchange Server Support

2008-11-12 Thread Timbobsteve

Thats good news davin_. I look forward to seeing your results.

davin_thompson wrote:
> Unfortunatly... Im not very good with with java... but I'm working on
> it.  However, prepairing for this project, I have written an exchange
> webdav client in php, so I solidly have the concept. Hopefully, in a
> few days, i'll have something working in java (so far I've made it
> to a basic http request =P).  Wish me luck, and i'll share my results
>
>
>
>
>
> On Oct 17, 11:12 am, Timbobsteve <[EMAIL PROTECTED]> wrote:
>   
>> Hi Zero,
>> For what it's worth I can supply my time and effort to an Exchange 
>> client/library. From what I can see most of the opensource stuff on MAPI is 
>> limited to Exchange 2000. Most other implementations access Exchange through 
>> Outlook Web Access (OWA) + WebDAV.
>> I will read up on using WebDAV and then we can look into getting an Android 
>> WebDAV client library in place. I'm not the best programmer, but everyone 
>> starts somewhere right?
>> Cheers.
>> zero wrote:if there would be a group of developers willing to build 
>> anopensource implementation of MAPI for java, i'd be happy to contribute. 
>> but it's way to huge to tackle it alone. at least, for me. there's propably 
>> a few other ways, like webdav, to connect to exchange, but they differin 
>> stability, and clearly an opensource mapi implementation would be waymore 
>> elegant. zero openintents.org zeroblog.exu-mobile.com On Oct 17, 1:20 pm, 
>> Timbobsteve<[EMAIL PROTECTED]>wrote:Hi All, This isn't another thread asking 
>> if exchange server is supported on Android... so don't worry :P I just 
>> wanted to start a dialog with other developers about how to possibly tackle 
>> the MS Exchange support issues on Android. I'm not thebest coder in the 
>> world, so I can't really provide example code or anything, but this is more 
>> of a discussion-type thread. From what I can tell, my iPhone uses WebDAV to 
>> connect to Exchange to get mail (correct me if I'm wrong). So I started 
>> looking @ opensource 
implementations of Java WebDAV clients and came across Apache SLIDE Server and 
Client. Unfortunately Slide has been discontinued. There is not that it was 
replaced by Apache JackRabbit, but from what I can see JackRabbit is a Server 
implementationof WebDAV technologies. I was also searching for Java MAPI 
support, but a lot of the MAPI APIs for Java are closed-source and licensed... 
which is not good IMHO. What other options for exchange support do people see? 
Do you think it is a worthwhile pursuit? Do you think it will happen and will 
it be a paid-for product on AndroidMarket, or will someone make an open-source 
client? There is a lot of reading to be done on WebDAV and how it integrates 
into Exchange... so I am going to start doing some reading.Feel free to share 
your ideas and thoughts.
>> 
>
> >
>   



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



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-12 Thread Sudha

I dont know anything about the viewing that file.
I didnt try..will try soon and tell u

as far as no one tried to help me out
I thot of makinganother apk which will
uninstall ur apks..
that should search in every folder and find out is tehre any traces of
it left ..etc etc
but I dont think thats the right one

and for linkers qnI dont have the handset...

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



[android-developers] peer not authenticated while executing DefaultHttpClient httpclient

2008-11-12 Thread AnuR

Hi,
I want to submit a web page through my application.
for that I am using
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpPost Postmethod = new HttpPost("url to post");//

but on executing the httpclient, that is httpclient.execute
(Postmethod),
 I am getting an error

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated.
sometimes the submit will work without any error but most of  the time
this shows an error as follows

ErrorIOException httpPostpeer not authenticated
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates
(SSLSessionImpl.java:352)
at org.apache.http.conn.ssl.AbstractVerifier.verify
(AbstractVerifier.java:129)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket
(SSLSocketFactory.java:322)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection
(DefaultClientConnectionOperator.java:129)
at org.apache.http.impl.conn.AbstractPoolEntry.open
(AbstractPoolEntry.java:164)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open
(AbstractPooledConnAdapter.java:119)
at org.apache.http.impl.client.DefaultRequestDirector.execute
(DefaultRequestDirector.java:347)
at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:555)
at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:653)
at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:627)
at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:616)



PLease help me to solve this issue at the earliest (posting some
sample code wil be more helpful as I am new to even JAVA )

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



[android-developers] Re: Can bind service in a tabspec view activity?

2008-11-12 Thread Anthony

I get the same issue :(

On 9月27日, 下午1时49分, TuanTuan <[EMAIL PROTECTED]> wrote:
> 
> Any google engineer has notice this problem?
>
> How to get it work?
>
> On 9月24日, 下午10时13分, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
>
> > I still have the problem in v1.0.
>
> > On 12 sep, 11:54, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
>
> > > I have the same problem, I used a hack, but your workaround sounds far
> > > much better than mine so I'll try that.
>
> > > On 1 sep, 11:49, TuanTuan <[EMAIL PROTECTED]> wrote:
>
> > > > I used a workaroud to make mytabspecget the service.
>
> > > > I bind the service in tabHost, then put the IBinder in Intent by
> > > > intent.putExtra(String, IBinder);
>
> > > > thentabspeccan get the service handler
>
> > > > I am not sure if this is the correct method and if is effective.
>
> > > > Anyone has experience on this issue?
>
> > > > Thanks!
>
> > > > On 8月31日, 上午8时41分, TuanTuan <[EMAIL PROTECTED]> wrote:
>
> > > > > It is strange. I dont find the way to make it work.
>
> > > > > On 8月30日, 上午4时40分, marielisacr <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi, I have the same problem, I didn't realize what was happen till I
> > > > > > read your post, so thanks so much.
>
> > > > > > How can I do to make it works even in atabspec? Is there a way?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: "Cannot finish download. There is not enough space."

2008-11-12 Thread GasBot

Hey Guys, I figured out the problem I was having with this before.  I
had switched over to the 4GB MicroSD card that I was using in my
Kaiser so I could manually update to RC29.  For some reason, the
Android OS thought that card was set to read only (even though I
copied the file on there while it was inside the G1).  After I swapped
back to the 1GB card that came to the phone I was able to download
without a problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Where to find Jarsigner

2008-11-12 Thread atrus123

If you are still having a tough time finding it, and it isn't easily
accessible from the command line, maybe do something like this:

find / -name jarsigner

Then navigate to that directory, and run it like this ./jarsigner -
args

(won't work in Windows)

On Nov 11, 5:20 am, CM <[EMAIL PROTECTED]> wrote:
> I have checked the bin folder of my jre and it is not there.  Keytool
> is there, but no jarsigner.  I tried googling this but all I found was
> to check the bin folder.  Does anyone know where jarsigner is or know
> where I can download it from?
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

2008-11-12 Thread miguelo

Hi Luthien,

See your log in DDM perspective, but I think your problem is about
permissions, try to change it on that folder:

"adb shell chmod 777 /data/misc"

Regards, Miguel.

On Nov 12, 10:50 am, Luthien <[EMAIL PROTECTED]> wrote:
> Hi
> I have some question> - Run the following command from a shell: adb shell 
> kill -10 [pid of
> > your application]
>
> I try this command line but it doesn't generate heap dump file.
> So I generate the heap dump file via monkey
>
> > - This will generate two files on the emulator, in /data/musci. One is
> > called heap-dump-tmXX-pidXXX.hprof and the other one has the same
> > name but with the extension .hprof-head. For instance, I have
> > /data/misc/heap-dump-tm1213483064-pid4748.hprof and
> > /data/misc/heap-dump-tm1213483064-pid4748.hprof-head
>
> When I got those two file, I can't marge those file via cat command.
>
> > cat heap-dump-tm1213483064-pid4748.hprof-head
> > heap-dump-tm1213483064-pid4748.hprof > heap-profile.hprof
>
>  Can anyone help?
>
> thanks a lot
>
> Luthien
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: disable home button

2008-11-12 Thread zl25drexel

please, put that API to replace the lock screen, i will be more than
happy to use that instead of my little hack.

I am pretty sure toddler is also disguising as HOME screen because i
tried restarting the app in the onstop method, the desktop will show
up for half of a second before the app is restarted, that's clearly
not the behavior we see in toddler lock. So i think it does the same
thing.

On Nov 11, 11:33 pm, Romain Guy <[EMAIL PROTECTED]> wrote:
> Dianne explained how Toddler Lock does it, and it's very different
> from what you do. You are disguising your application as aHome
> screen, which it is NOT. And both solutions (Toddler Lock and yours)
> are shortcomings of the system that need to be (and will be) fixed. It
> is perfectly normal to provide a new sort of lock screen but we need
> to provide you with the right APIs to do it. We unfortunately could
> not do it for 1.0 and I am deeply sorry for this. But that does not
> justify doing things like your solution :)
>
>
>
> On Tue, Nov 11, 2008 at 8:02 PM, zl25drexel <[EMAIL PROTECTED]> wrote:
>
> > well i am writting a screen lock app. so i need to lock all buttons.
> > The toddler lock is one of the most popular apps in the market, and it
> > does similar trick to disable thehomebutton. so why cant i do the
> > same?
>
> > On Nov 11, 10:43 pm, hackbod <[EMAIL PROTECTED]> wrote:
> >> Oh good lord.  I forgot that API was still there.  This will be
> >> removed in a future version -- this was an old version of keeping
> >> track of preferred applications, and completely conflicts with the new
> >> better way of doing it per activity.
>
> >> On Nov 11, 7:11 pm, zl25drexel <[EMAIL PROTECTED]> wrote:
>
> >> > answering my own question again:
>
> >> > to disablehomebutton, make your activity ahomeactivity (see
> >> > samples/HOMEin the SDK) then use
> >> >  pm = getPackageManager();
> >> >  pm.addPackageToPreferred(getPackageName());
>
> >> > in your activity's oncreate() method to make yourhomeactivity the
> >> > preferredhomeactivity, that way your app will stay on when thehome
> >> >buttonis pressed by the user.
>
> >> > remember remove that preference when your activity is stopped.
>
> >> > On Nov 11, 10:10 pm,zl25drexel<[EMAIL PROTECTED]> wrote:
>
> >> > > answering my own question again:
>
> >> > > todisablehomebutton, make your activity ahomeactivity (see
> >> > > samples/HOMEin the SDK) then use
> >> > >  pm = getPackageManager();
> >> > >  pm.addPackageToPreferred(getPackageName());
>
> >> > > in your activity's oncreate() method to make yourhomeactivity the
> >> > > preferredhomeactivity, that way your app will stay on when 
> >> > > thehomebuttonis pressed by the user.
>
> >> > > remember remove that preference when your activity is stopped.
>
> >> > > Jay
>
> >> > > On Nov 11, 12:33 pm, hackbod <[EMAIL PROTECTED]> wrote:
>
> >> > > > It didn't, it is a huge hack where it restarts itself when the user
> >> > > > tries to leave it.  It's a cute hack for the toddler lock, but far
> >> > > > from something any normal application should do.  (And seriously, the
> >> > > > system -should- detect this and kill an app that is doing it.  I 
> >> > > > would
> >> > > > consider the fact that toddler lock can do this to be a bug in the
> >> > > > system.)
>
> >> > > > On Nov 11, 8:33 am,zl25drexel<[EMAIL PROTECTED]> wrote:
>
> >> > > > > anyone?
>
> >> > > > > On Nov 10, 9:53 pm,zl25drexel<[EMAIL PROTECTED]> wrote:
>
> >> > > > > > so how did the toddlers lockdisablethehomebutton?
>
> >> > > > > > On Nov 10, 9:41 pm, Romain Guy <[EMAIL PROTECTED]> wrote:
>
> >> > > > > > > Not if the app starts on boot. (You can always boot in safe 
> >> > > > > > > mode but
> >> > > > > > > still... it's annoying.)
>
> >> > > > > > > TheHomekey is the best way for the user to go back to a 
> >> > > > > > > familiar
> >> > > > > > > place. That's why pressingHometwice, no matter where you are, 
> >> > > > > > > will
> >> > > > > > > always take you back to the center screen onHome'sdesktop.
>
> >> > > > > > > On Mon, Nov 10, 2008 at 6:26 PM,zl25drexel<[EMAIL PROTECTED]> 
> >> > > > > > > wrote:
>
> >> > > > > > > > you only need to restart the phone.
>
> >> > > > > > > > On Nov 10, 8:51 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> >> > > > > > > >>zl25drexelwrote:
> >> > > > > > > >> > why is making the screen lock actually lock evil?
>
> >> > > > > > > >> 1. If the app has a bug, and won't "unlock", the user is 
> >> > > > > > > >> hosed
>
> >> > > > > > > >> 2. If the app is malicious, and won't "unlock", the user is 
> >> > > > > > > >> hosed
>
> >> > > > > > > >> The Google team has tried to minimize any chance of a rogue 
> >> > > > > > > >> application
> >> > > > > > > >> causing problems, particularly permanent ones. This 
> >> > > > > > > >> approach has
> >> > > > > > > >> trade-offs; making it difficult todisablethehomebuttonis 
> >> > > > > > > >> one of those.
>
> >> > > > > > > >> --
> >> > > > > > > >> Mark Murphy (a Commons Guy)http://commonsware.com

[android-developers] where's the youtubeviewer's source code?

2008-11-12 Thread [EMAIL PROTECTED]

why cannt i find it in the android's source code? Is it not
opensourced? Did anyone know how to play flv in android?

thanks.


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



[android-developers] Relative view size or fixed aspect ratio

2008-11-12 Thread brs

Is there a simple way for a view to have a fixed aspect ratio - E.g.

android:width="FILL_PARENT"
android:height=

Or is there a way to specify for a view to take up some fixed size,
relative to the available screen size, e.g. width = 50% of screen
width, height=25% or screen height?

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



[android-developers] Re: where's the youtubeviewer's source code?

2008-11-12 Thread Jean-Baptiste Queru

Google's Youtube application isn't part of the Android platform and
hasn't been open-sourced.

JBQ

On Wed, Nov 12, 2008 at 6:48 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> why cannt i find it in the android's source code? Is it not
> opensourced? Did anyone know how to play flv in android?
>
> thanks.
>
>
> >
>

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



[android-developers] Re: Text to Speech lib from Android Market

2008-11-12 Thread plusminus

Any new information on a working TTS solution?

On Nov 12, 8:01 am, Nanard <[EMAIL PROTECTED]> wrote:
> I needTTSlib also.
> Once this lib is available the Android Market could have another
> killer-application, and Google another reason to get $$.
>
> So, Google team : please provide such API/lib  :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Relative view size or fixed aspect ratio

2008-11-12 Thread Mark Murphy

brs wrote:
> Is there a simple way for a view to have a fixed aspect ratio - E.g.
> 
> android:width="FILL_PARENT"
> android:height=
> 
> Or is there a way to specify for a view to take up some fixed size,
> relative to the available screen size, e.g. width = 50% of screen
> width, height=25% or screen height?

Not that I'm aware of in XML. You can do this from within your Java 
code, though.

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

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



[android-developers] Re: peer not authenticated while executing DefaultHttpClient httpclient

2008-11-12 Thread Sunit Katkar
Please refer to following examples
http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientFormLogin.java

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

Also ensure that your Android manifest xml file has the permission for using
the Internet. i.e. just after the ending
 tag you should have a line like this




Hope this helps.
- Sunit

On Wed, Nov 12, 2008 at 6:11 AM, AnuR <[EMAIL PROTECTED]> wrote:

>
> Hi,
> I want to submit a web page through my application.
> for that I am using
> DefaultHttpClient httpclient = new DefaultHttpClient();
> HttpPost Postmethod = new HttpPost("url to post");//
>
> but on executing the httpclient, that is httpclient.execute
> (Postmethod),
>  I am getting an error
>
> javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated.
> sometimes the submit will work without any error but most of  the time
> this shows an error as follows
>
> ErrorIOException httpPostpeer not authenticated
> javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
>at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates
> (SSLSessionImpl.java:352)
>at org.apache.http.conn.ssl.AbstractVerifier.verify
> (AbstractVerifier.java:129)
>at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket
> (SSLSocketFactory.java:322)
>at
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection
> (DefaultClientConnectionOperator.java:129)
>at org.apache.http.impl.conn.AbstractPoolEntry.open
> (AbstractPoolEntry.java:164)
>at org.apache.http.impl.conn.AbstractPooledConnAdapter.open
> (AbstractPooledConnAdapter.java:119)
>at org.apache.http.impl.client.DefaultRequestDirector.execute
> (DefaultRequestDirector.java:347)
>at org.apache.http.impl.client.AbstractHttpClient.execute
> (AbstractHttpClient.java:555)
>at org.apache.http.impl.client.AbstractHttpClient.execute
> (AbstractHttpClient.java:653)
>at org.apache.http.impl.client.AbstractHttpClient.execute
> (AbstractHttpClient.java:627)
>at org.apache.http.impl.client.AbstractHttpClient.execute
> (AbstractHttpClient.java:616)
>
>
>
> PLease help me to solve this issue at the earliest (posting some
> sample code wil be more helpful as I am new to even JAVA )
>
> Thanks and regds
> ANU R
> >
>


-- 
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials

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



[android-developers] Re: How to send email programmatically?

2008-11-12 Thread Sunit Katkar
Thank you. I will try this.

On Wed, Nov 12, 2008 at 12:44 AM, Peli <[EMAIL PROTECTED]> wrote:

>
> You can find a code snippet here:
> http://www.openintents.org/en/node/121
>
> There is also a related SENDTO action which you can look up in the
> documentation.
>
> Peli
> www.openintents.org
>
> On Nov 12, 8:52 am, "Sunit Katkar" <[EMAIL PROTECTED]> wrote:
> > Ok how would I implement the 'send form'. Do you mean that I should
> launch a
> > web browser and use some webmail type of application hosted on a server?
> > I was thinking about the Email Outbox. How can I put a simple text
> message
> > as an email in the Outbox? I know I could do this long long ago with Palm
> OS
> > ver3.0. Hope there is a way to do it on Android.
> >
> > - Sunit
> >
> >
> >
> > On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess <[EMAIL PROTECTED]>
> wrote:
> > > If you don't want to direct the user to the typical send form, then
> you're
> > > going to have to either try and adapt an existing java based mailer to
> > > android or write an SMTP client from scratch.  The SMTP standard isn't
> too
> > > hard to implement.
> >
> > > On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar <[EMAIL PROTECTED]
> >wrote:
> >
> > >> Any ideas? Any pointers to some examples?
> >
> > >> On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar <[EMAIL PROTECTED]
> >wrote:
> >
> > >>> Suppose I have an Activity which has couple of text fields - one for
> the
> > >>> subject and one for body text.
> > >>> And there is a simple Button. When user clicks the button, I wish to
> send
> > >>> the text in the textfields via email to a predetermined email
> address.
> > >>> How can I achieve this?
> >
> > >>> Sorry for being lazy and not looking up the SDK docs :)
> >
> > >>> PS: I have configured the EMAIL app on G1 using the Email setup
> steps, so
> > >>> it can receive and send email from my email account.
> >
> > >>> --
> > >>> - Sunit Katkar
> > >>>http://sunitkatkar.blogspot.com/- Android OS Tutorials
> >
> > >> --
> > >> - Sunit Katkar
> > >>http://sunitkatkar.blogspot.com/- Android OS Tutorials
> >
> > > --
> > > Andrew Burgess
> >
> > --
> > - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials
> >
>


-- 
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials

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



[android-developers] Re: Does SoundPool work or has anyone successfully used it?

2008-11-12 Thread plusminus

HI Dave,

I was using (Note: inside runOnUIThread(...)):
###
final MediaPlayer mp = MediaPlayer.create(MyActivity.this,
R.raw.some_sound);
mp.setVolume(10, 10);
mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
###
Is it that what you meant?
Using that I can't hear anything. leaving out the last two lines
everything is really silent!

The funny thing is that other files, that have the same volume on the
pc, play with correct volume. :/
(there I am just using: MediaPlayer.create(MyActivity.this,
R.raw.some_sound).start(); )

Best Regards,
Nicolas

On Nov 11, 2:24 pm, Dave <[EMAIL PROTECTED]> wrote:
> By default, the MediaPlayer volume should be set to 1.0, i.e. no
> attenuation.
>
> Which stream type are you using when you create the MediaPlayer? Have
> you checked to make sure that the master stream volume is set
> correctly?
>
> On Nov 11, 10:10 am, plusminus <[EMAIL PROTECTED]> wrote:
>
> > Thx for the code but I have that onCompletion working with the
> > MediaPlayer already.
> > The problem actually is that the volume is s silent on some files
> > (even after volume-normalizing them).
>
> > Does anyone which values to choose, calling the following method on a
> > MediaPlayer:
> > --
> > setVolume(float leftVolume, float rightVolume)
> >         Sets the volume on this player.
> > --
> > I was using 10, as that had been returned once from
> > mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);
>
> >SoundPoolis playing them in the proper loudness. :(
> > But using an unstable API is not what I'd like to do :(
>
> > On Nov 11, 9:43 am, Robert Green <[EMAIL PROTECTED]> wrote:
>
> > > Here's an example for managing sounds that will be played many times
> > > (like gunshots, explosions, clicks, etc) using a pool and then sounds
> > > that are just one-offs, like an announcer or an intro sound.
>
> > > public class MediaPlayerPool {
> > >         private static final String TAG = "MediaPlayerPool";
>
> > >         private Context context;
> > >         private int streamType;
>
> > >         private HashMap> pools;
>
> > >         public MediaPlayerPool(Context context, int streamType) {
> > >                 this.context = context;
> > >                 this.streamType = streamType;
> > >                 pools = new HashMap>();
> > >         }
>
> > >         public boolean hasMedia(int resourceId) {
> > >                 return pools.keySet().contains(resourceId);
> > >         }
>
> > >         public void addMedia(int resourceId, int poolSize) {
> > >                 ArrayList pool = pools.get(resourceId);
> > >                 if (pool == null) {
> > >                         pool = new ArrayList();
> > >                 }
> > >                 for (int i = 0; i < poolSize; i++) {
> > >                         pool.add(createMediaPlayer(resourceId));
> > >                 }
> > >                 pools.put(resourceId, pool);
> > >         }
>
> > >         public void playMedia(int resourceId) {
> > >                 ArrayList pool = pools.get(resourceId);
> > >                 MediaPlayer player = null;
> > >                 if (pool.size() > 0) {
> > >                         player = pool.remove(0);
> > >                 }
> > >                 if (player == null) {
> > >                         Log.e(TAG, "Pool is empty for resource " + 
> > > resourceId);
> > >                 } else {
> > >                         player.start();
> > >                 }
> > >         }
>
> > >         public void release() {
> > >                 for (Integer key : pools.keySet()) {
> > >                         ArrayList pool = pools.get(key);
> > >                         for (MediaPlayer player : pool) {
> > >                                 if (player.isPlaying()) {
> > >                                         player.stop();
> > >                                 }
> > >                                 player.release();
> > >                         }
> > >                         pool.clear();
> > >                 }
> > >                 pools.clear();
> > >         }
>
> > >         private MediaPlayer createMediaPlayer(final int resourceId) {
> > >                 MediaPlayer mp = MediaPlayer.create(context, resourceId);
> > >                 mp.setOnCompletionListener(new 
> > > MediaPlayer.OnCompletionListener() {
> > >                         public void onCompletion(MediaPlayer player) {
> > >                                 player.seekTo(0);
> > >                                 returnToPool(resourceId, player);
> > >                         }
> > >                 });
> > >                 mp.setAudioStreamType(streamType);
> > >                 return mp;
> > >         }
>
> > >         private void returnToPool(int resourceId, MediaPlayer player) {
> > >                 ArrayList pool = pools.get(new 
> > > Integer(resourceId));
> > >                 pool.add(player);
> > >         }
>
> > > }
>
> > > public class MediaPlayerSoundMana

[android-developers] Re: Drawing a circle outline? (not a filled circle)

2008-11-12 Thread Peli

Have you tried paint.setStyle(Paint.Style.STROKE) ?

Peli

On Nov 12, 3:56 pm, Mark Wyszomierski <[EMAIL PROTECTED]> wrote:
> Hi,
>
> How can we draw a circle outline in an Overlay? I keep getting a
> filled circle with the following code:
>
>     Path outline = new Path();
>     outline.addCircle(150, 150, 100, Path.Direction.CW);
>
>     Paint paint = new Paint();
>     paint.setColor(0xFF);
>     paint.setAlpha(255);
>     paint.setStrokeWidth(1.0f);
>
>     canvas.drawPath(outline, paint);
>
> I  was kind of expecting it to just be the outline of the circle, not
> filled,
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Popup Menu Over Dialogs

2008-11-12 Thread Timbobsteve

Hi Obi,

The "Popup over a dialog" is just a theme that you apply to a new 
activity. Most of the Google apps on Android use new activities (e.g. 
hold down on an e-mail to bring up the "reply / delete" options menu). 
The pop-up dialogue is still implemented as an activity.

Hope that helps.

Timbobsteve

obi wrote:
> So I asked this over in the beginner forum and no one seemed to have
> an answer for me.  Does anyone know how to have a menu pop up over a
> dialog?  The documentation seems to imply that it is possible, but,
> being new to all of this, I don't quite know what to do from their
> short description.
>
> public boolean onCreateOptionsMenu(Menu menu)
> It is usually safe to proxy this call to the owner activity's
> onCreateOptionsMenu(Menu) if the client desires the same menu for this
> Dialog.
>
> Can someone help me understand what this means?
>
> Thanks!
>
> >
>   

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



[android-developers] Re: Best approach to fullscreen video?

2008-11-12 Thread jean-guys

Thanks for the reply!  This is good info.  It may be that the b-frames
are causing the problem, I'll make sure the H264 video is baseline (I
didn't do the encoding myself so not sure at this point) and try using
a MP4 container.

Regarding the video size, would a 320x480 resolution video be beyond
the "max" since the vertical resolution exceeds 320?  Our app is
intended to run in the portrait (i.e. slide closed) mode and hence we
encoded the video at 320x480.  If we were to reencode at 480x320 with
rotated frames how would we accomplish this from the VideoView?

Lastly an observation that as  more devices with differing screen
aspect rations appear full screen video would seem to become an
exercise in packaging multiple videos simply to get a fullscreen
experience on each.  I hope this changes in the future.

Again, thanks for the informative response.

On Nov 11, 11:46 am, Dave <[EMAIL PROTECTED]> wrote:
> The following are for the T-Mobile G1, other Android devices will
> likely have different specs based on their hardware capabilities:
>
> H.264 AVC baseline, H.263, and MPEG4-SP codecs are supported in a 3GPP
> container file. H.264 AVC is also supported in an MP4 container.
>
> The H.264 AVC format is preferred due to support for h/w acceleration.
> Video size up to 480x320, with video bit rates up to 600K bps average.
> Make sure you disable b-frames (not supported in baseline).
>
> VideoView adjusts the surface size based on the reported aspect ratio
> from the video. If you want it to fill the display, make sure that the
> video aspect ratio matches the screen aspect ratio.
>
> On Nov 10, 6:42 pm, jean-guys <[EMAIL PROTECTED]> wrote:
>
> > Our app has a simple 3 second intro video that plays the first time
> > the app is launched. So far we've experienced two issues with this.
>
> > The first is that we seem to be limited to H263 video in a 3GP
> > container at "standard" resolutions (i.e. 352x288).  H264 video
> > doesn't play at all in a 3GP container.  Is there a published list of
> > supported video codec and container combinations?
>
> > The second is that we can't get the VideoView to fill the screen in
> > the case that the source video does not exactly match the device
> > screen.  We'd like to be able to programatically determine the optimum
> > video dimensions and have the video player scale appropriately.
> > Setting the VideoView to FILL_PARENT works fine until the video starts
> > playing, at which time the VideoView is resized to the video
> > dimensions.
>
> > Is there an equivalent to a setWidth and setHeight that will stick?
>
> > This is our simple layout:
>
> > 
> > http://schemas.android.com/apk/res/
> > android"
> >               android:orientation="vertical"
> >               android:layout_width="fill_parent"
> >               android:layout_height="fill_parent">
>
> >      >                android:layout_gravity="center"
> > android:layout_width="fill_parent" android:layout_height="fill_parent"
> >                android:minHeight="480">
> >     
>
> > 
>
> > Tried with and without the minHeight and the results appear identical.
>
> > Help?  Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: bug number ?

2008-11-12 Thread Al Sutton

According to C-Net it's been classed as a security bug and therefore 
isn't publicly visible;

http://news.cnet.com/8301-1009_3-10094102-83.html?tag=newsLeadStoriesArea.0

"After the report 
 of the 
root-console bug that would cause a G1 phone to reboot if a user simply 
typed "reboot" , 
Google's Dan Morrill added a note, "Marking as security problem, which 
will hide this issue until the fix is public," though it wasn't actually 
hidden."

Al.

Badri Narayanan Sugavanam wrote:
>
> Can some body point me to the bug number from google bug repo for the 
> below bug.I was not able to track it on the bug repo
>
> http://www.intomobile.com/2008/11/09/crazy-android-bug-interprets-text-entries-as-system-commands.html
> -- 
> Thanks
> -Badri
>
>
> >


-- 
==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


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



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-12 Thread Michael

If you're talking about the /data/ directory on the handset, that is
correct, you cannot look in that directory when connected via the adb
shell.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to transport between the java application on handset with PC?

2008-11-12 Thread Michael

Via what type of connection?  You could easily make a HTTP
connection...

We really need more detail about what you are trying to do.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Where to find Jarsigner

2008-11-12 Thread Nickname

Hi all,

Neither can I find jarsigner in my hard drive. I am using Win/XP.

What is it for? Is the use mandatory?

Thanks.


On Nov 12, 6:27 am, atrus123 <[EMAIL PROTECTED]> wrote:
> If you are still having a tough time finding it, and it isn't easily
> accessible from the command line, maybe do something like this:
>
> find / -name jarsigner
>
> Then navigate to that directory, and run it like this ./jarsigner -
> args
>
> (won't work in Windows)
>
> On Nov 11, 5:20 am, CM <[EMAIL PROTECTED]> wrote:
>
> > I have checked the bin folder of my jre and it is not there.  Keytool
> > is there, but no jarsigner.  I tried googling this but all I found was
> > to check the bin folder.  Does anyone know where jarsigner is or know
> > where I can download it from?
>
> > Thanks
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Does SoundPool work or has anyone successfully used it?

2008-11-12 Thread Dave

The volumes should range from 0 to 1.0, where 1.0 is maximum volume,
i.e. zero attenuation. A value of 10 should be returning an error, but
maybe it's not being passed up properly through the framework.

On Nov 12, 7:57 am, plusminus <[EMAIL PROTECTED]> wrote:
> HI Dave,
>
> I was using (Note: inside runOnUIThread(...)):
> ###
> final MediaPlayer mp = MediaPlayer.create(MyActivity.this,
> R.raw.some_sound);
> mp.setVolume(10, 10);
> mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
> ###
> Is it that what you meant?
> Using that I can't hear anything. leaving out the last two lines
> everything is really silent!
>
> The funny thing is that other files, that have the same volume on the
> pc, play with correct volume. :/
> (there I am just using: MediaPlayer.create(MyActivity.this,
> R.raw.some_sound).start(); )
>
> Best Regards,
> Nicolas
>
> On Nov 11, 2:24 pm, Dave <[EMAIL PROTECTED]> wrote:
>
> > By default, the MediaPlayer volume should be set to 1.0, i.e. no
> > attenuation.
>
> > Which stream type are you using when you create the MediaPlayer? Have
> > you checked to make sure that the master stream volume is set
> > correctly?
>
> > On Nov 11, 10:10 am, plusminus <[EMAIL PROTECTED]> wrote:
>
> > > Thx for the code but I have that onCompletion working with the
> > > MediaPlayer already.
> > > The problem actually is that the volume is s silent on some files
> > > (even after volume-normalizing them).
>
> > > Does anyone which values to choose, calling the following method on a
> > > MediaPlayer:
> > > --
> > > setVolume(float leftVolume, float rightVolume)
> > > Sets the volume on this player.
> > > --
> > > I was using 10, as that had been returned once from
> > > mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);
>
> > >SoundPoolis playing them in the proper loudness. :(
> > > But using an unstable API is not what I'd like to do :(
>
> > > On Nov 11, 9:43 am, Robert Green <[EMAIL PROTECTED]> wrote:
>
> > > > Here's an example for managing sounds that will be played many times
> > > > (like gunshots, explosions, clicks, etc) using a pool and then sounds
> > > > that are just one-offs, like an announcer or an intro sound.
>
> > > > public class MediaPlayerPool {
> > > > private static final String TAG = "MediaPlayerPool";
>
> > > > private Context context;
> > > > private int streamType;
>
> > > > private HashMap> pools;
>
> > > > public MediaPlayerPool(Context context, int streamType) {
> > > > this.context = context;
> > > > this.streamType = streamType;
> > > > pools = new HashMap>();
> > > > }
>
> > > > public boolean hasMedia(int resourceId) {
> > > > return pools.keySet().contains(resourceId);
> > > > }
>
> > > > public void addMedia(int resourceId, int poolSize) {
> > > > ArrayList pool = pools.get(resourceId);
> > > > if (pool == null) {
> > > > pool = new ArrayList();
> > > > }
> > > > for (int i = 0; i < poolSize; i++) {
> > > > pool.add(createMediaPlayer(resourceId));
> > > > }
> > > > pools.put(resourceId, pool);
> > > > }
>
> > > > public void playMedia(int resourceId) {
> > > > ArrayList pool = pools.get(resourceId);
> > > > MediaPlayer player = null;
> > > > if (pool.size() > 0) {
> > > > player = pool.remove(0);
> > > > }
> > > > if (player == null) {
> > > > Log.e(TAG, "Pool is empty for resource " + 
> > > > resourceId);
> > > > } else {
> > > > player.start();
> > > > }
> > > > }
>
> > > > public void release() {
> > > > for (Integer key : pools.keySet()) {
> > > > ArrayList pool = pools.get(key);
> > > > for (MediaPlayer player : pool) {
> > > > if (player.isPlaying()) {
> > > > player.stop();
> > > > }
> > > > player.release();
> > > > }
> > > > pool.clear();
> > > > }
> > > > pools.clear();
> > > > }
>
> > > > private MediaPlayer createMediaPlayer(final int resourceId) {
> > > > MediaPlayer mp = MediaPlayer.create(context, 
> > > > resourceId);
> > > > mp.setOnCompletionListener(new 
> > > > MediaPlayer.OnCompletionListener() {
> > > > public void onCompletion(MediaPlayer player) {
> > > > player.seekTo(0);
> > > >

[android-developers] Re: Where to find Jarsigner

2008-11-12 Thread Sunit Katkar
You have to download it if you dont have it..
Look at this tutorial too
http://www.owasp.org/index.php/Signing_jar_files_with_jarsigner


then refer this too
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware

- Sunit


On Wed, Nov 12, 2008 at 8:24 AM, Nickname <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
> Neither can I find jarsigner in my hard drive. I am using Win/XP.
>
> What is it for? Is the use mandatory?
>
> Thanks.
>
>
> On Nov 12, 6:27 am, atrus123 <[EMAIL PROTECTED]> wrote:
> > If you are still having a tough time finding it, and it isn't easily
> > accessible from the command line, maybe do something like this:
> >
> > find / -name jarsigner
> >
> > Then navigate to that directory, and run it like this ./jarsigner -
> > args
> >
> > (won't work in Windows)
> >
> > On Nov 11, 5:20 am, CM <[EMAIL PROTECTED]> wrote:
> >
> > > I have checked the bin folder of my jre and it is not there.  Keytool
> > > is there, but no jarsigner.  I tried googling this but all I found was
> > > to check the bin folder.  Does anyone know where jarsigner is or know
> > > where I can download it from?
> >
> > > Thanks
> >
> >
> >
>


-- 
- Sunit Katkar
http://sunitkatkar.blogspot.com/ - Android OS Tutorials

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



[android-developers] Re: Drawable doesn't load sometimes

2008-11-12 Thread blindfold

Interesting. In case this Android bug/feature not only applies to
input streams, this might also explain why I no longer had memory
related crashes on the G1 after recently switching to using
BitmapFactory.decodeResource(getResources() instead of getResources
().getDrawable() to retrieve background images from my resources.

Regards

On Nov 12, 5:30 am, Romain Guy <[EMAIL PROTECTED]> wrote:
> This is a known bug. Here is a workaround:
>
>                     in = new BufferedInputStream(new
> URL(getUrl(size)).openStream(),
>                             IO_BUFFER_SIZE);
>
>                     final ByteArrayOutputStream dataStream = new
> ByteArrayOutputStream();
>                     out = new BufferedOutputStream(dataStream, 
> IO_BUFFER_SIZE);
>                     copy(in, out);
>                     out.flush();
>
>                     final byte[] data = dataStream.toByteArray();
>                     bitmap = BitmapFactory.decodeByteArray(data, 0,
> data.length);

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



[android-developers] Re: Any way to have two MediaRecorders recording at once?

2008-11-12 Thread Blake B.

Thanks Dave.  I'll try to get it done with concatenating .amr files.

Also, is there any way to detect when the record channel is ready to
use again?  Right now I have to put a manual 100ms delay before doing
back-to-back recordings.  Is there an event or state I can check
instead?


On Nov 12, 2:15 am, Dave <[EMAIL PROTECTED]> wrote:
> I don't see a way to do that with the current API. We will be
> enhancing the audio API's in a future release of the SDK.
>
> On Nov 11, 3:14 pm, "Blake B." <[EMAIL PROTECTED]> wrote:
>
>
>
> > Ok, I thought that may be the case.
>
> > I need to create a "sliding window" effect in the recording, so that
> > there is always 15 seconds of audio history recorded. I wanted to
> > stair-step two 20-second recorders so that every 5 seconds I would
> > delete one audio recording file when its "history" got too long, then
> > restart it. In this way, there would at most be two files of 20
> > seconds of audio on the SDcard and not get too large.
>
> > I can concatenate two .amr recordings, but I have to indroduce a 100ms
> > delay between stopping one recording and starting the next, otherwise
> > I get the same "Record channel already open" error.  This delay of
> > course causes a skip in the audio file where 100ms of audio is
> > omitted.
>
> > Since can't have two recorders recording, is there any way to:
>
> > - direct the audio recording stream to multiple files?
> > - buffer the audio recording so that I can manage the recording size
> > in-memory?
> > - other creative ideas to accomplish the "sliding window" effect?
>
> > Thanks
>
> > On Nov 11, 1:29 pm, Dave <[EMAIL PROTECTED]> wrote:
>
> > > No, this use case is not supported.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Text to Speech lib from Android Market

2008-11-12 Thread Nanard

I need TTS lib also.
Once this lib is available the Android Market could have another
killer-application, and Google another reason to get $$.


So, Google team : please provide such API/lib  :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Signing Apps for a external testing group

2008-11-12 Thread WampBier

OK thanks for your answer ... I will send it with the development
cert.



On Nov 12, 3:22 am, hackbod <[EMAIL PROTECTED]> wrote:
> The certificate is only checked at install time, so if you create a
> certificate that expires in 60 days that only prevents that .apk from
> being installed after 60 days; any current installs will continue to
> work.
>
> And anyway, if someone wants to continue to use your app, they can
> just take your .apk, and repackage and sign its contents with their
> own certificate.
>
> I would strongly recommend against using multiple certificates, since
> if someone has the app installed with one certificate, to install
> another version with a different certificate they will need to first
> uninstall the current version, deleting all existing data.
>
> On Nov 11, 8:16 am, WampBier <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > I want to sign my application to let a group of tester install it to
> > there mobiles.
> > Is it possible to create certifications with limited time of use for
> > the test people.
>
> > Or can I use the existingsigningmethod with a  validity period  from
> > 60 days?
>
> > I need a new certification, or?
>
> > Is it possible to re-install a app with a different certification?
>
> > Or should I give them the app with the dev-certification?
>
> > Greetings
> > WampBier
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] TextView Changing Text Color

2008-11-12 Thread Peter

I'm using LinearLayout and TextView to output some text. The problem
I'm having is that I need half the text on one line to be the default
color and on the other side I want it to be green for example. Is this
possible? Again I need the text on the same line using Linearlayout.

Right now I have:

TextView tv1 = (TextView) findViewById(R.id.data);
tv1.setText(data+ data1);

I need the data1 to be green...

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



[android-developers] Re: Best approach to fullscreen video?

2008-11-12 Thread Dave

I've never tried 320x480 but it should work. The constraining factors
are the memory size (dictated by the frame size and bit rate) and the
complexity of the encoded material (typically expressed in
macroblocks).

When you say "full screen" video, do you mean that you want the video
stretched to the dimensions of the display, ignoring the aspect ratio?
The VideoView widget won't get you this, but I think you can subclass
it and override the behavior. Also, the source code is available on
source.android.com, and it's just a few hundred lines of code. You
could create your own widget with custom behavior.

On Nov 12, 7:55 am, jean-guys <[EMAIL PROTECTED]> wrote:
> Thanks for the reply!  This is good info.  It may be that the b-frames
> are causing the problem, I'll make sure the H264 video is baseline (I
> didn't do the encoding myself so not sure at this point) and try using
> a MP4 container.
>
> Regarding the video size, would a 320x480 resolution video be beyond
> the "max" since the vertical resolution exceeds 320?  Our app is
> intended to run in the portrait (i.e. slide closed) mode and hence we
> encoded the video at 320x480.  If we were to reencode at 480x320 with
> rotated frames how would we accomplish this from the VideoView?
>
> Lastly an observation that as  more devices with differing screen
> aspect rations appear full screen video would seem to become an
> exercise in packaging multiple videos simply to get a fullscreen
> experience on each.  I hope this changes in the future.
>
> Again, thanks for the informative response.
>
> On Nov 11, 11:46 am, Dave <[EMAIL PROTECTED]> wrote:
>
> > The following are for the T-Mobile G1, other Android devices will
> > likely have different specs based on their hardware capabilities:
>
> > H.264 AVC baseline, H.263, and MPEG4-SP codecs are supported in a 3GPP
> > container file. H.264 AVC is also supported in an MP4 container.
>
> > The H.264 AVC format is preferred due to support for h/w acceleration.
> > Video size up to 480x320, with video bit rates up to 600K bps average.
> > Make sure you disable b-frames (not supported in baseline).
>
> > VideoView adjusts the surface size based on the reported aspect ratio
> > from the video. If you want it to fill the display, make sure that the
> > video aspect ratio matches the screen aspect ratio.
>
> > On Nov 10, 6:42 pm, jean-guys <[EMAIL PROTECTED]> wrote:
>
> > > Our app has a simple 3 second intro video that plays the first time
> > > the app is launched. So far we've experienced two issues with this.
>
> > > The first is that we seem to be limited to H263 video in a 3GP
> > > container at "standard" resolutions (i.e. 352x288).  H264 video
> > > doesn't play at all in a 3GP container.  Is there a published list of
> > > supported video codec and container combinations?
>
> > > The second is that we can't get the VideoView to fill the screen in
> > > the case that the source video does not exactly match the device
> > > screen.  We'd like to be able to programatically determine the optimum
> > > video dimensions and have the video player scale appropriately.
> > > Setting the VideoView to FILL_PARENT works fine until the video starts
> > > playing, at which time the VideoView is resized to the video
> > > dimensions.
>
> > > Is there an equivalent to a setWidth and setHeight that will stick?
>
> > > This is our simple layout:
>
> > > 
> > > http://schemas.android.com/apk/res/
> > > android"
> > >   android:orientation="vertical"
> > >   android:layout_width="fill_parent"
> > >   android:layout_height="fill_parent">
>
> > >  > >android:layout_gravity="center"
> > > android:layout_width="fill_parent" android:layout_height="fill_parent"
> > >android:minHeight="480">
> > > 
>
> > > 
>
> > > Tried with and without the minHeight and the results appear identical.
>
> > > Help?  Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Terminal Services Client?

2008-11-12 Thread Anders Rundgren

It seems that it might be useful to not always try to replicate the
fat-client but rather use terminal services for certain not so often
used applications.  Is there such a thing available for Android?

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



[android-developers] Re: Relative view size or fixed aspect ratio

2008-11-12 Thread Peli

For the latter case you could put two views, one with
layout_weight="1" and one with layout_weight="3" to have the first
fill 25% and the second fill 75%.

Peli

On Nov 12, 3:51 pm, brs <[EMAIL PROTECTED]> wrote:
> Is there a simple way for a view to have a fixed aspect ratio - E.g.
>
> android:width="FILL_PARENT"
> android:height=
>
> Or is there a way to specify for a view to take up some fixed size,
> relative to the available screen size, e.g. width = 50% of screen
> width, height=25% or screen height?
>
> Bernhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Drawing a circle outline? (not a filled circle)

2008-11-12 Thread Greg

You need the style set to STROKE as Peli mentions.  You can also use
canvas.drawCircle() directly instead of creating a path and adding a
circle to the path.  Not sure which is more efficient, but you can at
least drop 2 lines of code from your chunk there.

Greg

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



[android-developers] Drawing a circle outline? (not a filled circle)

2008-11-12 Thread Mark Wyszomierski

Hi,

How can we draw a circle outline in an Overlay? I keep getting a
filled circle with the following code:


Path outline = new Path();
outline.addCircle(150, 150, 100, Path.Direction.CW);

Paint paint = new Paint();
paint.setColor(0xFF);
paint.setAlpha(255);
paint.setStrokeWidth(1.0f);

canvas.drawPath(outline, paint);

I  was kind of expecting it to just be the outline of the circle, not
filled,

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



[android-developers] Re: Any way to have two MediaRecorders recording at once?

2008-11-12 Thread Dave

No, there's a thread that in the media server that has to exit before
the record path can be opened again. The time for this is
indeterminate, probably around 40-50 msecs nominally, but could take
longer depending on CPU load.

On Nov 12, 8:58 am, "Blake B." <[EMAIL PROTECTED]> wrote:
> Thanks Dave.  I'll try to get it done with concatenating .amr files.
>
> Also, is there any way to detect when the record channel is ready to
> use again?  Right now I have to put a manual 100ms delay before doing
> back-to-back recordings.  Is there an event or state I can check
> instead?
>
> On Nov 12, 2:15 am, Dave <[EMAIL PROTECTED]> wrote:
>
> > I don't see a way to do that with the current API. We will be
> > enhancing the audio API's in a future release of the SDK.
>
> > On Nov 11, 3:14 pm, "Blake B." <[EMAIL PROTECTED]> wrote:
>
> > > Ok, I thought that may be the case.
>
> > > I need to create a "sliding window" effect in the recording, so that
> > > there is always 15 seconds of audio history recorded. I wanted to
> > > stair-step two 20-second recorders so that every 5 seconds I would
> > > delete one audio recording file when its "history" got too long, then
> > > restart it. In this way, there would at most be two files of 20
> > > seconds of audio on the SDcard and not get too large.
>
> > > I can concatenate two .amr recordings, but I have to indroduce a 100ms
> > > delay between stopping one recording and starting the next, otherwise
> > > I get the same "Record channel already open" error.  This delay of
> > > course causes a skip in the audio file where 100ms of audio is
> > > omitted.
>
> > > Since can't have two recorders recording, is there any way to:
>
> > > - direct the audio recording stream to multiple files?
> > > - buffer the audio recording so that I can manage the recording size
> > > in-memory?
> > > - other creative ideas to accomplish the "sliding window" effect?
>
> > > Thanks
>
> > > On Nov 11, 1:29 pm, Dave <[EMAIL PROTECTED]> wrote:
>
> > > > No, this use case is not supported.- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] bug number ?

2008-11-12 Thread Badri Narayanan Sugavanam
Can some body point me to the bug number from google bug repo for the below
bug.I was not able to track it on the bug repo

http://www.intomobile.com/2008/11/09/crazy-android-bug-interprets-text-entries-as-system-commands.html
-- 
Thanks
-Badri

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



[android-developers] Re: does android phone have a IP address?

2008-11-12 Thread george_c

Possibly by use of STUN : http://tools.ietf.org/html/rfc5389

George

On Wed, Nov 12, 2008 at 3:35 PM, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> Lei wrote:
>> And the G1 (the real phone) may have a IP address. Am I right?
>
> If it can access the Internet, it has an IP address. However, that IP
> address is probably a private address, supplied either by the WiFi
> router or the carrier's data network.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 2009
> http://www.bignerdranch.com/schedule.shtml
>
> >
>

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



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

2008-11-12 Thread Luthien

Hi
I have some question
> - Run the following command from a shell: adb shell kill -10 [pid of
> your application]
I try this command line but it doesn't generate heap dump file.
So I generate the heap dump file via monkey

> - This will generate two files on the emulator, in /data/musci. One is
> called heap-dump-tmXX-pidXXX.hprof and the other one has the same
> name but with the extension .hprof-head. For instance, I have
> /data/misc/heap-dump-tm1213483064-pid4748.hprof and
> /data/misc/heap-dump-tm1213483064-pid4748.hprof-head

When I got those two file, I can't marge those file via cat command.

> cat heap-dump-tm1213483064-pid4748.hprof-head
> heap-dump-tm1213483064-pid4748.hprof > heap-profile.hprof

 Can anyone help?

thanks a lot

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



[android-developers] Re: Error while connecting to ms sql server 2005 database

2008-11-12 Thread Anders Rundgren

Have you put the msft jdbc driver in libs?

Anyway, I wouldn't go this route at all, it is better to put databases
behind web-servers and use http/SOAP for database access.
If you goal is an admin utility I would consider terminal-server
solutions so that you can use existing admin tools rather than writing
low-level replacements fpr phones.

BR
AR

On Nov 11, 6:01 am, Nataraaj <[EMAIL PROTECTED]> wrote:
> Hello guys,
>
> This is the code i wrote
>
> package com.android.DBConnection;
>
> import android.app.Activity;
> import android.app.AlertDialog;
> import android.content.Intent;
> import android.os.Bundle;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.widget.Button;
>
> import java.sql.*;
>
> public class DBConn extends Activity {
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>
>         Button button =
> (Button)findViewById(R.id.btnCheckDBConnection);
>         button.setOnClickListener(mCheckDBConnectionListener);
>     }
>
>     private OnClickListener mCheckDBConnectionListener = new
> OnClickListener()
>     {
>         public void onClick(View v)
>         {
>             // To send a result, simply call setResult() before your
>             setResult(RESULT_OK, (new
> Intent()).setAction("DBConnection!"));
>             AlertDialog.Builder Aldg = new
> AlertDialog.Builder(DBConn.this);
>             try{
>                 Aldg.setTitle("Check DB Connection");
>
> Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
>                 Connection DBConnSQL =
> DriverManager.getConnection("jdbc:sqlserver://kcp-tech-015\\SQLEXPRESS:
> 1433;DatabaseName=CafetriaManagement","sa","sa");
>
>                 if (DBConnSQL==null)
>                         Aldg.setMessage("Not Connected");
>                 else
>                         Aldg.setMessage("Connected");
>
>                         //Statement stmt=
> DBConnSQL.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
>                             //ResultSet.CONCUR_READ_ONLY)   ;
>                         //ResultSet rst = stmt.executeQuery("SELECT COUNT(*)
> FROM SALE");
>                         //while (rst.next())
>                         //{
>                         //      Aldg.setMessage(rst.getString(1));
>                         //}
>
>             } catch (Exception ex) {
>                 Aldg.setMessage("Error: " + ex);
>             } finally {
>                 Aldg.show();
>             }
>         }
>     };
>
> }
>
> On Nov 10, 10:25 pm, Michael <[EMAIL PROTECTED]> wrote:
>
>
>
> > Maybe you could provide some sample code so we can figure out what
> > you're doing?- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] XMas presents

2008-11-12 Thread Declan Shanaghy
The camera arrived! :-D wahoo.
I was thinking it might be easier if myself and mick go in on this camera
for the aul one, then ye can split a present for the aul lad.


Does that work for ye?


P.S.
What is you IM, its easier quicker than emial sometimes.

Here are mine, pick whatever one u want to use:

ICQ: 8489291
AOL: dshanaghysf
MSN: [EMAIL PROTECTED]
Yahoo: [EMAIL PROTECTED]
Google: [EMAIL PROTECTED]

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



[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-12 Thread g1bb

Thanks hackbod, that worked great.

One more question though: I'm acquiring my wakelock in an activity, as
well as attempting to release it in the OnDestroy() function of the
activity itself. Is there a good way to destroy the activity
programmatically? It doesn't appear to be done automatically from what
I could tell, unless I use Process.Kill();.

Thanks again!

On Nov 11, 2:38 pm, hackbod <[EMAIL PROTECTED]> wrote:
> Yes, for both these things, you need to hold a partial wake lock to
> keep the phone from turning off.
>
> On Nov 11, 12:02 pm, g1bb <[EMAIL PROTECTED]> wrote:
>
>
>
> > Maybe PARTIAL_WAKE_LOCK, looking at it now... interesting.
>
> > On Nov 11, 10:45 am, g1bb <[EMAIL PROTECTED]> wrote:
>
> > > Another question on this:
>
> > > Have you seen the Stopwatch application developed by Tom Taylor? I
> > > just downloaded it, and it keeps counting after the phone is put to
> > > sleep entirely. Any ideas on how he's doing that? I'm looking for that
> > > kind of functionality.
>
> > > Thanks again.
>
> > > On Nov 11, 3:51 am, hackbod <[EMAIL PROTECTED]> wrote:
>
> > > > It does wake it up, but you are going to need to hold a wake lock to
> > > > keep the device awake after your intent receiver returns.
>
> > > > On Nov 10, 11:14 pm,g1bb<[EMAIL PROTECTED]> wrote:
>
> > > > > Hello,
>
> > > > > I've been trying to use AlarmManager.RTC_WAKEUP to wake up my device
> > > > > while it's sleeping, and then play some sounds. It seems like when
> > > > > it's charging, this works fine, but when it's not, the service doesn't
> > > > > start until I hit the menu button and am presented with the lock
> > > > > screen.
>
> > > > > Also, this seems to be working fine in the emulator, but not my real
> > > > > phone.
>
> > > > > Here's the alarm scheduling:
> > > > >                   ntent intent = new Intent(Main.this, 
> > > > > OneShotAlarm.class);
> > > > >                   PendingIntent sender =
> > > > > PendingIntent.getBroadcast(Main.this, 0, intent, 0);
>
> > > > >                     // We want the alarm to go off 30 seconds from 
> > > > > now.
> > > > >                     Calendar calendar = Calendar.getInstance();
> > > > >                     
> > > > > calendar.setTimeInMillis(System.currentTimeMillis());
> > > > >                     calendar.add(Calendar.SECOND, 60);
>
> > > > >                     // Schedule the alarm!
> > > > >                     AlarmManager am =
> > > > > (AlarmManager)getSystemService(ALARM_SERVICE);
> > > > >                     am.set(AlarmManager.RTC_WAKEUP,
> > > > > calendar.getTimeInMillis(), sender);
> > > > > -
> > > > > The OneShotAlarm BroadCastReceiver:
>
> > > > > public class OneShotAlarm extends BroadcastReceiver
> > > > > {
>
> > > > >     @Override
> > > > >     public void onReceive(Context context, Intent intent)
> > > > >     {
> > > > >         Toast.makeText(context, "OneShotAlarm Broadcast invoked",
> > > > > 1000).show();
>
> > > > >           intent = new Intent(context, ServiceClassToRun.class);
>
> > > > >          context.startService(intent);
> > > > >      }
> > > > > -
> > > > > The Service:
>
> > > > > public class ServiceClassToRun extends Service {
> > > > >         protected static final int Rnd = 0;
>
> > > > >          public void onStart(Intent intent, int startId) {
> > > > >          //do some business here
> > > > >      }
> > > > > -
> > > > > And finally, my manifest:
>
> > > > >  
> > > > >  
>
> > > > > Any ideas are greatly appreciated. Has anyone else experienced this as
> > > > > well? Thanks in advance.- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-12 Thread Mark Murphy

g1bb wrote:
> Is there a good way to destroy the activity programmatically?

Call finish(). Once you return control back to Android (e.g., leave the 
on...() callback you're in), your activity should be gracefully shut 
down, including having onDestroy() called.

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

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

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



[android-developers] Re: Drawing a circle outline? (not a filled circle)

2008-11-12 Thread Mike Reed

The latter (canvas.drawCircle) his definitely more efficient, both  
from a garbage-collection p.o.v., and it gives the renderer the chance  
to take whatever shortcuts it can, since it knows what you're trying  
to draw (as opposed to an arbitrary path).


On Nov 12, 2008, at 12:34 PM, Greg wrote:


You need the style set to STROKE as Peli mentions.  You can also use
canvas.drawCircle() directly instead of creating a path and adding a
circle to the path.  Not sure which is more efficient, but you can at
least drop 2 lines of code from your chunk there.

Greg




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



[android-developers] G1 camera preview issues uncovered

2008-11-12 Thread blindfold

FYI. Two new T-Mobile G1 camera preview related issue reports have
been submitted as issue 1270 
http://code.google.com/p/android/issues/detail?id=1270
and issue 1271 http://code.google.com/p/android/issues/detail?id=1271

One is about the observation that setPreviewSize() gets asynchronously
overruled on the G1, while the other is about the observation that the
YCbCr_422_SP preview encoding is different on emulator versus G1.

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



[android-developers] how to start the default music application from my own application

2008-11-12 Thread Payal Amin
Hi All,
I want to start the default Music application which is there when you
run the emulator from my own application say "hello world".  Can anybody
tell me how can i do so?

Thanks,
Payal

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



[android-developers] Jump 'n Run Game

2008-11-12 Thread Martin Schreiber

Hi,

I am in the unlucky situation not to have a G1 phone in my hands ('m
from Europe :-( ) and so I want to ask the community if you think that
it's possible to have a Jump and Run Game on Android playing in
"landscape" mode, meaning that the screen is slided out and you control
the game with some keys on the keyboard. Or do you think because of the
small keyboard that might be not that easy for a user?

thanks
martin

Free Java Games: www.rastaduck.org


This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


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



[android-developers] Re: Simulate KeyEvent

2008-11-12 Thread Andhravaala

hi, Im using Android SDK 1.0
can you help me in how to catch key press events in my application.
I want to simulate Up,Down scroll key presses in my application.

Regards,



On Sep 22, 3:54 am, Tigers <[EMAIL PROTECTED]> wrote:
> How do I simulate a keyevent in the home screen?
> I can simulate a keyevent with "windowManager.injectKeyEvent" in my
> application, but after I send the KEYCODE_HOME(Go to Home Screen), the
> other simulate keyevent can't be sent.
> The log is as below, please help me, Thanks.
>
> 09-22 08:34:13.911: WARN/WindowManager(51): Permission denied:
> injecting key event from pid 301 uid 10016 to window Window{434b0248
> com.android.launcher/com.android.launcher.Launcher} owned by uid 10003

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



[android-developers] Add Dynamic Views on to Relative Layout

2008-11-12 Thread [EMAIL PROTECTED]

Hi,

I need an advice of a good practice for the following situation.

I have defined my Relative Layout in an XML file. What I'd like to do
is to obtain a reference from that file in Java code, perform some I/O
operations, and based on the data I get to add a few views on to the
layout eventually.

At the moment I get a NullPointerException from my Activity when I do
the following:

RelativeLayout layout = (RelativeLayout) findViewById(R.layout.l1);
setContent(layout);

Is that a wrong way of obtaining a reference of my Layout?

Thanks!

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



[android-developers] Sliding text

2008-11-12 Thread ogawa

Please can I help me?
sorry, my English is baddly.

So I asked this over in the beginner forum and no one seemed to have
an answer for me in jp.
Does anyone know how to have a Ticker massege?

I wanna get effect that is sliding text massage from the right to
leftlike a ticker or xml marquee.

Please tell me...

Thanks!

oga

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



[android-developers] 802.1x, PEAP, Campus Domain tester

2008-11-12 Thread Jolopicus

Developers! I am leading a group of students on my campus to use the
G1 to it's fullest potential. The issue now is that there is no
support/options for PEAP authentication on our campus environment. We
have some of the best wifi coverage of most campus's i've been to but
it defeats the $200 bill of the G1 if i have to rely on the edge
network.

Is there any developers I can test configs for? I'll be a tester and
can usually report back quickly.

Needed configs for campus:

- WPA
- TKIP
- 802.1 and PEAP
- AD username and Pswd

Thanks!
Jolopicus

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



[android-developers] Re: Android compilation error with Sun SDK 1.6.0 Update 10

2008-11-12 Thread George

That didn't work for me.  Solution was to get sun 1.5 jdk and use
javadoc from that with update-alternative --config javadoc.

On Oct 30, 6:17 pm, mowgli <[EMAIL PROTECTED]> wrote:
> You need to uninstall gjdoc in package manager
>
> On Oct 30, 9:21 pm, Max <[EMAIL PROTECTED]> wrote:
>
> > I am also experiencing the same problem.
>
> > make docs

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



[android-developers] Know about Android Developers

2008-11-12 Thread Catherine

...
>
...
Android Developers Interviewed, Showcased | Android Phone
Fans. It appears the Android Developers Blog has
a new feature where developers will discuss a bit
about themselves, talk about their experience ...

>>







:::
 http://www.freewebs.com/recordindstry/
:::

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



[android-developers] How to get change the SD card permissions

2008-11-12 Thread Al bundy

I've been trying to write files to the emulated sd card from the DDMS
through the "Push file to device" command but I keep getting the same
error:

"Failed to push picture1.jpg on emulator-5554: Read-only file system"

Does anybody know how I can change the permissions of the sd card?
I'm using Eclipse on Windows XP and I also tried the "adb push"
command.


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



[android-developers] Re: Getting user's phone number

2008-11-12 Thread suchita bhardwaj
Hey,can anyone tell me how to access phone number in sdk 1.0.I am getting
error in starting application. I have used permission   in manifest.I am not
able to find where problem lies.

code is:


import android.app.Activity;
import android.telephony.*;
import android.os.Bundle;
import android.content.*;
import android.widget.*;
public class getphone extends Activity {
private Context context;
private TextView tx1,tx2,tx3;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
tx1= (TextView )this.findViewById(R.id.phn_no);
tx2= (TextView )this.findViewById(R.id.imei_no);
tx3= (TextView )this.findViewById(R.id.sim_co);
TelephonyManager mTelephonyMgr =
(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
String imei = mTelephonyMgr.getDeviceId();
String phoneNumber=mTelephonyMgr.getLine1Number();
String country = mTelephonyMgr.getSimCountryIso();
System.out.print("no is "+  phoneNumber + " imei "+ imei+
"sim-country "+country );
tx1.setText(phoneNumber);
tx2.setText(imei);
tx3.setTag(country);

}
}

On Fri, Oct 24, 2008 at 3:58 AM, Danny <[EMAIL PROTECTED]> wrote:

>
> I am trying to get the user's phone number to use as UID and it seems
> to work in the emulator but not in the actual device, is it a bug or
> am I doing something wrong? My piece of code is here...
>
>TelephonyManager mTelephonyMgr =
> (TelephonyManager)
> getSystemService(Context.TELEPHONY_SERVICE);
>String phoneNum =
> mTelephonyMgr.getLine1Number();
> >
>

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



[android-developers] Re: Getting user's phone number

2008-11-12 Thread chevalier314

For what it's worth:
A SIM card has no knowledge of its own phone number. It only knows its
IMSI, which is then associated to an MSISDN by the Mobile Operator. If
you find an MSISDN (=phone number) value somewhere in the SIM card, it
is only advisory and not a value you can rely upon.

-- Chev

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



[android-developers] Free killer app idea

2008-11-12 Thread [EMAIL PROTECTED]

I can't program worth a crap, so I submit this idea to programmers of
all skill levels.

A program which uses the internal camera of the Android phone, it
scans for text or characters within the camera view and automatically
translates the characters into another language and displays it on
screen.

As an example, you're in Japan and you don't know if a sign says
'Police Station' or 'Maid Cafe' you can point your Android phone at
the sign and the phone will translate the characters into a language
you can understand.

If someone develops such an app thanks to my idea, please credit me
somewhere.  8*)

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



[android-developers] Re: How to debug the real phone G1?

2008-11-12 Thread jeka

I've enabled USB debugging, plugged the phone in, but still don't see
it as one of the devices. Am I missing a step?

Thank you.

On Oct 17, 12:53 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> You can just plug the phone in. But first you need to enable USB
> debugging in Home > Menu > Settings > Applications > Development.
>
> On Fri, Oct 17, 2008 at 1:28 AM, [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote:
>
> > Any document about it so far? I would like to see something like
> > Microsoft Activesync: just plug in the usb cable to PC, then you can
> > debug!
>
> --
> Romain Guywww.curious-creature.org

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



[android-developers] :: problem with TextSwitcher

2008-11-12 Thread Imran

 Hi All

   This is my code... i am  using  TextSwitcher i think  every
thing is fine but it is still throwing ClassCastException

switcher1 = (TextSwitcher) findViewById(R.id.switcher1);
switcher2 = (TextSwitcher) findViewById(R.id.switcher2);

switcher1.setFactory(new ViewSwitcher.ViewFactory() {
public View makeView() {
return score;
}
});

switcher2.setFactory(new ViewSwitcher.ViewFactory() {
public View makeView() {
return level;
}
});


 This is the exception

 11-12 16:54:28.093: ERROR/AndroidRuntime(1609): Caused by:
java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams

And it is occuring at

 switcher1.setFactory(new ViewSwitcher.ViewFactory() {
public View makeView() {
return score;
}
});


 can any help me out please.

Cheers,
Imran

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



[android-developers] G1 Firmware Builds only For Developers? my Demand to Google / HTC / TMobile

2008-11-12 Thread Hetal Patel

I think being a Open Source Code and Openness in Architecture, API
Google Should Ship Different Firmware for Developers, Software
Builders, Codec Programmer etc.

Better for Google / T-Mobile / HTC

   1. They can restrict Developer Device to get Back Normal Shipped
Firmware.
   2. Developer Device Activation Method can be Introduced so Once you
Activate that IMEI for Developer Edition you could get only Limited
Warranty from HTC for that IMEI.
   3. Once you load Different Firmware, company may not allow you to
Flash Normal Shipped / OTA Firmware signed by Different Signature.
   4. Developer Edition of Firmware can have Test Key or Developer Key
based Recovery Partition. But can not Erased the way we did it before.
   5. Developer firmware must be only available via SDCard Method
   6. No OTA should be given except for some killbits Urgency.
   7. Their should be Disclaimer and Agreement for Warranty Issue


Better for Developers

   1. Rather then Fighting for root this could be Straight Access to
Device
   2. No More Hacking and Exploits needed.
   3. Building Firmware, API, Services, Codes which need Root Access
can be Tested with Device rather then Emulator.
   4. Customizing OS and using it for Self and Distributing it to user
who can take risk may get easy Access to Mods.
   5. Google Should Protect Recovery Image and Boot Image from being
Flashed this will reduce Bricking Issue.

__
Hetal Patel
[EMAIL PROTECTED]

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



[android-developers] Android and openssl.

2008-11-12 Thread oZiX

Hi,
I want to write a program that will have a private user certificate
and use it to encrypt a message.

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



[android-developers] Support? Market installs not working

2008-11-12 Thread Richard III

Every time I try to install an app, it will show up in the
notification area as "install unsuccessful". Its seemed to start
happening after I got the update.

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



[android-developers] Re: G1 camera preview issues uncovered

2008-11-12 Thread [EMAIL PROTECTED]

Bug reports have been responded to. Summary:

Camera preview is actually YCbCr 420 semi-planar. Preview frame size
issues is a known bug.

On Nov 12, 10:46 am, blindfold <[EMAIL PROTECTED]> wrote:
> FYI. Two new T-Mobile G1 camera preview related issue reports have
> been submitted as issue 
> 1270http://code.google.com/p/android/issues/detail?id=1270
> and issue 1271http://code.google.com/p/android/issues/detail?id=1271
>
> One is about the observation that setPreviewSize() gets asynchronously
> overruled on the G1, while the other is about the observation that the
> YCbCr_422_SP preview encoding is different on emulator versus G1.

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



[android-developers] android porting with nfs shut dowb VM err

2008-11-12 Thread verdure

I use pxa310 ,2.6.21 kernel, use USB ether net NFS
now the logcat is below,I do not know what should do now
please help me to start the Launcher APP,thanks

W/ActivityManager(  505): ShortMsg:Main thread not allowed to quit
W/ActivityManager(  505): LongMsg:java.lang.RuntimeException: Main
thread not allowed to quit
I/Process (  542): Sending signal. PID: 542 SIG: 9
D/AndroidRuntime(  544): Shutting down VM
W/dalvikvm(  544): threadid=3: thread exiting with uncaught exception
(group=0x40010e28)
E/AndroidRuntime(  544): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  544): java.lang.RuntimeException: Main thread not
allowed to quit
E/AndroidRuntime(  544):at
android.os.MessageQueue.enqueueMessage(MessageQueue.java:177)
E/AndroidRuntime(  544):at android.os.Looper.quit(Looper.java:
171)
E/AndroidRuntime(  544):at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1622)
E/AndroidRuntime(  544):at android.os.Handler.dispatchMessage
(Handler.java:88)
E/AndroidRuntime(  544):at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime(  544):at android.app.ActivityThread.main
(ActivityThread.java:3742)
E/AndroidRuntime(  544):at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  544):at java.lang.reflect.Method.invoke
(Method.java:515)
E/AndroidRuntime(  544):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit
.java:739)
E/AndroidRuntime(  544):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
E/AndroidRuntime(  544):at dalvik.system.NativeStart.main
(Native Method)
W/ActivityManager(  505): Some application object
[EMAIL PROTECTED] tag AndroidRuntime has
 crashed, but I don't know who it .
W/ActivityManager(  505): ShortMsg:Main thread not allowed to quit
W/ActivityManager(  505): LongMsg:java.lang.RuntimeException: Main
thread not allowed to quit
I/Process (  544): Sending signal. PID: 544 SIG: 9

 
249,0-1  底端

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



[android-developers] Re: How to get change the SD card permissions

2008-11-12 Thread Justin (Google Employee)

Have you supplied an SD card image? By default the emulator does not
have an SD card. You need to use the mksdcard tool to make a card
image and the emulator's '-sdcard' option to specify what image the
emulator should use.

Cheers,
Justin
Android Team @ Google

On Nov 12, 7:10 am, Al bundy <[EMAIL PROTECTED]> wrote:
> I've been trying to write files to the emulated sd card from the DDMS
> through the "Push file to device" command but I keep getting the same
> error:
>
> "Failed to push picture1.jpg on emulator-5554: Read-only file system"
>
> Does anybody know how I can change the permissions of the sd card?
> I'm using Eclipse on Windows XP and I also tried the "adb push"
> command.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Add Dynamic Views on to Relative Layout

2008-11-12 Thread Mark Murphy

[EMAIL PROTECTED] wrote:
> At the moment I get a NullPointerException from my Activity when I do
> the following:
> 
> RelativeLayout layout = (RelativeLayout) findViewById(R.layout.l1);
> setContent(layout);
> 
> Is that a wrong way of obtaining a reference of my Layout?

Try:

setContentView(R.layout.l1);

RelativeLayout 
container=(RelativeLayout)findViewById(R.id.whatever_you_use_for_id_in_the_XML_file);

Most of the tutorials for Android will demonstrate getting Buttons or 
TextViews or whatever this way out of a loaded layout. Likewise, 
RelativeLayout is a widget, so you get a reference to it the same way.

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

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

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



[android-developers] Re: Sliding text

2008-11-12 Thread Mark Murphy

ogawa wrote:
> So I asked this over in the beginner forum and no one seemed to have
> an answer for me in jp.
> Does anyone know how to have a Ticker massege?
> 
> I wanna get effect that is sliding text massage from the right to
> leftlike a ticker or xml marquee.

Use a TranslateAnimation.

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

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

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



[android-developers] Re: Head-scratcher: NullPointerException from startActivity(ACTION_CALL)

2008-11-12 Thread dreamerBoy

New Approach ...

I have a "Hello, World"-type program.  Basically all I do is say
"Hello, World", install a useless button with a button-handler (to
forestall ANR a little), and then I attempt to make a call with the
ACTION_CALL Intent.

I am no longer attempting to start the ACTION_CALL Activity from a
Service!

I invoke the following statements inside the onResume() method of my
main "Hello, World" activity:

Uri parsedPhoneNumber = Uri.parse("tel:1234567");
Intent myIntent = new Intent(Intent.ACTION_CALL, parsedPhoneNumber);
Activity myPhoneTestActivity = new Activity();

myPhoneTestActivity.startActivityForResult(myIntent,
CALL_SETUP_ACTIVITY_ID);  <== Crashes here, NullPointer

Thus, the ACTION_CALL is now being launched as a sub-Activity.
The behavior of this code inside an Activity is the same as it is
inside a Service - it crashes at the same place with a
NullPointerException (null mInstrumentation).

Hackbod pointed out that the previous crash (mInstruction = null,
according to Activity.java) was due to the fact that onCreate was not
being called for the Activity.  So I FAKED a call to onCreate(), to
whit:

Uri parsedPhoneNumber = Uri.parse("tel:1234567");
Intent myIntent = new Intent(Intent.ACTION_CALL, parsedPhoneNumber);
Activity myPhoneTestActivity = new Activity();

==> myPhoneTestActivity.onCreate();

myPhoneTestActivity.startActivityForResult(myIntent,
CALL_SETUP_ACTIVITY_ID); <== Still crashes here but different

Of course, you're probably thinking that's not going to work and ..
you'd be right!

11-12 10:56:33.802: ERROR/test.phoneTest.PhoneTestActivity(1295):
Uncaught Exception Handler - thread: Thread[main,5,main] exception:
android.app.ActivityThread.performResumeActivity(ActivityThread.java:
2504)
11-12 10:56:33.802: ERROR/test.phoneTest.PhoneTestActivity(1295):
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:
2519)
11-12 10:56:33.802: ERROR/test.phoneTest.PhoneTestActivity(1295):
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2159)
11-12 10:56:33.802: ERROR/test.phoneTest.PhoneTestActivity(1295):
android.app.ActivityThread.access$1800(ActivityThread.java:112)
11-12 10:56:33.802: ERROR/test.phoneTest.PhoneTestActivity(1295):
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580)
11-12 10:56:33.802: ERROR/test.phoneTest.PhoneTestActivity(1295):
android.os.Handler.dispatchMessage(Handler.java:88)
11-12 10:56:33.802: ERROR/test.phoneTest.PhoneTestActivity(1295):
android.os.Looper.loop(Looper.java:123)
11-12 10:56:33.802: ERROR/test.phoneTest.PhoneTestActivity(1295):
android.app.ActivityThread.main(ActivityThread.java:3742)
11-12 10:56:33.802: ERROR/test.phoneTest.PhoneTestActivity(1295):
java.lang.reflect.Method.invokeNative(Native Method)
11-12 10:56:33.802: ERROR/test.phoneTest.PhoneTestActivity(1295):
java.lang.reflect.Method.invoke(Method.java:515)
11-12 10:56:33.802: ERROR/test.phoneTest.PhoneTestActivity(1295):
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
11-12 10:56:33.802: ERROR/test.phoneTest.PhoneTestActivity(1295):
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
11-12 11:19:19.828: ERROR/test.phoneTest.PhoneTestActivity(309):
dalvik.system.NativeStart.main(Native Method)

Error appears to be more deeply entangled in Android's inner
workings...
I was curious about how the ACTION_CALL was handled so I started doing
searches in the Android source code.

> /bin/find . -name '*.java' -print | xargs grep ACTION_CALL

Apparently, there is no code that handles this ... (checked the core
classes as well as anything having to do with phones or telephony..)

I'm asking myself now:  Is ACTION_CALL implemented at all??  Is it
implemented but just not in the Emulator??

I'm attempting to launch this new Activity with the ACTION_CALL Intent
and Android does not ~appear~ anyway, to know what to do with it.  If
that theory is true, then no wonder the Activity is crashing...

The other possibility of course, is that I am misunderstanding how to
set this up correctly.


http://schemas.android.com/apk/res/android";
  package="test.phone"
  android:versionCode="1"
  android:versionName="1.0.0">












   

















On Nov 10, 4:33 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> dreamerBoywrote:
> > However, same error.
>
> I'm somewhat skeptical that launching an activity, particularly via
> startActivityForResult(), will work from a service. I know it's in the
> API, but think about what that means: some background process can cause
> a full-fledged activity to spawn in front of the user, in the middle of
> the user doing something else? That really violates the spirit of the UI
> Android seems to be aiming for.
>
> Are you sure you want a service spawning this activity, instead of some
> other activity doing 

[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-12 Thread Mark Murphy

g1bb wrote:
> Hi Mark,
> 
> Sorry, I forgot to mention that I would like to destroy the activity
> from a different class not associated with the activity. Is that
> possible?

Provide that class with a reference to your Activity when you create it.

E.g.:

class ActivityKiller {
ActivityKiller(Activity victim) {
this.victim=victim;
}

void pussycatKillKill() {
victim.finish();
}
}

You will also need to arrange for background threads to close up shop, 
including the thread your alternate class' code is running on, if that's 
not the main UI thread.

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

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

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



[android-developers] Re: Problem with ContentResolver

2008-11-12 Thread Ernesto

Hello Dave,

I haven't found the solution yet, so I store the mp3s as video, using
the MediaStore.Video URI. As I see the only difference, that the mp3s
stored as 3gp, but works perfectly.

Br,
Ernest

On Nov 11, 12:29 pm, Thustle <[EMAIL PROTECTED]> wrote:
> I am getting exactly the same problem. I've added
> TITLE,TRACK,MIME_TYPE,SIZE,ARTIST,DATE_ADDED and DISPLAY_NAME to the
> list of content values when trying to create the record, but it still
> returns null and I still get the
>
> android.database.sqlite.SQLiteConstraintException: error code 19
>
> error.
>
> Ernest: Did you manage to find out what was wrong?
>
> Can anyone out there help?
>
> Many thanks,
> Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Head-scratcher: NullPointerException from startActivity(ACTION_CALL)

2008-11-12 Thread Mark Murphy

dreamerBoy wrote:
> Uri parsedPhoneNumber = Uri.parse("tel:1234567");
> Intent myIntent = new Intent(Intent.ACTION_CALL, parsedPhoneNumber);
> Activity myPhoneTestActivity = new Activity();

Don't do that third line. I'm surprised it even works -- I guess 
Activity isn't an abstract superclass like I would have expected.

> myPhoneTestActivity.startActivityForResult(myIntent,
> CALL_SETUP_ACTIVITY_ID);  <== Crashes here, NullPointer

Use your already-existing Activity, the one with the button.

> Thus, the ACTION_CALL is now being launched as a sub-Activity.
> The behavior of this code inside an Activity is the same as it is
> inside a Service - it crashes at the same place with a
> NullPointerException (null mInstrumentation).

Correct. myPhoneTestActivity isn't created by the Android framework.

It may be easier to think of Activity as being a plug-in to Android more 
so than a "program" in the traditional sense. Most plug-in frameworks 
don't give you fully-working plugins just by instantiating them. 
Instead, the plugins need to be wired into the overall system, code that 
frequently is done by whoever is launching the plugin itself, outside 
the bounds of the plugin's own constructors or callbacks.

> I'm attempting to launch this new Activity with the ACTION_CALL Intent
> and Android does not ~appear~ anyway, to know what to do with it.  If
> that theory is true, then no wonder the Activity is crashing...

I've only tried ACTION_DIAL recently.

However, it seems to work for this person:

http://www.androiddevelopment.org/2008/10/21/android-development-demo-dialanumber-how-to-write-your-own-very-first-android-program-made-simple/

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

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

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



[android-developers] Re: Support? Market installs not working

2008-11-12 Thread Michael

Is this an app you wrote?  I have seen this with apps when I changed
the signature on the new one... perhaps uninstall the old app first?

I had one case where I had to reinstall an old version signed with the
original certificate, then uninstall, then install the new one with my
new certificate.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Simulating a key event

2008-11-12 Thread sudheer

Do you know the key code for generating a mouse event. I can see the
codes for most of the stuff but not for a mouse click. any pointers?

Sudheer

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



[android-developers] Convert a HTML in a Image

2008-11-12 Thread Jose Cortes

I was wondering if is it possible to do this in Android:

Convert a HTML file to a Image.

Thanks

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



[android-developers] Re: Downloading File

2008-11-12 Thread Thustle

Faisal,
You should be able to save the data retrieved from the URL connection
to a FileOutputStream.

e.g:

FileOutputStream out = null;
InputStream stream = null;
File temp = null;
try {
long prod = 0l;
URL url = new URL(urlPath);
URLConnection cn = url.openConnection();
cn.connect();
stream = cn.getInputStream();
if (stream == null)  {
throw new RuntimeException("stream is null");
}
temp = new File("/sdcard/" + nameOfFile);
out = new FileOutputStream(temp);
byte buf[] = new byte[1024];
do {
int numread = stream.read(buf);
if (numread <= 0)
break;
out.write(buf, 0, numread);
prod += numread;
updateDisplay(prod, false);
} while (true);
} catch (Exception e) {
Log.e(APP_TAG, "error: " + e.getMessage(), e);
} finally {
try {
out.close();
}
catch (Exception ex) {
Log.e(APP_TAG, "error: " + ex.getMessage(), ex);
}
try {
stream.close();
}
catch (Exception ex) {
Log.e(APP_TAG, "error: " + ex.getMessage(), ex);
}
}

Oh, and make sure you've set up android.permission.READ_OWNER_DATA and
android.permission.WRITE_OWNER_DATA permissions in your
AndroidManifest.xml, of course.

Dave

On 10 Nov, 07:26, Faisal Abid <[EMAIL PROTECTED]> wrote:
> How would i Go about downloading a file and saving it to the sd card.
> I tried doing URL connection and i get the data of the file by how
> would i go about saving it now? Is there a better way then URL
> connection?
>
> Thanks, Faisal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: 802.1x, PEAP, Campus Domain tester

2008-11-12 Thread Michael

I'd love to have PEAP support.


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



[android-developers] Re: Support? Market installs not working

2008-11-12 Thread Richard III

No. This is me trying to download aps on to my G1 from the market.

On Nov 12, 1:04 pm, Michael <[EMAIL PROTECTED]> wrote:
> Is this an app you wrote?  I have seen this with apps when I changed
> the signature on the new one... perhaps uninstall the old app first?
>
> I had one case where I had to reinstall an old version signed with the
> original certificate, then uninstall, then install the new one with my
> new certificate.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to debug the real phone G1?

2008-11-12 Thread Alvin Yates

On Windows, you need to install the G1 debugger drivers.  If you are
using Eclipse, adb should pick it up when it detects the phone.

On Nov 12, 6:32 am, jeka <[EMAIL PROTECTED]> wrote:
> I've enabled USB debugging, plugged the phone in, but still don't see
> it as one of the devices. Am I missing a step?
>
> Thank you.
>
> On Oct 17, 12:53 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
>
> > You can just plug the phone in. But first you need to enable USB
> > debugging in Home > Menu > Settings > Applications > Development.
>
> > On Fri, Oct 17, 2008 at 1:28 AM, [EMAIL PROTECTED]
>
> > <[EMAIL PROTECTED]> wrote:
>
> > > Any document about it so far? I would like to see something like
> > > Microsoft Activesync: just plug in the usb cable to PC, then you can
> > > debug!
>
> > --
> > Romain Guywww.curious-creature.org
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to debug the real phone G1?

2008-11-12 Thread Blake B.

Here are the complete steps:

http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware

I don't know if the adb installs the USB Windows drivers automatically
or not, but I installed them myself.
After following these steps, I was able to run the Eclipse debugger on
my G1.


On Nov 12, 2:11 pm, Alvin Yates <[EMAIL PROTECTED]> wrote:
> On Windows, you need to install the G1 debugger drivers.  If you are
> using Eclipse, adb should pick it up when it detects the phone.
>
> On Nov 12, 6:32 am, jeka <[EMAIL PROTECTED]> wrote:
>
>
>
> > I've enabled USB debugging, plugged the phone in, but still don't see
> > it as one of the devices. Am I missing a step?
>
> > Thank you.
>
> > On Oct 17, 12:53 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
>
> > > You can just plug the phone in. But first you need to enable USB
> > > debugging in Home > Menu > Settings > Applications > Development.
>
> > > On Fri, Oct 17, 2008 at 1:28 AM, [EMAIL PROTECTED]
>
> > > <[EMAIL PROTECTED]> wrote:
>
> > > > Any document about it so far? I would like to see something like
> > > > Microsoft Activesync: just plug in the usb cable to PC, then you can
> > > > debug!
>
> > > --
> > > Romain Guywww.curious-creature.org- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: does android phone have a IP address?

2008-11-12 Thread Mark Murphy

Lei wrote:
> And the G1 (the real phone) may have a IP address. Am I right?

If it can access the Internet, it has an IP address. However, that IP 
address is probably a private address, supplied either by the WiFi 
router or the carrier's data network.

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

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

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



[android-developers] Re: G1 Firmware Builds only For Developers? my Demand to Google / HTC / TMobile

2008-11-12 Thread Eric

> Better for Developers
>    1. Rather then Fighting for root this could be Straight Access to
> Device
>    2. No More Hacking and Exploits needed.

I've been developing my application just fine without any "fighting
for root" or exploits.

>    3. Building Firmware, API, Services, Codes which need Root Access
> can be Tested with Device rather then Emulator.

I haven't found any need to build firmware, other than as an academic
exercise, and my applications don't have any "codes which need root
access".

What would be the point of developing apps that need root access or
exploits, when you won't be able to deploy them to customers?

>    4. Customizing OS and using it for Self and Distributing it to user
> who can take risk may get easy Access to Mods.

How would you distribute it to users, since users wouldn't be able to
install it on their phones?

>    5. Google Should Protect Recovery Image and Boot Image from being
> Flashed this will reduce Bricking Issue.

Have people had problems with losing their recovery image and boot
image?  How did they accomplish that?

It seems to me that if you want Android without the security, you can
just build it yourself and run it on hardware other than the G1.  No
one ever promised that the G1 would be a good platform for people that
want to run non-standard builds of Android.

In fact, it's actually *better* for developers that it's hard to run a
non-standard build of Android on the G1, because it gives developers a
reasonably stable target for their 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] SMS with SSL (or other type of encryption).

2008-11-12 Thread szeldon

Hi,

Is it possible to use some kind of encryption of SMS? This encryption
should be used on normal SMSes, not on messages send over Internet.

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



[android-developers] Re: 64bit Windows Problems

2008-11-12 Thread Robert Green

I run the emulator on Vista 64 just fine.

My only issue is that there is no device driver for Vista 64 for the
G1 so I can't debug on the device itself.

On Nov 12, 2:11 am, "心蓝" <[EMAIL PROTECTED]> wrote:
> I think u can install the XP system
>
> 2008/11/12 melvin ram <[EMAIL PROTECTED]>
>
>
>
>
>
> > I'm on a windows vista64 machine and i'm not able to run the emulator.
> > Here's the output from the terminal:
>
> > --
> > C:\android-sdk\tools>ddms.bat
> > 27:01 E/ddms: shutting down due to uncaught exception
> > 27:01 E/ddms: java.lang.UnsatisfiedLinkError: C:\android-sdk\tools\lib
> > \swt-win32
> > -3236.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
> >at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> >at java.lang.ClassLoader.loadLibrary0(Unknown Source)
> >at java.lang.ClassLoader.loadLibrary(Unknown Source)
> >at java.lang.Runtime.loadLibrary0(Unknown Source)
> >at java.lang.System.loadLibrary(Unknown Source)
> >at org.eclipse.swt.internal.Library.loadLibrary(Library.java:
> > 123)
> >at org.eclipse.swt.internal.win32.OS.(OS.java:18)
> >at org.eclipse.swt.graphics.FontData.(FontData.java:259)
> >at com.android.ddms.PrefsDialog.setDefaults(PrefsDialog.java:
> > 198)
> >at com.android.ddms.PrefsDialog.init(PrefsDialog.java:140)
> >at com.android.ddms.Main.main(Main.java:74)
>
> > --
>
> > I've installed JDK 32bit, Eclipse & ADT
>
> --
> Welcome to my site about GPhone:http://51gphone.cn
> I am a GFans!!欢迎你来到我的GPhone网站!!http://51gphone.cn
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] unable to import android.provider.Contacts.Presence

2008-11-12 Thread Sean Sullivan

I am using Android SDK 1.0 R1 and I want to use the
android.provider.Contacts.Presence class

It appears that the android.jar in Android SDK 1.0 R1 does not have
the Presence class file.

Can somebody explain why this class is missing from the SDK?


$ pwd
/usr/local/android-sdk-mac_x86-1.0_r1

$ jar tvf android.jar | grep Presence
   382 Mon Sep 22 13:55:04 PDT 2008 android/provider/Contacts
$PresenceColumns.class


Thanks in advance.

Sean


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



[android-developers] Need help

2008-11-12 Thread Ernest Jojart
Hello,

I made an application for Android, but I have no real phone to try it. Can
anybody help me?

Please write to me ([EMAIL PROTECTED]) if You are a T-mobile G1 owner and
You have a little time to try my application!

Thank You in advanced!

BR.

Ernest

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



[android-developers] Re: Service to Activity communication

2008-11-12 Thread hackbod

1. If you know the two components are running in the same process,
just follow the LocalService sample code to directly call between the
two.

2. You can create a PendingIntent to deliver a result to an activity.
That PendingIntent can be given to the service either as one of the
extras in the Intent given to startService().

3. You can use Messenger to perform message-based communication back
and forth between the service and activity.  Just create a Handler in
the Service, return the Messenger from it as the onBind() result, and
have the activity connect and send messages through the Messenger.
The activity can send back its own Messenger for the service to
deliver messages to it as needed.

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



[android-developers] Error executing apkbuilder.bat

2008-11-12 Thread Mr Chaloo

Hi,

Executing the apkbuilder.bat form the sdk's tool folder gives the
following error:

duplicate entry: about.html.

Please let me know what is the cause behind it.

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



[android-developers] Re: unable to import android.provider.Contacts.Presence

2008-11-12 Thread hackbod

Generally things are hidden from the SDK because they are not yet
ready to be maintained as a public API.  For example, the people doing
the presence features may not be ready to write that schema in stone.

On Nov 12, 1:07 pm, Sean Sullivan <[EMAIL PROTECTED]> wrote:
> I am using Android SDK 1.0 R1 and I want to use the
> android.provider.Contacts.Presence class
>
> It appears that the android.jar in Android SDK 1.0 R1 does not have
> the Presence class file.
>
> Can somebody explain why this class is missing from the SDK?
>
> $ pwd
> /usr/local/android-sdk-mac_x86-1.0_r1
>
> $ jar tvf android.jar | grep Presence
>    382 Mon Sep 22 13:55:04 PDT 2008 android/provider/Contacts
> $PresenceColumns.class
>
> Thanks in advance.
>
> Sean
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: TextView Changing Text Color

2008-11-12 Thread Yogini Pimpalgaonkar
This could help you,
Spannable text = (Spannable) textView.getText()
text.setSpan(new ForegroundColorSpan(Color.BLACK), start, end,
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);

On Wed, Nov 12, 2008 at 4:57 PM, Peter <[EMAIL PROTECTED]> wrote:

>
> I'm using LinearLayout and TextView to output some text. The problem
> I'm having is that I need half the text on one line to be the default
> color and on the other side I want it to be green for example. Is this
> possible? Again I need the text on the same line using Linearlayout.
>
> Right now I have:
>
> TextView tv1 = (TextView) findViewById(R.id.data);
>tv1.setText(data+ data1);
>
> I need the data1 to be green...
>
> >
>

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



[android-developers] Re: AlarmManager.RTC_WAKEUP Not Waking Device?

2008-11-12 Thread g1bb

Hi Mark,

Sorry, I forgot to mention that I would like to destroy the activity
from a different class not associated with the activity. Is that
possible?

Thanks again.


On Nov 12, 11:32 am, Mark Murphy <[EMAIL PROTECTED]> wrote:
> g1bb wrote:
> > Is there a good way to destroy the activity programmatically?
>
> Call finish(). Once you return control back to Android (e.g., leave the
> on...() callback you're in), your activity should be gracefully shut
> down, including having onDestroy() called.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 
> 2009http://www.bignerdranch.com/schedule.shtml
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Service to Activity communication

2008-11-12 Thread Alvin Yates

Simple question:  Is there a means of communicating a "complete"
message from a Service to an Activity without using AIDL?  Ideally I'd
like to trigger something like "onActivityResult", but if I have to
change my app behavior, it isn't too much of a big deal.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Notification on uninstall

2008-11-12 Thread denismo

Hi,

my application modifies some user settings and also installs some
files on SD card. Is it possible to get notified before application is
uninstalled so that I can remove those files and restore settings?

Thanks.

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



[android-developers] Re: T-mobile G1 for testing purposes

2008-11-12 Thread Ariosto

Hi all,
as far as I know, the WCDMA bands usable by G1 are 1700 MHz and 2100
MHz, so an unlocked G1 can operate in UMTS mode on every countries
where the 3G service is allocated on one of those bands.

This is the case of european countries, where the UMTS system is
allocated on the 2100 MHz band.

Best

www.android-dev.it
The Android Italian Community

On 28 Ott, 10:07, whitemice <[EMAIL PROTECTED]> wrote:
> This could be FUD, as the G1 is reported to have “quad-band GSM plus
> dual-band UMTS, which means it will work abroad [i.e. outside US] as
> well“.
>
> It turns out that 3G standards are a bit 
> complex:http://www.three-g.net/3g_standards.html
>
> Although I do use a T-Mobile Germany laptop PCMCIA 3G card (presumably
> UMTS), and the connection speeds aren’t that 
> bad:http://www.3gnewsroom.com/3g_news/feb_06/news_6661.shtml
>
> Could someone who knows comment on this? (I.e. how well a US or even
> UK optimised unlocked G1 would work in my country)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   >