[android-developers] How can I get the child of a Widget

2009-02-20 Thread Meryl Silverburgh

Hi,

In my layout.xml, I have a child Widget under my custom widget MyWidget

My question is in my java code of my parent widget (MyWidget), how
can I get a reference to the child Widget (MyChildWidget)?



   com.mycompany.widget.MyWidget android:id=@android:id/widget
android:layout_width=fill_parent
android:layout_height=wrap_content

LinearLayout
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

com.mycompany.widget.MyChildWidget id=@+id/childWidget
android:layout_width=fill_parent
android:layout_height=wrap_content
android:gravity=bottom
/
/LinearLayout
/com.mycompany.widget.MyTabWidget


I have tried this, but I get a null pointer:
  MyChildWidget childWidget = (MyChildWidget)
this.findViewById(R.id.childWidgete);

if (childWidget != null) {

} else {
// always get here...

}

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



[android-developers] Re: UK developers listing currency?

2009-02-20 Thread bouvetloz...@gmail.com

And what's about VAT? UK residents and European Union residents
without VAT-ID should add the UK VAT?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How can I get the child of a Widget

2009-02-20 Thread for android
you have declared the id as childWidget

and u try to access it by childWidgete..hence the NPE

On Fri, Feb 20, 2009 at 1:48 PM, Meryl Silverburgh 
silverburgh.me...@gmail.com wrote:


 Hi,

 In my layout.xml, I have a child Widget under my custom widget MyWidget

 My question is in my java code of my parent widget (MyWidget), how
 can I get a reference to the child Widget (MyChildWidget)?



   com.mycompany.widget.MyWidget android:id=@android:id/widget
android:layout_width=fill_parent
android:layout_height=wrap_content

LinearLayout
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

com.mycompany.widget.MyChildWidget id=@+id/childWidget
android:layout_width=fill_parent
android:layout_height=wrap_content
android:gravity=bottom
/
/LinearLayout
/com.mycompany.widget.MyTabWidget


 I have tried this, but I get a null pointer:
  MyChildWidget childWidget = (MyChildWidget)
 this.findViewById(R.id.childWidgete);

if (childWidget != null) {

 } else {
 // always get here...

 }

 


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



[android-developers] When will Android support Multiple PDP?

2009-02-20 Thread vistodavid

I want to know when will Android support Multiple PDP, it is
urgent, please tell me if anyone knows, thanks in advance.

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



[android-developers] Re: When will Android support Multiple PDP?

2009-02-20 Thread David Hu
More specifically, as I know, Symbian 7.0s  higher support Multiple
PDP, that's mean you can create multiple, for example, GPRS context  use it
simultaniously(such as MMS  WAP  Inet context)...
Does Android support this feature? If not, when will it support?  Please
help me.

 BR,
 -David
On Fri, Feb 20, 2009 at 4:57 PM, vistoda...@gmail.com wrote:


I want to know when will Android support Multiple PDP, it is
 urgent, please tell me if anyone knows, thanks in advance.

BR,
-David
 


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



[android-developers] Re: UK developers listing currency?

2009-02-20 Thread Al Sutton

Section 3.2 of the Developer Distribution Agreement says;

Developer is responsible for determining if a Product is taxable and 
the applicable tax rate for the Payment Processor to collect for each 
taxing jurisdiction where Products are sold. Developer is responsible 
for remitting taxes to the appropriate taxing authority.

Which basically means Google aren't going to show VAT to end users, it's 
up to you to factor in VAT, which kind of screws up the whole idea of 
selling in the UK because HM Revenue  Customs state in 
http://www.hmrc.gov.uk/vat/records-valid-invoice.htm ;


What information must be shown on a VAT invoice

A VAT invoice must generally show:

* an invoice number which is unique and follows on from the number
  of the previous invoice
* the seller's name or trading name and address
* the seller's VAT registration number
* the invoice date
* the tax point - the time when a sale is treated by HM Revenue 
  Customs (HMRC) as taking place - if this is different from the
  invoice date
* the customer's name or trading name and address
* a description of the goods or services

For each different type of item you sell, you must show the:

* unit price or rate, excluding VAT
* quantity of goods or the extent of the services
* rate of VAT that applies to the items being sold
* total amount payable, excluding VAT
* rate of any cash discount
* total amount of VAT charged



Al.

bouvetloz...@gmail.com wrote:
 And what's about VAT? UK residents and European Union residents
 without VAT-ID should add the UK VAT?
 
   


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



[android-developers] Re: java.lang.VerifyError -- in Android

2009-02-20 Thread Maddy

Hi Fadden,

Thanks for your information.

The actual file names are

a.java --- Nullable.java
b.java --- AbstractServiceArbiter.java

I have done dexdump -d my application (AndJOSCAR) and got
AndJOSCAR.apk.dump file.

I have opened that file using Ultraedit (Text Editor tool) to look for
any useful information.

I searched for addRequestImpl and I could not find any reference for
this name in that file.

I do not know how to get more useful information from that, can you
please tell me how could I get more information here.

For your information, all this code works with no problems in simple
PC based Java application.
I am only getting this problem in Android.

I thank you in advance for your help.

On Feb 20, 12:24 am, fadden fad...@android.com wrote:
 On Feb 19, 10:51 am, Maddy malli.ar...@gmail.com wrote:

  I am getting java.lang.VerifyError even though I am compiling all code
  in Android platform and I do not use any external jars. The details
  are follows,
 [...]
  ---­-
  I get the following error when addRequest() method in b.java file is
  called,
  --
  VFY: unable to resolve direct method 6633: /serive/
  AbstractServiceArbiter;.addRequestImpl (b;Ljava/lang/Class;)V
  VFY: rejecting opcode 0x70 at 0x000a
  VFY: rejected /service/AbstractServiceArbiter;.addRequest (Ljava/lang/
  Class;)V
  Verifier rejected class AbstractServiceArbiter
  -

 That seems to be complaining about addRequest trying to call
 addRequestImpl, not something calling addRequest.  I take it you've
 censored out the class names -- serive and b; are not something
 I'd expect to see.

 You can run dexdump -d on the APK and verify that the signature for
 addRequestImpl matches what is expected.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Touch *extremely* expensive performance-wise

2009-02-20 Thread suhas gavas
hi zombies and robots,
plz let me the solution to improve touch event performance
I have got stuck because of the sam

regards,
suhas

On Fri, Feb 20, 2009 at 12:46 PM, Zombies and Robots caecus...@gmail.comwrote:


 Thank you both!

 With those pointers, I was able to figure out and implement working
 versions of both techniques.  Now I just have to decide which one I
 like better and finish writing my game...
 


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



[android-developers] Broken after update: FileNotFoundException on openFileOutput

2009-02-20 Thread Markus Junginger

In the Android Market, I saw that users of my app had serious
problems:
http://www.cyrket.com/package/de.jars.android.quicksearch

After updating to a new version from the Market, the app became
unusable. This line is causing the trouble:
FileOutputStream fileOut = context.openFileOutput(searches,
Context.MODE_PRIVATE);

Exception stack:
java.io.FileNotFoundException: /data/data/de.jars.android.quicksearch/
files/searches
 at org.apache.harmony.luni.platform.OSFileSystem.open
(OSFileSystem.java:227)
 at java.io.FileOutputStream.init(FileOutputStream.java:97)
 at android.app.ApplicationContext.openFileOutput
(ApplicationContext.java:364)
 at android.content.ContextWrapper.openFileOutput(ContextWrapper.java:
146)

I do not see a reason for a FileNotFoundException here - is it a
Android bug?

/data/data seems strange, too (should it not be just /data?).

Quick help would be nice; the less frustrated users, the better... ;)

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



[android-developers] Re: UK developers listing currency?

2009-02-20 Thread bouvetloz...@gmail.com

Thanks, I'm from EU but not UK. It seems to be totally complex. Maybe
for an app sold for $1 you have to detail as follows: $1 + $1 * 70% *
17.5% for EU countries (except outside UK with VAT-ID), $1 for others
(Google is responsible for taxing the remaining 30%). Probably it's
not possible to set these using Android Market's website.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Broken after update: FileNotFoundException on openFileOutput

2009-02-20 Thread Markus Junginger

I just added some logging for debugging:
 File fileFile = context.getFileStreamPath(file);
 CommonLog.i(Opening file for output:  + fileFile.getAbsolutePath()
+ , exists:  + fileFile.exists());

The output shows that the file exists:
Opening file for output: /data/data/de.jars.android.quicksearch/files/
searches, exists: true

So the file is there... Maybe it is a permission issue? Is my app not
allowed to access a file that it created in a previous version?? Would
not make sense to me, but I still do not know what is going on..

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



[android-developers] Re: UK developers listing currency?

2009-02-20 Thread Al Sutton

The problem is the last time I heard UK developers can't actually list 
apps with prices US Dollars, and because you can only set one price 
you'll have to explain to the tax man why your inclusive of VAT prices 
and exclusive of VAT prices are the same. There is also the issue that 
you have to show that which region the end customer is resident in, so 
if a UK resident buys an app via Market whilst they are temporarily in 
the US you should still be charging VAT.

I have a couple of companies and one of them deals with US sales via 
PayPal, we list the product in several currencies (USD, EUR, and GBP 
included), we get to keep the balance in the payment currency until and 
when we need to convert it to GBP to put into the UK account we convert 
however much we need into GBP and send it to the account.  This allows 
us to show customers prices in currencies they're familiar with (because 
given the choice they will deal in their native currency), lets us 
ensure that what one customer pays in USD on one day is the same as what 
another customer pays in USD a week later (thus avoiding problems like 
hey, my mate only paid 79 cents, I paid 82 cents, that's a con!!!), 
and lets us show differing prices which can include any appropriate 
taxes for that region.

As the moment Checkout and therefore Market are very much US centric and 
so cause a number of headaches for non-US developers even if you can get 
past the pricing and listing restrictions.

Al.

bouvetloz...@gmail.com wrote:
 Thanks, I'm from EU but not UK. It seems to be totally complex. Maybe
 for an app sold for $1 you have to detail as follows: $1 + $1 * 70% *
 17.5% for EU countries (except outside UK with VAT-ID), $1 for others
 (Google is responsible for taxing the remaining 30%). Probably it's
 not possible to set these using Android Market's website.
 
   


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



[android-developers] Re: UK developers listing currency?

2009-02-20 Thread Sena Gbeckor-Kove

Well, and eloquently said.

Thanks
S


On 20 Feb 2009, at 11:14, Al Sutton wrote:


 The problem is the last time I heard UK developers can't actually list
 apps with prices US Dollars, and because you can only set one price
 you'll have to explain to the tax man why your inclusive of VAT prices
 and exclusive of VAT prices are the same. There is also the issue that
 you have to show that which region the end customer is resident in, so
 if a UK resident buys an app via Market whilst they are temporarily in
 the US you should still be charging VAT.

 I have a couple of companies and one of them deals with US sales via
 PayPal, we list the product in several currencies (USD, EUR, and GBP
 included), we get to keep the balance in the payment currency until  
 and
 when we need to convert it to GBP to put into the UK account we  
 convert
 however much we need into GBP and send it to the account.  This allows
 us to show customers prices in currencies they're familiar with  
 (because
 given the choice they will deal in their native currency), lets us
 ensure that what one customer pays in USD on one day is the same as  
 what
 another customer pays in USD a week later (thus avoiding problems like
 hey, my mate only paid 79 cents, I paid 82 cents, that's a con!!!),
 and lets us show differing prices which can include any appropriate
 taxes for that region.

 As the moment Checkout and therefore Market are very much US centric  
 and
 so cause a number of headaches for non-US developers even if you can  
 get
 past the pricing and listing restrictions.

 Al.

 bouvetloz...@gmail.com wrote:
 Thanks, I'm from EU but not UK. It seems to be totally complex. Maybe
 for an app sold for $1 you have to detail as follows: $1 + $1 * 70% *
 17.5% for EU countries (except outside UK with VAT-ID), $1 for others
 (Google is responsible for taxing the remaining 30%). Probably it's
 not possible to set these using Android Market's website.




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



[android-developers] Re: UK developers listing currency?

2009-02-20 Thread bouvetloz...@gmail.com

Supposedly Google won't detail your income by countries, thus you
can't divide it including/excluding taxes, and of course you can't
issue individual invoices for your customers regarding to the 70% of
the net price. But strictly, you have only one business partner,
Google from US, probably it's a viable and simple interpretation.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: UK developers listing currency?

2009-02-20 Thread Al Sutton

Unfortunately it's not that easy. The V.A.T. rate is charged dependant 
on the end customer, and in the Market situation Google is counted as a 
reseller not the end customer.

The last company I set up which sold software to the US without physical 
shipments (i.e. everything was a download) and had US resellers received 
it's first VAT inspection within 6 months of setting up. Everything was, 
of course, all legal and above board, so the there was no problem, but, 
as a small company, it's normally years before you get a VAT inspection.

HMRC in the UK are pretty focused on this (especially with mobile phone 
related businesses) because of a type of fraud called Missing Trader 
Fraud (or a VAT carousel - see 
http://en.wikipedia.org/wiki/Missing_trader_fraud). To carry the fraud 
out requires someone to run off with the cash at some point, but HMRC 
don't do risk assessments on smaller companies so they treat everyone as 
if they might get involved in a VAT carousel, and hence keep a close eye 
on companies doing VAT import/export.

Al.

bouvetloz...@gmail.com wrote:
 Supposedly Google won't detail your income by countries, thus you
 can't divide it including/excluding taxes, and of course you can't
 issue individual invoices for your customers regarding to the 70% of
 the net price. But strictly, you have only one business partner,
 Google from US, probably it's a viable and simple interpretation.
 
   


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



[android-developers] Close all activities in tabbed application

2009-02-20 Thread Immy

Hi,

Can someone tell me how to close all activities running under a tab?

My initial activity does not need a tabbed view. Therefore, to
initiate a tab for the next (remaining) activities, I call a class
that extends TabActivity, from the first tab.

All this class does is to assign and call activities based on the tab
click.

Currently, to close all activities i am using StartActivityforResult.

But in this case, while calling activites from the TabHost, setContent
does not accept a result code as a parameter.

Help me to solve this one.
My application is stranded in a blank screen before closing. i.e. in
the TabActivity class.

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



[android-developers] ArrayAdapter of widgets (button and EditText)

2009-02-20 Thread zeeshan

Hi,

i have wraped ArrayAdapter of a a single editText in a ListView
(notepad example)


ListView MsgListView = (ListView)findViewById(R.id.MsgListView);
Button addimage = (Button) findViewById(R.id.addimage);
final EditText EditMsgText = (EditText)findViewById(R.id.EditMsgText);
final ArrayListString todoItems = new ArrayListString();
final ArrayAdapterString aa;

aa = new ArrayAdapterString(this,
android.R.layout.simple_list_item_1,
todoItems);
MsgListView.setAdapter(aa);



EditMsgText.setOnKeyListener(new OnKeyListener() {
public boolean onKey(View v, int keyCode, KeyEvent event) {
if (event.getAction() == KeyEvent.ACTION_DOWN)
if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER)
{
todoItems.add(0, EditMsgText.getText().toString());
aa.notifyDataSetChanged();

return true;
}
return false;
}
});




Question:

how can i add 1 button in this listAdapter so button also appear each
time along with the editText in the list view

anyone help me please ASAP.

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



[android-developers] Re: IMPROPER RENDERING OF A HTML OBJECT

2009-02-20 Thread whitemice

I’ve just encountered the same problem.

Below is a code snippet which defines a DIV element, light blue in
colour and of limited height.  This height/overflow setting caused a
scrollbar to appear on all the desktop browsers tested.  In the
Android Browser, no scrollbar is shown and content after the 10th line
is cropped.

I am testing on a ADP 1.0 device.

I will now see if anyone has previously reported this as a bug.
Regards
Mark


!—SNIPPIT --
html
headtitleScroll Test/title/head
body
h3Scroll Test START/h3
div style=height: 180px; overflow:auto; background-color: #66;
1yyy1br
2yyy2br
3yyy3br
4yyy4br
5yyy5br
6yyy6br
7yyy7br
8yyy8br
9yyy9br
0br
1yyy1br
2yyy2br
3yyy3br
4yyy4br
5yyy5br
6yyy6br
7yyy7br
8yyy8br
9yyy9br
0br
1yyy1br
2yyy2br
3yyy3br
4yyy4br
5yyy5br
6yyy6br
7yyy7br
8yyy8br
9yyy9br
0br
/div
h3Scroll Test END/h3
/body
/html
!—SNIPPIT --


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



[android-developers] Re: how to switch between two views

2009-02-20 Thread guptha


Can we  use Handler to accomplish this task.




On Feb 19, 11:12 pm, nEx.Software justin.shapc...@gmail.com wrote:
 I also think the Thread.sleep(500); is stopping the redraw from
 happening.

 On Feb 19, 11:06 am, nEx.Software justin.shapc...@gmail.com wrote:

  I think onCreate runs all the way through before displaying the UI.
  I just tried this and found it to be the case.

  On Feb 18, 9:37 pm, guptha gjango...@gmail.com wrote:

   hi friends,
   I 'm beginner in Android ,To start with i was asked to do a simple
   task ,i need to make blue and red screen appear on the screen
   alternatively ,
   to achieve this i wrote two layout files
   1.  main.xml -- for to display red screen
   2.  sub1.xml -- for to display blue screen

   In oncreate() i wrote

    for(int i=0;i20;i++)
          {
           setContentView(R.layout.main);
            try
             {
                   Thread.sleep(500);
             }catch(Exception e){}
             setContentView(R.layout.sub1);
          }

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



[android-developers] How Delete SMS from inbox programmatically OR discard it before received in inbox

2009-02-20 Thread Gulfam Hassan
Hi,

I want to Delete SMS how i can delete it programmatically?
I am receiving sms in my application in this format string. 12345
username password
**
i have post this thread on so many groups and forums but i dont receive any
reply from last one week.
its very urgent for our product. so i am sending this mail  to all of you.
***
public void onReceive(Context context, Intent intent) {

   if(!intent.getAction().equals
(android.provider.Telephony.SMS_RECEIVED))
   {
   return;
   }
   SmsMessage smsMsg[] =
getMessagesFromIntent(intent);// here getting sms successfully

   for(int i=0; i  smsMsg.length; i++)
   {
   receivedSMS =
smsMsg[i].getDisplayMessageBody();
   if(receivedSMS.startsWith(12345))
 {
 String[] dataArray =
MyUtility.breakIntoLines(receivedSMS, '
');
 String userName = dataArray[1];
 String userPassword = dataArray[2];

 this.updateUsernamePassword(context, userName, userPassword );//here saving
data successfully
 Toast.makeText(context,Settings
saved, Toast.LENGTH_LONG).show
();

 try{
 ***here
i want to delete that perticullar sms ***
 Uri uriSms =
Uri.parse(content://sms/inbox);
  Cursor c =
context.getContentResolver().query(uriSms, null,null,null,null);
int thread_id =c.getCount();
//get the thread_id

context.getContentResolver().delete(Uri.parse(content://sms/conversations/+thread_id
),null,null);

  }catch(Exception e)
{
Log.i(exception ,e.getMessage());
}

   }
 }

   }

  }


after getting my required
data i want to delete this currently received sms programmatically.
data is very confidential in this sms and i want to delete it here
after getting data and also clear it from notification bar.or i want to
discard it because i dont want to show it in inbox
any one can help me regarding this.can any one give me code snippet
which was working perfectly for deleting sms or discarding it.

Thanks  Regards,
Gulfam

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



[android-developers] Re: Broken after update: FileNotFoundException on openFileOutput

2009-02-20 Thread Markus Junginger

This is getting even more confusing:
 * canRead and canWrite are true on the file
 * creating new files (new names) also fails

The only way to get it to work again is to uninstall and install the
app from scratch again.

So, right know I am totally clueless, expect it could be an Android
bug. I noticed other apps in the market having similar problems
(please uninstall and install). But on the other hand, a bug of that
severity would probably have been popped up and fixed earlier. So, I
am hoping I missed something important here, or at least that there's
work around.

Any ideas? Does it work with your app? Any help is highly appreciated!

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



[android-developers] Re: how to switch between two views

2009-02-20 Thread for android
Use the ViewFlipper.

onCreate will be run once.After which the UI will be displayed.

On Fri, Feb 20, 2009 at 6:19 PM, guptha gjango...@gmail.com wrote:



 Can we  use Handler to accomplish this task.




 On Feb 19, 11:12 pm, nEx.Software justin.shapc...@gmail.com wrote:
  I also think the Thread.sleep(500); is stopping the redraw from
  happening.
 
  On Feb 19, 11:06 am, nEx.Software justin.shapc...@gmail.com wrote:
 
   I think onCreate runs all the way through before displaying the UI.
   I just tried this and found it to be the case.
 
   On Feb 18, 9:37 pm, guptha gjango...@gmail.com wrote:
 
hi friends,
I 'm beginner in Android ,To start with i was asked to do a simple
task ,i need to make blue and red screen appear on the screen
alternatively ,
to achieve this i wrote two layout files
1.  main.xml -- for to display red screen
2.  sub1.xml -- for to display blue screen
 
In oncreate() i wrote
 
 for(int i=0;i20;i++)
   {
setContentView(R.layout.main);
 try
  {
Thread.sleep(500);
  }catch(Exception e){}
  setContentView(R.layout.sub1);
   }
 
but this doesn't work ,why ?
Please help to understand the concept
 


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



[android-developers] Imported database unreadable on android

2009-02-20 Thread Billy Bob

Hi,

  I'm creating a sqlite3 database on a linux box. This db is valid on
the box, I can select and all... When I download the file on the phone
(emulator in my case), and try to read it with an SQLiteDatabase, any
request will raise an exception 'invalid file'. I've checked the file
is not corrupted, same md5 on the phone and on the linux box. Also,
the file is found by the OpenHelper object cause I had the filename
wrong at start and it would fail much earlier in the program.

  Is there any differences between sqlite3 on android and the regular
PC version?

  Thanks for your answers.

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



[android-developers] Question about spinner and quick text search.

2009-02-20 Thread EvgenyV

Hi!

For ListActivity I can use method setTextFilterEnabled(true) which
allows me to type letters and quick
find list item(s).

Does anybody know whether exists some similar out of the box
functionality for Spinner dropdown list?

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



[android-developers] Re: Singed App on Emulator

2009-02-20 Thread Stoyan Damov

On Fri, Feb 20, 2009 at 2:29 AM, jtoolsdev br...@jyotishtools.com wrote:

 I have an app that is ready for release however after signing the app
 when I attempt to upload it to the emulator I get an
 INSTALL_FAILED_UPDATE_INCOMPATIBLE.   I've searched and haven't
 found anything on this message.  I also signed another copy using the
 debug key and it installed fine.  Either the emulator can't run
 anything other than apps signed with the debug key and don't seeing
 anything saying that in the docs or there is something wrong with my
 own key which was prepared as per instructions?

 Thanks,
 Brian


Have you first uninstalled your android debug keys-signed app before
installing your-release keys-signed one?

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



[android-developers] Re: develop application without a data plan?

2009-02-20 Thread Jordan Frank

My advice, is to do a search on Google for the phrase activate
android adp1 without a sim card. You will find lots of information on
how to do this. The first three results all give step by step
instructions.

Note that this advice also applies to other questions that you might
have.

Cheers,
Jordan

On Feb 20, 2:45 am, jonathan topcod...@gmail.com wrote:
 I just got my g1, I only need to develop an offline application,
 however, It wouldn't go further without signing into google account
 which requires a data plan.  Please advise.
 thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: IMPROPER RENDERING OF A HTML OBJECT

2009-02-20 Thread whitemice

Added as a bug report here:
http://code.google.com/p/android/issues/detail?id=2044can=1q=htmlcolspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summarystart=100


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



[android-developers] Re: WebView for Form based Local AJAX application

2009-02-20 Thread Fred Grott(shareme)

see CNET CiUI clientcide.com its already done just use it



On Feb 18, 7:06 pm, Miguel Paraz mpa...@gmail.com wrote:
 Hi,
 I'm thinking of using WebView as a container for Form based
 JavaScript+DHTML applications. This is simple fill-out-forms like you
 have on the web, but now on mobile - like for note taking, order
 taking, and the like.

 This is to allow web developers to build the bulk of the application -
 Javascript will perform validation, computations, etc.

 On the Java side, I only need to implement database CRUD operations,
 and a ListView to scroll over the forms.

 To minimize the learning curve on the JavaScript side, I've been
 thinking on how to emulate AJAX calls so that the web developers don't
 need to learn new methods to call on the JavaScript-Java bridge. Of
 course this isn't possible using XMLHttpRequest, so I'm thinking of
 adapting JQuery or other Javascript libraries for this purpose.

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



[android-developers] Re: Imported database unreadable on android

2009-02-20 Thread Mads Kristiansen
I can tell, that I did it the other way around - reading a phone-generated
database on my desktop.
How big is the database? Did you try to create an empty database (or a
database with a minimum set of data) and read it on the phone?

/ Mads

On Fri, Feb 20, 2009 at 2:55 PM, Billy Bob billybob5...@gmail.com wrote:


 Hi,

  I'm creating a sqlite3 database on a linux box. This db is valid on
 the box, I can select and all... When I download the file on the phone
 (emulator in my case), and try to read it with an SQLiteDatabase, any
 request will raise an exception 'invalid file'. I've checked the file
 is not corrupted, same md5 on the phone and on the linux box. Also,
 the file is found by the OpenHelper object cause I had the filename
 wrong at start and it would fail much earlier in the program.

  Is there any differences between sqlite3 on android and the regular
 PC version?

  Thanks for your answers.

 BB
 


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



[android-developers] Re: How to get a region which is not a standard rect area

2009-02-20 Thread Mike Reed

Ah, that's a bug, null should be allowed. I'll see what can be done
there for the future.

The clip parameter is mean to be a hint to speedup turning the path
into a region by restricting the result to a clipped subset of the
path. For your purposes, you can just make a big rectangular region
for the clip. The bounds of the path or larger.

On Thu, Feb 19, 2009 at 10:22 PM, David Hu vistoda...@gmail.com wrote:
  Thanks for your reply, Mike. I've tried your method, seems still not
 work yet. The second parameter of Region.setPath (clip) can't be null.


 If we use null, there will be an exception happen. So I've tried to use
 the region I've just constructed or the original rect region, the area is
 still the ourter standard rect area, not the inclined rect which rotated
 from a standard rect. Here is my code tip and possible result:

  //Calculate region
  top = 150;
  bottom = top + bmp.getHeight(); //bmp is a bitmap instance
  left = 200;
  right = left + bmp.getWidth();
  Path p = new Path();
  p.addRect(left, top, right, bottom, Path.Direction.CCW);

 // use Matrix to rotate 30 degrees
  Matrix mtx = new Matrix();
  mtx.setRotate(30);
  p.transform(mtx);

  Region rgn  = new Region();
  (1)  //- The application will crash here with an exception here
  rgn.setPath(p, null);
  (2)  //- The region is the rect area which encircle the rotated
 rect, not the rotated rect itself
  rgn.setPath(p, rgn);
  (3) //-  The region is the rect area which encircle the rotated
 rect, not the rotated rect itself
  Region clipRgn = new Region(top, bottom, left, right);
  mRgn2.setPath(p, clipRgn);
 BTW, I searched in android source code and www.google.com, can't find any
 usage of this API:

 public boolean setPath(Path path, Region clip)

 So now, my question is which clip region should I pass or any other way in
 order to attain my aim? Hope I've made my aim clearly.

 BR,
 -David

 On Thu, Feb 19, 2009 at 11:27 PM, Mike Reed r...@google.com wrote:

 You could possibly un-rotate your touch-point by 30 degrees, and then
 just use the rectangle.

 However, you can make complex regions by first constructing a Path,
 and then calling region.setPath(...), which converts the path into a
 region. Below is pseudo sample code:

 Path p = new Path();
 p.addRect(rect);// this is your rect
 p.transform(matrix); // construct a matrix and then rotate as you wish
 region.setPath(p, null);

 On Thu, Feb 19, 2009 at 5:01 AM,  vistoda...@gmail.com wrote:
 
I want to judge whether the touch point(x, y) is in a region or
  not, the region is from a stardard rect by rotating specified degrees,
  from example, rotate 30 degrees. There is a class named Region in
  Android, but as I researched, it just supports standard rect, is there
  any other way to judge whether a point is in an  acclivitous rect? How
  to do it?
 
  Br,
  -David
  
 
 


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



[android-developers] Re: How to compile G1 apps code

2009-02-20 Thread Sunil . Maharana
I just created a new Android Project and change the Camera code for import 
packages and commented the code those are not required for me, i could 
have able to remove all the syntex errors.

For the first time i ran the project and it was giving some errors and i 
ignored those, when i try to ran it second time it was giving error as 
Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

has any one experienced this type of error.

I just checked the my Manifest.xml file and i am using shareUserId same as 
the camera apps is using 
android:sharedUserId=android.media





nEx.Software justin.shapc...@gmail.com 
Sent by: android-developers@googlegroups.com
02/20/2009 10:12 AM
Please respond to
android-developers@googlegroups.com


To
Android Developers android-developers@googlegroups.com
cc

Subject
[android-developers] Re: How to compile G1 apps code







I'm on Windows... And I know nothing of Git so here's my process...

For Camera.apk source, go to:
http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=commit;h=1d4c75065966c4f6f56900e31f655bfd1b334435


Download each raw file do your PC.
Create a new Android Project in Eclipse.
Import all of the downloaded files.
Update the code as you wish.

Make sure you change the Package Name in all places in the project
else you won't be able to install it.
If the Camera uses any internal classes, you won't be able to do this
without the full Android source,
And it's not generally OK to do this as non-SDK based apps are not
supported.

If all goes well, you can install directly to your phone and if you
want upload to the Market.

On Feb 19, 9:29 pm, sunil.mahar...@lntinfotech.com wrote:
 How did you compiled the Calculator code after you made your changes, 
can
 you plz lemme me know the procedure. I just want to change the Camera UI
 to add some extra button, when i press that button it should invoke my
 application.

 But i am not getting how to start and how to compile the Camera apps 
code.
 Can it be possible to Compile the Camera code indipendently, actually i
 couldn't find in the code any .apk file for Camera. So i am not sure how
 to compile the apps code.

 nEx.Software justin.shapc...@gmail.com
 Sent by: android-developers@googlegroups.com
 02/19/2009 10:50 PM
 Please respond to
 android-developers@googlegroups.com

 To
 Android Developers android-developers@googlegroups.com
 cc

 Subject
 [android-developers] Re: How to compile G1 apps code

 I did an app based on the Calculator.. I just downloaded the source
 fromhttp://android.git.kernel.org/and made my changes, don't know if
 the Calendar or Camera use classes outside of the SDK but I'd give
 that a shot and see what happens.

 On Feb 19, 10:17 am, Android sunil.mahar...@lntinfotech.com wrote:

  Hi..

  I wanna to compile the apps code, has any one tried it earlier, if so
  lemme know. How to compile the camera aur calender code.

  -Sunil

 __

 __


__



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



[android-developers] *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-02-20 Thread Michael Martin

*** Can anyone at Google explain why some G1s can see paid apps while
others can’t? 


I don’t believe this is a matter of an OTA updates but rather
datacenter propagation thus it would depend on which Android Market
datacenter the G1 is pinging.

In my case I have 2 G1s (side by side) and 1 can see the paid apps
while the other doesn’t….could only assume they are both pinging the
same DC.

(I have already tried the reboot theory to no avail)


Any formal explanation for this???


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



[android-developers] Re: App Store Listings (Pictures?)

2009-02-20 Thread Mads Kristiansen
I don't think that's possible unfortunately. Only the app icon can be
uploaded.

/ Mads

2009/2/20 themagazine m...@anycounter.com


 Are we not able to upload pictures of the app?  I couldn't find any
 place to do this.

 If not, how is the user supposed to know anything about the app before
 buying?
 


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



[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-02-20 Thread Al Sutton

My guess would be a phased rollout based on device IDs.

That way the scalability can be tested and rolled back if neccessary.

Or, alternatively, they might think you're greedy having 2 G1s and so 
will only give you the service on 1 :) :) :).

Al.

Michael Martin wrote:
 *** Can anyone at Google explain why some G1s can see paid apps while
 others can’t? 


 I don’t believe this is a matter of an OTA updates but rather
 datacenter propagation thus it would depend on which Android Market
 datacenter the G1 is pinging.

 In my case I have 2 G1s (side by side) and 1 can see the paid apps
 while the other doesn’t….could only assume they are both pinging the
 same DC.

 (I have already tried the reboot theory to no avail)


 Any formal explanation for this???


 Thank You,
 Michael Martin
 http://www.googleandblog.com/
 
   


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



[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-02-20 Thread Robert Green

It's strange - I can't get my own app off the market but other people
are starting to now.  H

On Feb 20, 9:21 am, Al Sutton a...@funkyandroid.com wrote:
 My guess would be a phased rollout based on device IDs.

 That way the scalability can be tested and rolled back if neccessary.

 Or, alternatively, they might think you're greedy having 2 G1s and so
 will only give you the service on 1 :) :) :).

 Al.



 Michael Martin wrote:
  *** Can anyone at Google explain why some G1s can see paid apps while
  others can’t? 

  I don’t believe this is a matter of an OTA updates but rather
  datacenter propagation thus it would depend on which Android Market
  datacenter the G1 is pinging.

  In my case I have 2 G1s (side by side) and 1 can see the paid apps
  while the other doesn’t….could only assume they are both pinging the
  same DC.

  (I have already tried the reboot theory to no avail)

  Any formal explanation for this???

  Thank You,
  Michael Martin
 http://www.googleandblog.com/

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



[android-developers]

2009-02-20 Thread John St. John
--
John St. John
jstj...@cs.uoregon.edu
(541) 543-7434

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



[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-02-20 Thread Shane Isbell
I think I'm in the last batch. Just got paid updates a few minutes ago.

On Fri, Feb 20, 2009 at 7:36 AM, Robert Green rbgrn@gmail.com wrote:


 It's strange - I can't get my own app off the market but other people
 are starting to now.  H

 On Feb 20, 9:21 am, Al Sutton a...@funkyandroid.com wrote:
  My guess would be a phased rollout based on device IDs.
 
  That way the scalability can be tested and rolled back if neccessary.
 
  Or, alternatively, they might think you're greedy having 2 G1s and so
  will only give you the service on 1 :) :) :).
 
  Al.
 
 
 
  Michael Martin wrote:
   *** Can anyone at Google explain why some G1s can see paid apps while
   others can't? 
 
   I don't believe this is a matter of an OTA updates but rather
   datacenter propagation thus it would depend on which Android Market
   datacenter the G1 is pinging.
 
   In my case I have 2 G1s (side by side) and 1 can see the paid apps
   while the other doesn't….could only assume they are both pinging the
   same DC.
 
   (I have already tried the reboot theory to no avail)
 
   Any formal explanation for this???
 
   Thank You,
   Michael Martin
  http://www.googleandblog.com/
 
  --
  ==
  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-02-20 Thread aclelland

Have you maybe set one up with an account which is linked to a google
account outside the US/UK?

If not a slow rollout is probably the best reason for them not showing
up. Same thing happens with iGoogle and gMail updates.

On Feb 20, 3:19 pm, Michael Martin mi...@mm-agency.com wrote:
 *** Can anyone at Google explain why some G1s can see paid apps while
 others can’t? 

 I don’t believe this is a matter of an OTA updates but rather
 datacenter propagation thus it would depend on which Android Market
 datacenter the G1 is pinging.

 In my case I have 2 G1s (side by side) and 1 can see the paid apps
 while the other doesn’t….could only assume they are both pinging the
 same DC.

 (I have already tried the reboot theory to no avail)

 Any formal explanation for this???

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



[android-developers] Re: After install ADT0.9,failed to launch APP as no VM compatible with android 1.5

2009-02-20 Thread david liu
You need create one vm firstly, then launch emulator with that vm.

On Thu, Feb 19, 2009 at 10:26 PM, harry ha...@mailinator.com wrote:


 Same issue here. Cannot launch VM with ADT0.9.0 plugin, nor is
 hardware device recognized. I had a look at
 AndroidLaunchController.java and tried to patch the launch() function
 but without success. Unfortunately I am not aware how to debug the
 plugin itself, so I am stuck. Any suggestions?

 On 11 Feb., 03:28, tony shangyun...@gmail.com wrote:
  Anybody can useADT0.9 run application now?
 

 


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



[android-developers] Populating a database efficiently

2009-02-20 Thread Gavin Aiken
Hi all,
It currently takes my onCreate method 147 seconds to create and populate my
database, if anyone with a better knowledge of SQLite could help me reduce
this it would be greatly appreciated.

I have want to create a database with three tables;


   1. CREATE TABLE nodeConfigurations (nodeId INTEGER PRIMARY KEY
AUTOINCREMENT  NOT NULL , filterId INTEGER NOT NULL , left INTEGER NOT
   NULL , right INTEGER NOT NULL , type INTEGER NOT NULL , parameters
   TEXT);
   2. CREATE TABLE data (dataId INTEGER PRIMARY KEY  AUTOINCREMENT  NOT
   NULL , dataName TEXT NOT NULL );
   3. CREATE TABLE nodes (nodeId INTEGER PRIMARY KEY  NOT NULL ,
   nodeType TEXT NOT NULL );

These three lines are stored in a file under the raw directory, one command
on each line.

I have data to insert of the form;

   1. 24 x INSERT INTO nodes VALUES(1,'type');
   2. 1000 x INSERT INTO data VALUES(1,'name');
   3. 13589 x INSERT INTO nodeConfigurations VALUES(1,1000,5,6,1,'[]');

These 14614 separate insertion commands are stored one on each line in
another file in the raw resource directory.

My database helper is defined thus;

public class DBHelper extends SQLiteOpenHelper {

public void onCreate(SQLiteDatabase db) {
this.db = db;
long start = System.currentTimeMillis();
try{
Scanner sql = new
Scanner(context.getResources().openRawResource(R.raw.database_schema));

db.beginTransaction();
while(sql.hasNextLine()){
String command = sql.nextLine();
db.execSQL(command);
}
db.endTransaction();
 sql = new
Scanner(context.getResources().openRawResource(R.raw.database_data));

db.beginTransaction();
while(sql.hasNextLine()){
String command = sql.nextLine();
db.execSQL(command);
}
db.endTransaction();

}catch (Throwable t) {
Toast.makeText(context, Exception: +t.toString(),2000).show();
Log.w(FilterDB, Database initialization failed);
t.printStackTrace();
}

Log.i(FilterDBHelper,Database created in  + (System.currentTimeMillis()
- start) +  Milliseconds);
}
   
}


Checking the log I can see that the creation and inserts took a
whopping 147seconds I must be doing something wrong.

02-20 15:42:37.703: INFO/FilterDBHelper(281): Database created in 147844
Milliseconds


Any advice would be greatly appreciated!

Kind regards,

Gavin

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



[android-developers] Signing an application on Linux

2009-02-20 Thread Nox

Hello, I've got a problem!
I don`t  know how to sign an application on Linux.
Can you please help me???

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



[android-developers] Re: Signing an application on Linux

2009-02-20 Thread Nox



On 20 Feb., 17:24, Nox v.beh...@googlemail.com wrote:
 Hello, I've got a problem!
 I don`t  know how to sign an application on Linux.
I using Ubuntu 8.05.
 Can you please help me???

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



[android-developers] Re: Signing an application on Linux

2009-02-20 Thread Mads Kristiansen
Did you follow this guide:
http://developer.android.com/guide/publishing/app-signing.html


On Fri, Feb 20, 2009 at 5:25 PM, Nox v.beh...@googlemail.com wrote:




 On 20 Feb., 17:24, Nox v.beh...@googlemail.com wrote:
  Hello, I've got a problem!
  I don`t  know how to sign an application on Linux.
 I using Ubuntu 8.05.
  Can you please help me???
 
  Thanks in advance
  Viktor
 


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



[android-developers] Re: UK developers listing currency?

2009-02-20 Thread Jon Colverson

Ok. Let's see if we can de-FUDify this thread with some facts:

Yes, the Market only allows UK sellers to list in GBP. Apparently the
Market shows the end user an estimated conversion in their local
currency, but I don't know if it shows that on the listing itself, or
only on the checkout page (hopefully both). This is a limitation in
Google Checkout, which currently only allows users to sell using their
own currency.

Google Checkout does have full support for EU VAT (do you really think
they would launch a service that couldn't be used legally?) VAT is
listed as a separate item on the receipts, as required. In the Tax
setup section of the Checkout settings you set the VAT rate for each
EU country individually (to allow for the situation where you are
registered in more than more country). The buyer's address is shown on
the receipt.

--
Jon

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



[android-developers] Re: Broken after update: FileNotFoundException on openFileOutput

2009-02-20 Thread Markus Junginger

It seems that the copy protection feature in the Market is broken, so
I recommend NOT to switch it on if you rely on file access.

I filed a bug report against Android:
http://code.google.com/p/android/issues/detail?id=2047

Again a tiny little checkbox causing so much trouble... Hope not too
many users left my app QuickSearch behind because of this... :\

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



[android-developers] Re: When will Android support Multiple PDP?

2009-02-20 Thread Jon Colverson

On Feb 20, 9:13 am, David Hu vistoda...@gmail.com wrote:
     More specifically, as I know, Symbian 7.0s  higher support Multiple
 PDP, that's mean you can create multiple, for example, GPRS context  use it
 simultaniously(such as MMS  WAP  Inet context)...
 Does Android support this feature? If not, when will it support?  Please
 help me.

The Android roadmap mentions upcoming support for multiple APNs:
http://source.android.com/roadmap

Is that the same thing?

--
Jon

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



[android-developers] How to prevent the default Web Page Not Available screen to show on Webview if my website is down?

2009-02-20 Thread j

Can Webview tell me that I didn't get a HTTP 200 OK HTTP response
code?

I really don't want to display the Android Web Page Not Available
screen inside my app.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Singed App on Emulator

2009-02-20 Thread Brian Conrad

Stoyan Damov wrote:
 On Fri, Feb 20, 2009 at 2:29 AM, jtoolsdev br...@jyotishtools.com wrote:
   
 I have an app that is ready for release however after signing the app
 when I attempt to upload it to the emulator I get an
 INSTALL_FAILED_UPDATE_INCOMPATIBLE.   I've searched and haven't
 found anything on this message.  I also signed another copy using the
 debug key and it installed fine.  Either the emulator can't run
 anything other than apps signed with the debug key and don't seeing
 anything saying that in the docs or there is something wrong with my
 own key which was prepared as per instructions?

 Thanks,
 Brian
 


 Have you first uninstalled your android debug keys-signed app before
 installing your-release keys-signed one?
Yes, the debug version was uninstalled.  I did a search again last night 
on the error and another thread on this group with the problem was 
listed and following those instructions was able to load and run the 
signed application.  A couple things however it after removing the 
programs listing from the packages.xml file the install still failed but 
after exiting the emulator and restarting it installed fine.  Also 
didn't have to use root mode to pull and push the packages.xml file.



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



[android-developers] Re: Signing an application on Linux

2009-02-20 Thread Brian Conrad

The problem with that guide is that it assumes some knowledge of Linux 
commands that not everyone is going to be familiar with or uses so 
seldom they forget how they work.  Here's a tutorial on how to set the 
environment variables (something I've had to do rarely on Linux):
http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/
This is necessary to get the right keytool.


Mads Kristiansen wrote:
 Did you follow this guide:
 http://developer.android.com/guide/publishing/app-signing.html


 On Fri, Feb 20, 2009 at 5:25 PM, Nox v.beh...@googlemail.com wrote:

   

 On 20 Feb., 17:24, Nox v.beh...@googlemail.com wrote:
 
 Hello, I've got a problem!
 I don`t  know how to sign an application on Linux.
   
 I using Ubuntu 8.05.
 
 Can you please help me???

 Thanks in advance
 Viktor

   


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



[android-developers] suspend/resume a thread from another thread in same app

2009-02-20 Thread sukumar

Hi Android experts,

I need to suspend/resume a thread from another thread in the same
process. I tried to look into thread apis,but I couldn't figured out a
way to achieve this.Can anyone pls point me some references to look or
give a tip to do this.  Thanks a lot in advance.

Regards,
Sukumar.


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



[android-developers] Re: *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***

2009-02-20 Thread Josh Dobbs
Robert, Does your Android Market listings page show any downloads? Mine does
not but according to google checkout I sold 1 application at 7 pm last
night. I don't see any feedback, downloads or anything.

On Fri, Feb 20, 2009 at 7:36 AM, Robert Green rbgrn@gmail.com wrote:


 It's strange - I can't get my own app off the market but other people
 are starting to now.  H

 On Feb 20, 9:21 am, Al Sutton a...@funkyandroid.com wrote:
  My guess would be a phased rollout based on device IDs.
 
  That way the scalability can be tested and rolled back if neccessary.
 
  Or, alternatively, they might think you're greedy having 2 G1s and so
  will only give you the service on 1 :) :) :).
 
  Al.
 
 
 
  Michael Martin wrote:
   *** Can anyone at Google explain why some G1s can see paid apps while
   others can't? 
 
   I don't believe this is a matter of an OTA updates but rather
   datacenter propagation thus it would depend on which Android Market
   datacenter the G1 is pinging.
 
   In my case I have 2 G1s (side by side) and 1 can see the paid apps
   while the other doesn't….could only assume they are both pinging the
   same DC.
 
   (I have already tried the reboot theory to no avail)
 
   Any formal explanation for this???
 
   Thank You,
   Michael Martin
  http://www.googleandblog.com/
 
  --
  ==
  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to compile G1 apps code

2009-02-20 Thread Josh Dobbs
Im just guessing but did you change the package name?

On Fri, Feb 20, 2009 at 7:00 AM, sunil.mahar...@lntinfotech.com wrote:


 I just created a new Android Project and change the Camera code for import
 packages and commented the code those are not required for me, i could have
 able to remove all the syntex errors.

 For the first time i ran the project and it was giving some errors and i
 ignored those, when i try to ran it second time it was giving error as
 *Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE*

 has any one experienced this type of error.

 I just checked the my Manifest.xml file and i am using shareUserId same as
 the camera apps is using
 android:sharedUserId=*android.media*




  *nEx.Software justin.shapc...@gmail.com*
 Sent by: android-developers@googlegroups.com

 02/20/2009 10:12 AM
   Please respond to
 android-developers@googlegroups.com

   To
 Android Developers android-developers@googlegroups.com  cc
   Subject
 [android-developers] Re: How to compile G1 apps code





 I'm on Windows... And I know nothing of Git so here's my process...

 For Camera.apk source, go to:

 http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=commit;h=1d4c75065966c4f6f56900e31f655bfd1b334435

 Download each raw file do your PC.
 Create a new Android Project in Eclipse.
 Import all of the downloaded files.
 Update the code as you wish.

 Make sure you change the Package Name in all places in the project
 else you won't be able to install it.
 If the Camera uses any internal classes, you won't be able to do this
 without the full Android source,
 And it's not generally OK to do this as non-SDK based apps are not
 supported.

 If all goes well, you can install directly to your phone and if you
 want upload to the Market.

 On Feb 19, 9:29 pm, sunil.mahar...@lntinfotech.com wrote:
  How did you compiled the Calculator code after you made your changes, can
  you plz lemme me know the procedure. I just want to change the Camera UI
  to add some extra button, when i press that button it should invoke my
  application.
 
  But i am not getting how to start and how to compile the Camera apps
 code.
  Can it be possible to Compile the Camera code indipendently, actually i
  couldn't find in the code any .apk file for Camera. So i am not sure how
  to compile the apps code.
 
  nEx.Software justin.shapc...@gmail.com
  Sent by: android-developers@googlegroups.com
  02/19/2009 10:50 PM
  Please respond to
  android-developers@googlegroups.com
 
  To
  Android Developers android-developers@googlegroups.com
  cc
 
  Subject
  [android-developers] Re: How to compile G1 apps code
 
  I did an app based on the Calculator.. I just downloaded the source
  fromhttp://android.git.kernel.org/and made my changes, don't know if
  the Calendar or Camera use classes outside of the SDK but I'd give
  that a shot and see what happens.
 
  On Feb 19, 10:17 am, Android sunil.mahar...@lntinfotech.com wrote:
 
   Hi..
 
   I wanna to compile the apps code, has any one tried it earlier, if so
   lemme know. How to compile the camera aur calender code.
 
   -Sunil
 
  __
 
  __


 __


 __

 


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



[android-developers] Re: Official update for G1 Andriod developer phone (ADP) stock firmware

2009-02-20 Thread Delio

Hello,

I meant to post, for some time now, a request to same effect as points
1 and 2 (from Karl's message).
Shipping a dev device with a firmware and the ability to flash a new
one without making the original firmware available forces me to boot
an hacked recovery image to backup the original firmware so I can
restore it at a later stage, which is rather unprofessional.
I understand that the dev firmware contains a few closed source
components and apps (maps API and application and gmail app for
instance) so it is not possible to rebuild an exact replica of the
original firmware from source. It would be sufficient if the repo was
tagged for each official release of the SDK so that it would compile
to a working firmware minus the closed source API and apps.

thanks
--
Delio

On Feb 20, 4:10 pm, waters.k...@gmail.com waters.k...@gmail.com
wrote:
 Hi JBQ,

 You are right, you have answered that question a lot, although I had a
 some trouble finding posts on it.

 A solution to everyone's problem might be a web page with some
 information. A page onhttp://developer.android.com/
 orhttp://code.google.com/android/
 orhttp://www.android.com/
 that would provide the following information would be incredibly
 helpful.

 1. An image of the original firmware release, so that I can easily
 return to a stable state.
 2. What steps are needed to check out the source code for that
 original stable state (source control revisions/tags/versions -
 whatever git calls them) so that I can build the above original
 firmware release myself. It would be really awesome if I could start
 my code modifications with a stable android tree that I know is
 already running and working on my device.
 3. Essentially the same blurb you posted above, about the next
 firmware release.

 It seems like that shouldn't take more then a few minutes of work, and
 maybe a few weeks of hassling the web guys. When the next release
 comes up, just add items 1 and 2 for it, and update item 3 for the
 next release.

 Thanks,
 Karl

 On Feb 19, 8:58 am, Jean-Baptiste Queru j...@android.com wrote:

  My gripe about your post is that you didn't search the archives or
  read the messages of the last few days.

  I've personally answered question #1 more times than I can remember,
  so I guess that one more time won't hurt: it's not available yet,
  we're working on it.

  I'm not allowed to answer question #2.

  JBQ

  On Wed, Feb 18, 2009 at 6:10 PM, shimsim shim@gmail.com wrote:

   This is my first post and i am new to Android so excuse my ignorance
   if this is well documented and common knowledge.
   I have a stock ADP, firmware 1.0, no updates no mods and of course i
   want to get the latest features such as voice control, latitude etc,
   and so begins the fun  Why is there nothing official that can be
   easily found which states what is going on for people that own the
   ADP? I must have read dozens of articles showing update procedures and
   claiming to have leaked OFFICIAL developer updates and only recently
   did i find 2 thread that eventually end with something stating there
   is NO official update for developer phones yet.

   I have 2 gripes about this:

   1. Why no official and clear statement from the development team to
   clarify this before people start scrambling desperately to install
   leaked versions that are false? (i know i almost did)
   2. Why as a developer do i have to wait for features that are already
   available to end users? Am i missing something or is that the wrong
   way around

   As i said above, excuse me if i have missed the obvious flashing sign
   on the front page of the android website that clarifies all this but
   from what i have read on other sites i'm not the only person who has
   these questions and cant find the answers.

   thanks!

  --
  Jean-Baptiste M. JBQ Queru
  Android Engineer, Google.

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



[android-developers] Where can I put some media files(image or video) into emulator or real device

2009-02-20 Thread max

Hi All,

Really very urgent!

I am using the  latest git code to play with. I wanna know how can I
play with GALLERY, it always complain NO MEDIA FOUND, I do wanna
know where and how can I put some JPG, BMP or something other media
stuff into the emulator/Real device to make the GALLERY app display
them.



Thanks a lot in advance!


Max

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



[android-developers] Cannot sync Calendar with Google Calendar service on emulator

2009-02-20 Thread Johnson
Hi,
I run the 1.0r1 emulator and install Calendar.apk and CalendarProvider.apk
on the emulator. And I configure the username and pwd from DevTools-Google
Service Login successfully.
Now I can start the Calendar app successfully, with the month view/week
view/etc. But I don't know how to sync the calendars or events with Google
Calendar service. From the source code, I assume there should happen sync
operation. But it didn't happened. And I know another trigger to sync is
Menu-More-My Calendars, but after selected, the activity will crash. The
below is from DDMS logcat:
02-21 00:59:44.260: INFO/ActivityManager(56): Starting activity: Intent {
action=android.intent.action.VIEW
comp={com.android.calendar/com.android.calendar.SelectCalendarsActivity} }
02-21 00:59:44.681: WARN/dalvikvm(376): VFY: unable to resolve virtual
method 428:
Lcom/google/android/googleapps/GoogleLoginCredentialsResult;.getStatus
()Lcom/google/android/googleapps/LoginData$Status;
02-21 00:59:44.681: WARN/dalvikvm(376): VFY:  rejecting opcode 0x6e at
0x0012
02-21 00:59:44.681: WARN/dalvikvm(376): VFY:  rejected
Lcom/google/android/googlelogin/GoogleLoginServiceBlockingHelper;.getAuthToken
(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
02-21 00:59:44.681: WARN/dalvikvm(376): Verifier rejected class
Lcom/google/android/googlelogin/GoogleLoginServiceBlockingHelper;
02-21 00:59:44.681: WARN/dalvikvm(376): threadid=17: thread exiting with
uncaught exception (group=0x40010e28)
02-21 00:59:44.681: ERROR/AndroidRuntime(376): Uncaught handler: thread
AsyncQueryWorker exiting due to uncaught exception
02-21 00:59:44.711: ERROR/AndroidRuntime(376): java.lang.VerifyError:
com.google.android.googlelogin.GoogleLoginServiceBlockingHelper
02-21 00:59:44.711: ERROR/AndroidRuntime(376): at
com.android.providers.calendar.CalendarProvider.fetchCalendarsFromServer(CalendarProvider.java:965)
02-21 00:59:44.711: ERROR/AndroidRuntime(376): at
com.android.providers.calendar.CalendarProvider.queryInternal(CalendarProvider.java:841)
02-21 00:59:44.711: ERROR/AndroidRuntime(376): at
android.content.SyncableContentProvider.query(SyncableContentProvider.java:373)
02-21 00:59:44.711: ERROR/AndroidRuntime(376): at
android.content.ContentProvider$Transport.query(ContentProvider.java:128)
02-21 00:59:44.711: ERROR/AndroidRuntime(376): at
android.content.ContentResolver.query(ContentResolver.java:147)
02-21 00:59:44.711: ERROR/AndroidRuntime(376): at
android.content.AsyncQueryHandler$WorkerHandler.handleMessage(AsyncQueryHandler.java:74)
02-21 00:59:44.711: ERROR/AndroidRuntime(376): at
android.os.Handler.dispatchMessage(Handler.java:88)
02-21 00:59:44.711: ERROR/AndroidRuntime(376): at
android.os.Looper.loop(Looper.java:123)
02-21 00:59:44.711: ERROR/AndroidRuntime(376): at
android.os.HandlerThread.run(HandlerThread.java:60)


-- 
Best and Regards
Johnson

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



[android-developers] File permissions using Java

2009-02-20 Thread Androffice Developers
Somebody knows how viewing or changing the file permissions on file system
using Java?  Actually I'm using File class to know if the file is only for
write or read but it's not enough for me.

Thanks.

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



[android-developers] Re: USB signal control class?

2009-02-20 Thread Butch

Is there a Java API for accessing the USB port in the latest release?
Company looking to develop an attachment for data collection.

Best,
Roy

On Dec 30 2008, 8:53 am, rr...@scires.com wrote:
 Justin,

 You say In 1.0 you don't have access to theUSBport via the Java API
 layer. .  Does that imply that there is another interface that may
 allow me to access theUSBport?  We would like to use the G1 as a
 control head for several devices and a wireless link will not be
 appropriate.  We are hoping to use theUSBto get control information
 and data back and forth.

 Thanks,
 Rob

 On Dec 15, 5:39 pm, Justin (Google Employee) j...@google.com wrote:

  Pavel,

  It sounds like you're trying to do hardware development, and the SDK
  isn't really designed for this. You can modify the source and,
  assuming you have a developer device, flash your new system on to your
  device.

  Its unlikely that any device will ever support simultaneous access to
  the SD card by the device and a host computer. The file system of the
  SD card (FAT32) is not designed for this type of multi-host access.

  Cheers,
  Justin
  Android Team @ Google

  On Oct 27, 3:59 pm, Pavel Antokolsky aka Zigmar zig...@gmail.com
  wrote:

   On Oct 24, 6:35 pm, Justin (Google Employee) j...@google.com
   wrote:

In 1.0 you don't have access to theUSBport via the Java API layer.
What is the goal of your project?

   Hello Justin,
   I'm unsure what Chamika is doing, but I have a similar problem. My app
   needs to communicate with a hardware device (an embedded device,
   running WindowsCE and acting asUSBhost). Currently, I'm kinda stuck
   because I can't figure out how to do this. I was hoping to accomplish
   this by making my app write and read to files at SD Card, while the
   other device would access those files via mass storage interface, but
   as discovered recently (discussed in this topic:http://tinyurl.com/6xxovg)
   an android app can't write on SD card while it is accessible viausb
   (at G1 unit at least). Could you suggest some direction to look at,
   please?

   Best Regards,
   Zigmar- Hide quoted text -

  - Show quoted text -

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



[android-developers] Screen

2009-02-20 Thread Danex

Hi, I am looking for an app that can adjust my screen sensitity, for
example: if I wanted to use my finger nails instead of my finger tip.
A tmobile agent mentioned to me they have one but I've looked for days
and cannot find one. Please help!

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



[android-developers] Replacement for Zoom Slider

2009-02-20 Thread tanu

Please tell me what is the replacement for zoom slider now?

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



[android-developers] Is there any window registry like functionality in android

2009-02-20 Thread Peter

I want applications to check whether hardware supports touch, single
touch or multitouch. Based on that applications should enable
different behaviors.

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



[android-developers] Any answer to this question

2009-02-20 Thread Glen

Marco?

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



[android-developers] SVG files

2009-02-20 Thread Alam

Hi,

I've questions w.r.t svg file.
1. Does Android support for svg files. if yes than can we use the svg
files in our resource folder while creating applications?
2. Is it possible to rendered svg file? What parsers are needed? Does
android provide any such parser?

Please let me know about this many questions.

Thanks

Irshad

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



[android-developers] Android's communication mechanisms

2009-02-20 Thread NameZero912

Hi there,

I'm looking for a summary of libraries/APIs that Google Android
provides for communicating with other endpoints, e.g. servers, over
the internet. I'm basically looking for a complete list of
communication mechanisms that are well defined using interfaces, such
as SOAP or others

What I found out until now:
1) Android provides the Apache Commons HttpClient which allows to use
kSOAP on top, allowing me to do SOAP queries (however, all the logic
has to be done manually)
2) ewww.. that's it - looks pretty thin to me, for a device that is
relying so much on the GPRS/UMTS connection, which requires some kind
of communication mechanisms

I'm really just looking for brief points, once I know some new terms I
can find more explanation using www.google.com anyway. Also, feel free
to suggest external (but working) libraries that add functionalities
(basically everything is either based on HTTP or using common socket
connections, so it's just a matter of libraries I think).

Kind regards,
Marius Shekow

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



[android-developers] Re: Official update for G1 Andriod developer phone (ADP) stock firmware

2009-02-20 Thread Dirk Jäckel

On Fri, Feb 20, 2009 at 7:30 AM, Jean-Baptiste Queru j...@android.com wrote:

 -the 1.0 images aren't currently available either. I expect that
 they'll be made available at the same time as the 1.1 images (which
 will allow to switch back and forth between the two). I don't know any
 specific time frame for this to happen.

If you need them anyway you can get them here:

http://www.gotontheinter.net/content/android-dev-phone-1-software-image

Greetings,
Dirk

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



[android-developers] OMA DM support

2009-02-20 Thread Surendra Reddy T
Hi Guys,

I am surendra, have joined the group. I am searching for the DM support in
android. But from the sdk docs I didnt get any thing.
Could any one please let me know whether android is supporting OMA DM or not
?
If not do we have to develop our own DM client ?

And alos I want to know how to manage the appilcations on the device, like
install an application, find and uninstall.

Thanks in advance. Happy weekend .

Regards
Surendra

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



[android-developers] Re: Changing Font Size On Tab Activity

2009-02-20 Thread toihart

I have changed de font size by changing my own theme.

I added to my styles.xml the following lines:

style name=Widget.TabWidget
 item name=android:textSize11dip/item
/style

and to my themes.xml:

item name=android:tabWidgetStyle@style/Widget.TabWidget/item



Mark Hansen ha escrito:
 I don't think that was clear, I'm looking for a way to change the
 default font size on the tab itself.

 On Feb 18, 2:36 pm, Mark Hansen stonedon...@gmail.com wrote:
  Is there a way to change the font size on a tabbed Activity?  I can
  add an icon but I'd like to shrink the font a bit?

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



[android-developers] Re: Confused about handling SSL Errors in WebView

2009-02-20 Thread Manuel

I have the same problem, and didn't manage to find a way even to
detect the error. Any clues?

On Feb 13, 1:54 pm, whitemice markbr...@zedray.co.uk wrote:
 I have a WebView and I want to capture an error, most likely related
 to a web page having an invalidSSLcertificate(company Intranet).
 Currently the MyWebViewClient.onPageStarted() method is called, and no
 secure content is shown the the page.

 Generally I would expect WebViewClient.onReceivedError() to be called
 to handle this situation, although the documentation is not quite
 clear on exactly what kind of errors this method covers.

 Looking at the Android Browser implementation source code, it seems to
 call WebViewClient.onReceivedSslError() on line 2954, which triggers
 the relevant 
 sitecertificateprompt:http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a...

 ...which of course is a method that was removed in 
 0.9:http://code.google.com/android/migrating/m5-0.9/changes/android.webki...

 I am not clued up enough to take on the WebKit source and can't find
 any documentation on what if anything has replaced the
 onReceivedSslError() method.

 Is this a bug/omission in the Android platform?  How was the
 release-1.0 browser complied with missing classes?  Am I doing
 something completely wrong?

 Thanks in advance for your feedback.
 Mark

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



[android-developers] Re: Emulator doesn't link sometimes

2009-02-20 Thread todd

This happens to me occasionally and is a bit annoying. I too just
close the emulator instance and start it again. That works most of the
time, although I've had to completely restart the machine on other
occasions.

Todd

On Feb 19, 7:09 pm, Ivan Soto ivanso...@gmail.com wrote:
 Hi, I'm developing on a Mac with Eclipse and the emulator sometimes doesn't
 seem to link to eclipse (doesn't show anything in the logcat). I just have
 to close and run again and it works. I wonder why this happens.
 Has anybody else experienced this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Android Market: server error when authorizing credit card

2009-02-20 Thread SR

Hi all,

I've been trying to buy some apps but have been getting a server error
after Authorizing credit card... bubble shows up.   For about an
hour or so...

Anybody else have this problem?

Maybe there are problems with the server and someone from Google ought
to look at them?

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



[android-developers] Re: SVG files

2009-02-20 Thread Mike Reed

Sorry, we have no support for SVG in the platform.

On Fri, Feb 20, 2009 at 5:18 AM, Alam irshad...@gmail.com wrote:

 Hi,

 I've questions w.r.t svg file.
 1. Does Android support for svg files. if yes than can we use the svg
 files in our resource folder while creating applications?
 2. Is it possible to rendered svg file? What parsers are needed? Does
 android provide any such parser?

 Please let me know about this many questions.

 Thanks

 Irshad

 


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



[android-developers] Re: How to display SVG file in Android Application

2009-02-20 Thread Mike Reed

Sorry, we have no support for SVG in the platform.

On Fri, Feb 20, 2009 at 7:57 AM, Alam irshad...@gmail.com wrote:

 Hi All,

 I've some question regarding .svg file.

 1. Is it possible to display .svg file in our application as an icon
 or picture or image at background? How can we acheive it?

 2. How to render/ manipulate an .svg file on some event firing?
 3. Does Android support org.w3c.dom.svg package for parsing svg file?

 Please let me know soon your suggestion in this regard

 Thanks

 Irshad

 


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



[android-developers] Re: Android Market: server error when authorizing credit card

2009-02-20 Thread Shane Isbell
At SlideME, we are encouraging any users that have problems purchasing an
app from Android Market, to ask the developer to upload to
http://slideme.org so you can purchase. We have two different payment
processors, so you've got some options.

Shane

On Fri, Feb 20, 2009 at 9:58 AM, SR stan.r...@gmail.com wrote:


 Hi all,

 I've been trying to buy some apps but have been getting a server error
 after Authorizing credit card... bubble shows up.   For about an
 hour or so...

 Anybody else have this problem?

 Maybe there are problems with the server and someone from Google ought
 to look at them?

 SR
 


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



[android-developers] Re: Android Market: server error when authorizing credit card

2009-02-20 Thread g1bb

Are you trying to purchase your own app? I got the same error when I
did, but not when I purchased someone else's.

On Feb 20, 10:58 am, SR stan.r...@gmail.com wrote:
 Hi all,

 I've been trying to buy some apps but have been getting a server error
 after Authorizing credit card... bubble shows up.   For about an
 hour or so...

 Anybody else have this problem?

 Maybe there are problems with the server and someone from Google ought
 to look at them?

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



[android-developers] Why can't I see my own comments?

2009-02-20 Thread Mattaku Betsujin
I tried to give my app a little boost, and gave it 5 stars on my phone.
Strangely, I cannot see my own comment, even on cyrket.

http://www.cyrket.com/package/com.nubinews.fullreader

Does Google use some sort of psychic sensing to filter out comments by the
app's writer?

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



[android-developers] Re: Paid applications - are they downloadable now? By Al Sutton

2009-02-20 Thread ellipsoidmob...@googlemail.com

Very frustrating being sat in the UK having no idea if my app is
visible! Surprised not to have heard any comment from Google as to if/
how paid apps have now been rolled out.

In the meantime, if anyone in the US fancies seeing if they can see an
app called ActiveGPS on the market I'd be very grateful!

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



[android-developers] Re: Paid applications - are they downloadable now? By Al Sutton

2009-02-20 Thread Josh Dobbs
Im in Caifornia and I can't even see any paid apps yet.


On Fri, Feb 20, 2009 at 10:57 AM, ellipsoidmob...@googlemail.com 
ellipsoidmob...@googlemail.com wrote:


 Very frustrating being sat in the UK having no idea if my app is
 visible! Surprised not to have heard any comment from Google as to if/
 how paid apps have now been rolled out.

 In the meantime, if anyone in the US fancies seeing if they can see an
 app called ActiveGPS on the market I'd be very grateful!

 Tony
 


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



[android-developers] How to enable USB Mass storage?

2009-02-20 Thread ebmajor

Dear all,

I'm trying to use my USB mass storage (8GB USB memory stick) on
Android.
But I can not enable it. Obviously USB power is not turned on.
(My USB memory stick has power indicating LED)

I'm very wondering why USB power is not turned on!!

I've tried almost everything I can, but I failed. Please give me any
idea what I should do.
Here is my booting log. I'm using 8GB USB stick.
I hope I can get any ideas here.

The messages below are that I ran after kernel is booted up.
==
/proc # cat
interrupts
 
CPU0
  3: 42  SC
ohci_hcd:usb1
 17:  2  SC
LCD
 22:134  SC
FFUART
 23: 11  SC  pxa2xx-
mci
 25:  0  SC
DMA
 26:   3341  SC
ost0
192:  0FPGA  MMC card
detect
Err:
0

/proc # cat
partitions
major minor  #blocks
name

  31 0256
mtdblock0
  31 1   4096
mtdblock1
  31 2  28416
mtdblock2
   8 0   8192 sda   == This sda is alway
shown up regardless whether USB memory stick is plugged in or not.

/proc/scsi # cat
scsi
Attached
devices:
Host: scsi0 Channel: 00 Id: 00 Lun:
00
  Vendor: LinuxModel: scsi_debug   Rev:
0004
  Type:   Direct-AccessANSI  SCSI revision:
05

If I insert my USB memory stick into the working Android target board,
I can see this message.
'scsi 0:0:0:0: Direct-Access FM Memorette Swing 1.00 PQ: 0 ANSI: 2'


/proc # cat
devices
Character
devices:
  1
mem
  2
pty
  3
ttyp
  4 /dev/vc/
0
  4
tty
  4
ttyS
  5 /dev/
tty
  5 /dev/
console
  5 /dev/
ptmx
  7
vcs
 10
misc
 13
input
 21
sg
 29
fb
 90
mtd
128
ptm
136
pts
180
usb
189
usb_device
253
usb_endpoint
254
bsg

Block
devices:
  7
loop
  8
sd
 31
mtdblock
 65
sd
 66
sd
 67
sd
 68
sd
 69
sd
 70
sd
 71
sd
128
sd
129
sd
130
sd
131
sd
132
sd
133
sd
134
sd
135
sd
179 mmc
==

Uncompressing
Linux.
Linux version 2.6.25 (r...@ubuntu) (gcc version 4.3.2 (Sourcery G++
Lite 2008q39
CPU: XScale-PXA270 [69054117] revision 7 (ARMv5TE), cr=397f
Machine: Intel HCDDBBVA0 Development Platform (akaMainstone)
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cachewriteback
Run Mode clock: 104.00MHz(*8)
Turbo Mode clock: 416.00MHz (*4.0,active)
Memory clock: 104.00MHz (/1)
System bus clock:52.00MHz
CPU0: D VIVT undefined 5cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages:
16256
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 init=/
init console=ttyS0,38400 mem=64M PID hash table entries: 256 (order:
8, 1024bytes)
Console: colour dummy device80x30
Dentry cache hash table entries: 8192 (order: 3, 32768bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384bytes)
Memory: 64MB = 64MB total
Memory: 61184KB available (3172K code, 452K data, 100Kinit)
Mount-cache hash table entries:512
CPU: Testing write buffer coherency:ok
net_namespace: 152bytes
NET: Registered protocol family16
Mainstone configured to boot from processor- flash SCSI subsystem
initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driverusb
NET: Registered protocol family2
IP route cache hash table entries: 1024 (order: 0, 4096bytes)
TCP established hash table entries: 2048 (order: 2, 16384bytes)
TCP bind hash table entries: 2048 (order: 1, 8192bytes)
TCP: Hash tables configured (established 2048 bind2048)
TCP renoregistered
NetWinder Floating Point Emulator V0.97 (doubleprecision)
ashmem:initialized
JFFS2 version 2.2. (NAND)2001-2006 Red Hat, Inc.yaffs Feb 18 2009
15:48:48
Installing.Block layer SCSI generic (bsg) driver version 0.4 loaded
(major254)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered(default)
Console: switching to colour frame buffer device 30x40
pxa2xx-uart.0: ttyS0 at MMIO 0x4010 (irq = 22) is a FFUART console
[ttyS0] enabled
pxa2xx-uart.1: ttyS1 at MMIO 0x4020 (irq = 21) is a BTUART
pxa2xx-uart.2: ttyS2 at MMIO 0x4070 (irq = 20) is a STUART
loop: module loaded
Invalid chip endian 0x087f68
pxa_free_dma: trying to free channel 0 which is already freed
pxa_free_dma: trying to free channel 0 which is already freed
smc911x: not found (-19).
dm9000 Ethernet Driver,V1.30
Uniform Multi-Platform E-IDE driver
ide: Assuming 50MHz system bus speed for PIO modes; override with
idebus=xx osst :I: Tape driver with OnStream support version
0.99.4
osst :I: $Id: osst.c,v 1.73 2005/01/01 21:13:34 wriede Exp $ Driver

[android-developers] TeluguBabes MONICA BATHING SHOW

2009-02-20 Thread shakeela shakeela
 CLICK HERE http://tamilcinemamasala.blogspot.com/

















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



[android-developers] Re: Why can't I see my own comments?

2009-02-20 Thread Sundog

No, I see my own blatant self-promotion just fine. ;)

On Feb 20, 11:45 am, Mattaku Betsujin mattaku.betsu...@gmail.com
wrote:
 I tried to give my app a little boost, and gave it 5 stars on my phone.
 Strangely, I cannot see my own comment, even on cyrket.

 http://www.cyrket.com/package/com.nubinews.fullreader

 Does Google use some sort of psychic sensing to filter out comments by the
 app's writer?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Market: server error when authorizing credit card

2009-02-20 Thread Sundog

Same here.

On Feb 20, 11:38 am, g1bb corymgibb...@gmail.com wrote:
 Are you trying to purchase your own app? I got the same error when I
 did, but not when I purchased someone else's.

 On Feb 20, 10:58 am, SR stan.r...@gmail.com wrote:

  Hi all,

  I've been trying to buy some apps but have been getting a server error
  after Authorizing credit card... bubble shows up.   For about an
  hour or so...

  Anybody else have this problem?

  Maybe there are problems with the server and someone from Google ought
  to look at them?

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



[android-developers] Re: TeluguBabes MONICA BATHING SHOW

2009-02-20 Thread g1bb

great

On Feb 20, 12:08 pm, shakeela shakeela shakeela...@googlemail.com
wrote:
  CLICK HERE http://tamilcinemamasala.blogspot.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Paid applications - are they downloadable now? By Al Sutton

2009-02-20 Thread aclelland

Paid applications are Live in the US but not the UK AFAIK. My google
checkout account has some purchases in it.

On Feb 19, 9:45 pm, Josh Dobbs joshdo...@gmail.com wrote:
 seriously, can't someone at google comment on this? preferably someone that
 knows when this will launch?

 On Thu, Feb 19, 2009 at 1:40 PM, g1bb corymgibb...@gmail.com wrote:

  I don't know... but I doubt it. I'm just going to keep checking my
  phone every 2 minutes.

  On Feb 19, 2:37 pm, Stoyan Damov stoyan.da...@gmail.com wrote:
   Does anybody know if there will be announcement on this list when paid
   apps become available for users?

   On Thu, Feb 19, 2009 at 11:18 PM, Josh Dobbs joshdo...@gmail.com
  wrote:
they have difinately missed the target. I am on the west coast and
  holiday
or no holiday mid week is/was wednesday.

On Thu, Feb 19, 2009 at 1:08 PM, Jon Colverson jjc1...@gmail.com
  wrote:

On Feb 19, 9:03 pm, Stoyan Damov stoyan.da...@gmail.com wrote:
 It is the message below?

 Actually, it's really mid-week on the US west coast, it's thursday
 morning (before people start to work) on a 4-day week (monday was a
 holiday)

Yes. I figure he wouldn't bother pointing out that the target hasn't
passed yet if he thought they were going to miss the target.

--
Jon- Hide quoted text -

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



[android-developers] Re: Sensors don't work on partial wake lock

2009-02-20 Thread hawaiiart.com

I am having the same problem, and can not monitor the accelerometer
without the screen being kept dim.  I'll keep posting on this issue
but haven't seen any work-around yet (if one exists).   Can a Google
Engineer please close this thread with a no it cant happen or here
is the way to deal with this. I would be most grateful.





On Jan 26, 1:46 pm, Blikkies Botha james.pretor...@gmail.com wrote:
 In case anyone encounters this issue:

 Based on the acceleration values one gets during a screen flip I think
 theaccelerometeris mounted on the screen assembly so they probably
 can't be powered independently. If this is the case it's obviously a
 hardware implementation decision that Android should hide. Don't be
 surprised if future phones exhibit different behavior because 
 theaccelerometeris housed in a different location.

 On Jan 20, 8:42 am, Blikkies Botha james.pretor...@gmail.com wrote:

  Theaccelerometerturns off when the screen is off. I'm guessing this
  is a bug but I haven't seen it logged. Am I missing something?

  Perhaps the power management features need some improvement - the
  ability to specify what components are needed during a
  partial_wake_lock so that power can be conserved as efficiently as
  possible.

  BTW, there is a bug logged noting that onSensorChanged() continues to
  be called for the orientation sensor (duringsleep) but the values are
  not being updated.


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



[android-developers] Re: Paid applications - are they downloadable now? By Al Sutton

2009-02-20 Thread Robert Green

They're up in the US on some phones.  I have them on mine and my
friend also confirmed on his.

On Feb 20, 1:47 pm, aclelland aclell...@gmail.com wrote:
 Paid applications are Live in the US but not the UK AFAIK. My google
 checkout account has some purchases in it.

 On Feb 19, 9:45 pm, Josh Dobbs joshdo...@gmail.com wrote:

  seriously, can't someone at google comment on this? preferably someone that
  knows when this will launch?

  On Thu, Feb 19, 2009 at 1:40 PM, g1bb corymgibb...@gmail.com wrote:

   I don't know... but I doubt it. I'm just going to keep checking my
   phone every 2 minutes.

   On Feb 19, 2:37 pm, Stoyan Damov stoyan.da...@gmail.com wrote:
Does anybody know if there will be announcement on this list when paid
apps become available for users?

On Thu, Feb 19, 2009 at 11:18 PM, Josh Dobbs joshdo...@gmail.com
   wrote:
 they have difinately missed the target. I am on the west coast and
   holiday
 or no holiday mid week is/was wednesday.

 On Thu, Feb 19, 2009 at 1:08 PM, Jon Colverson jjc1...@gmail.com
   wrote:

 On Feb 19, 9:03 pm, Stoyan Damov stoyan.da...@gmail.com wrote:
  It is the message below?

  Actually, it's really mid-week on the US west coast, it's thursday
  morning (before people start to work) on a 4-day week (monday was a
  holiday)

 Yes. I figure he wouldn't bother pointing out that the target hasn't
 passed yet if he thought they were going to miss the target.

 --
 Jon- Hide quoted text -

- Show quoted text -


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



[android-developers] Market Apps Not Really Protected

2009-02-20 Thread Shane Isbell
Looks like android application security has already been hacked:
http://strazzere.com/blog/

Shane

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



[android-developers] Re: How to prevent the default Web Page Not Available screen to show on Webview if my website is down?

2009-02-20 Thread Fred Grott(shareme)

Okay lets see its WebVIewClient


public void onReceivedError(WebView view, int errorCode, String
description, String failingUrl)
 {
 Toast.makeText(myApp, Oh no! Load Error  + 
description,
Toast.LENGTH_SHORT).show();
}

You need to initialize Context myApp to use that code block
plus set up WebViewClient



On Feb 20, 11:04 am, j jac...@gmail.com wrote:
 Can Webview tell me that I didn't get a HTTP 200 OK HTTP response
 code?

 I really don't want to display the Android Web Page Not Available
 screen inside my app.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Universal Media _ID

2009-02-20 Thread robotissues

Is there such a thing as a Universal Media ID?  I noticed that if
media files are moved around on the sd card it is assigned a new ID
after the MediaStore reindexes.  I need my app to keep track of media
files, so I am looking for a better option.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Using my own SQLite database

2009-02-20 Thread burton miller

yeah - same problem here.

i determined that (2 months ago) it was impossible.  here are your
options:

1)  copy the db from your apk (as a raw resource) to the file system
at run time, and access it there - which doubles the size of your db
footprint.
2) download your db upon installation

my db is 5MB, so i had to go with option 2, which results in a ~1
minute installation when you first run the app.  this is a shitty
solution, but right now that seems to be it.  if your db is small, use
option 1.

On Feb 18, 3:56 pm, mcssys mcs...@gmail.com wrote:
 I have the same need.  Any help would be greatly appreciated.

 And...

 1. When an application is installed on a device, is the same directory
 structure that is used on the Emulator duplicated on the device.  When
 I try to view the device directory structure, I get a opendir failed,
 permission denied so I cannot verify if it is the same structure.

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



[android-developers] Re: Is there any window registry like functionality in android

2009-02-20 Thread Fred Grott(shareme)

Hello Peter,

No, you will have to check by existence of class to check which touch
is supported

I would say start with the TouchEvents

On Feb 20, 3:50 am, Peter saurabh.s...@gmail.com wrote:
 I want applications to check whether hardware supports touch, single
 touch or multitouch. Based on that applications should enable
 different behaviors.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ListView and focusing

2009-02-20 Thread Greg Krimer

Oh! In that case I think the behavior you are observing is by design.
Have a look at this thread:

http://groups.google.com/group/android-developers/browse_thread/thread/3d96af1530a7d62a/9f9919a4b604c104?lnk=gstq=clickable+focusable#9f9919a4b604c104

On Feb 19, 4:09 pm, Selmi se...@centrum.sk wrote:
 I am not able to find out how to do it. Now i am sure that its because
 i capture onClick for embedded TextView. I tried to do this in
 handler:

 v is clicked TextView
 final View view=(View)(v.getParent()); //to get RelativeLayout which
 is list item
 final Drawable drawable=getListView().getSelector();
 view.setBackgroundDrawable(drawable);
 view.invalidate();

 idea was that this will set list selector as background and it will
 look like it should. but in reality it draws selector to wrong item!
 and sooner or later several selectors appear on screen... so this is
 not solution. i am afraid i am not understanding something fundamental

 On 18. Feb, 01:55 h., Selmi se...@centrum.sk wrote:

  i found what is problem

  in layout which is used by list item i have several controls. for
  simplicity i narrowed it down to checkbox and textview

  i want to do such thing that if you touch checkbox then one action
  happens, if you touch something else (textview in my case) then
  something else happens
  if you press navigation button then i choose one of these actions in
  program

  and this is problem. i don't know which view inside list item was
  pressed when i get into onListItemClick method. so i added
  onCheckedChangeListener to checkbox to know if something happens.
  still everything works. then i added onClickListener to remaining
  textview control, and since then there is no visible flash of focus,
  but instead color changes to black

  so problem really seems to be in this onClickListener. i guess issue
  is that because i catch click in textview it won't get into ListView
  processing.

  i tried to use LayoutInflater to get layout for
  android.R.layout.simple_list_item_1, then get color states for its
  text1 and set it for my textview in hope it will behave the same then.
  it doesn't.

  so to solve this i see two ways and none of them i know how to do

  1 - do something so i will know which exactly view was pressed when i
  get to onListItemClick method. this would be the best solution if its
  possible
  2 - find a way how to set my textview to exactly same color states
  which are used by list by default
  3 - maybe something else i don't know what. this list selector idea i
  don't like much because for i have to make it look and behave exactly
  the same as android does it by default (this is condition i can't
  argue about)

  any idea?

  On 17. Feb, 04:36 h., Romain Guy romain...@google.com wrote:

   The problem is probably that your list item is opaque. The selector
   is, by default, drawn *behind* the list item. either use a different
   selector, or draw it on top (which requires a different selector
   anyway since the default one is opaque) or make your list items'
   background support the selected state.

   Also, instead of setting a single solid color, you should use colors
   that support states.

   On Mon, Feb 16, 2009 at 6:59 PM, Greg Krimer gkri...@gmail.com wrote:

Hi, can you check out this thread to see if it is the same problem you
are 
having:http://groups.google.com/group/android-developers/browse_thread/threa...

Basically, try setting the text color to an explicit value (as opposed
to a style).

Also, have a look 
at:http://developer.android.com/reference/android/widget/AbsListView.htm...)
or its XML equivalent android:listSelector.

If neither of these help, post your code.

On Feb 16, 2:46 pm, Selmi se...@centrum.sk wrote:
when i have listview and i use some listadapter provided by android
api then when you touch item in list it flashes with orange colour and
then action is processed

if i have my own adapter this flash doesn't happen. instead text color
changes to black for a moment (and becomes unreadable)  is there
something special i need to do to enable it?

my adapter is actually based on cursoradapter and all it does is that
it adds onClick handlers to some of controls used in list item layout
and sets values of some widgets which are not handled by
simplecursoradapter by default

   --
   Romain Guy
   Android framework engineer
   romain...@android.com

   Note: please don't send private questions to me, as I don't have time
   to provide private support.  All such questions should be posted on
   public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to

[android-developers] Re: Paid applications - are they downloadable now? By Al Sutton

2009-02-20 Thread Kevin E. Phillips, Sr.
Agreed, Paid apps are in there, but I cannot purchase any of them. It's 
quite a lovely little bug/issue.

aclelland wrote:
 Paid applications are Live in the US but not the UK AFAIK. My google
 checkout account has some purchases in it.

 On Feb 19, 9:45 pm, Josh Dobbs joshdo...@gmail.com wrote:
   
 seriously, can't someone at google comment on this? preferably someone that
 knows when this will launch?

 On Thu, Feb 19, 2009 at 1:40 PM, g1bb corymgibb...@gmail.com wrote:

 
 I don't know... but I doubt it. I'm just going to keep checking my
 phone every 2 minutes.
   
 On Feb 19, 2:37 pm, Stoyan Damov stoyan.da...@gmail.com wrote:
   
 Does anybody know if there will be announcement on this list when paid
 apps become available for users?
 
 On Thu, Feb 19, 2009 at 11:18 PM, Josh Dobbs joshdo...@gmail.com
 
 wrote:
   
 they have difinately missed the target. I am on the west coast and
   
 holiday
   
 or no holiday mid week is/was wednesday.
   
 On Thu, Feb 19, 2009 at 1:08 PM, Jon Colverson jjc1...@gmail.com
   
 wrote:
   
 On Feb 19, 9:03 pm, Stoyan Damov stoyan.da...@gmail.com wrote:
 
 It is the message below?
   
 Actually, it's really mid-week on the US west coast, it's thursday
 morning (before people start to work) on a 4-day week (monday was a
 holiday)
   
 Yes. I figure he wouldn't bother pointing out that the target hasn't
 passed yet if he thought they were going to miss the target.
 
 --
 Jon- Hide quoted text -
 
 - Show quoted text -
 
 

   


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



[android-developers] Re: How to get a region which is not a standard rect area

2009-02-20 Thread Mike Reed

By bug, I mean I would like to relax the restriction, and allow you to
pass null. I don't know yet when the could get in. Thus you should
always (for now) pass in  a region as the clip. It can be something
large with no downside (i.e. -10,000,  10,000)

On Fri, Feb 20, 2009 at 3:57 PM, David Hu vistoda...@gmail.com wrote:
 Thanks for your explanation, Mike.  So, if there is not a bug,  I can pass
 the outer rect  as clip region to attain my aim, and:
 Region rgn  = new Region();
  (1)  //- actual result: The application will crash here with an
 exception here
//--expect result : ?
rgn.setPath(p, null);
   (2)  //- actual result: The region is the rect area which encircle
 the rotated
 rect, not the rotated rect itself
 //---expect result :?
 rgn.setPath(p, rgn);
   (3) //-  actual result: The region is the rect area which encircle
 the rotated
 rect, not the rotated rect itself
   //--- expect result: The region should be a complicate
 area, inclined rect clipped by the original rect
  Region clipRgn = new Region(top, bottom, left, right);
  mRgn2.setPath(p, clipRgn);
  I'll try to use outer rect region as the clip region later, see what's
 happen currently. Would you please tell me when this region bug can be
 fixed? I need try to check if my project can catch up the schedule,
 otherwise, I have to try to calculate this region by ourselves, it would
 take more efforts.

   BR,
   -David
 On Fri, Feb 20, 2009 at 10:49 PM, Mike Reed r...@google.com wrote:

 Ah, that's a bug, null should be allowed. I'll see what can be done
 there for the future.

 The clip parameter is mean to be a hint to speedup turning the path
 into a region by restricting the result to a clipped subset of the
 path. For your purposes, you can just make a big rectangular region
 for the clip. The bounds of the path or larger.

 On Thu, Feb 19, 2009 at 10:22 PM, David Hu vistoda...@gmail.com wrote:
   Thanks for your reply, Mike. I've tried your method, seems still
  not
  work yet. The second parameter of Region.setPath (clip) can't be null.
 
 
  If we use null, there will be an exception happen. So I've tried to
  use
  the region I've just constructed or the original rect region, the area
  is
  still the ourter standard rect area, not the inclined rect which rotated
  from a standard rect. Here is my code tip and possible result:
 
   //Calculate region
   top = 150;
   bottom = top + bmp.getHeight(); //bmp is a bitmap instance
   left = 200;
   right = left + bmp.getWidth();
   Path p = new Path();
   p.addRect(left, top, right, bottom, Path.Direction.CCW);
 
  // use Matrix to rotate 30 degrees
   Matrix mtx = new Matrix();
   mtx.setRotate(30);
   p.transform(mtx);
 
   Region rgn  = new Region();
   (1)  //- The application will crash here with an exception here
   rgn.setPath(p, null);
   (2)  //- The region is the rect area which encircle the rotated
  rect, not the rotated rect itself
   rgn.setPath(p, rgn);
   (3) //-  The region is the rect area which encircle the rotated
  rect, not the rotated rect itself
   Region clipRgn = new Region(top, bottom, left, right);
   mRgn2.setPath(p, clipRgn);
  BTW, I searched in android source code and www.google.com, can't find
  any
  usage of this API:
 
  public boolean setPath(Path path, Region clip)
 
  So now, my question is which clip region should I pass or any other way
  in
  order to attain my aim? Hope I've made my aim clearly.
 
  BR,
  -David
 
  On Thu, Feb 19, 2009 at 11:27 PM, Mike Reed r...@google.com wrote:
 
  You could possibly un-rotate your touch-point by 30 degrees, and then
  just use the rectangle.
 
  However, you can make complex regions by first constructing a Path,
  and then calling region.setPath(...), which converts the path into a
  region. Below is pseudo sample code:
 
  Path p = new Path();
  p.addRect(rect);// this is your rect
  p.transform(matrix); // construct a matrix and then rotate as you wish
  region.setPath(p, null);
 
  On Thu, Feb 19, 2009 at 5:01 AM,  vistoda...@gmail.com wrote:
  
 I want to judge whether the touch point(x, y) is in a region or
   not, the region is from a stardard rect by rotating specified
   degrees,
   from example, rotate 30 degrees. There is a class named Region in
   Android, but as I researched, it just supports standard rect, is
   there
   any other way to judge whether a point is in an  acclivitous rect?
   How
   to do it?
  
   Br,
   -David
   
  
  
 
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For 

[android-developers] Re: When will Android support Multiple PDP?

2009-02-20 Thread David Hu
Thanks, Jon. It seems the same, but why I can't open this page
http://source.android.com/roadmap, which always report can't find the
server?  Is it public acess?  Would you please tell me when and which
release will support this feature? Thanks again.

BR,
-David

On Sat, Feb 21, 2009 at 12:53 AM, Jon Colverson jjc1...@gmail.com wrote:


 On Feb 20, 9:13 am, David Hu vistoda...@gmail.com wrote:
  More specifically, as I know, Symbian 7.0s  higher support Multiple
  PDP, that's mean you can create multiple, for example, GPRS context  use
 it
  simultaniously(such as MMS  WAP  Inet context)...
  Does Android support this feature? If not, when will it support?  Please
  help me.

 The Android roadmap mentions upcoming support for multiple APNs:
 http://source.android.com/roadmap

 Is that the same thing?

 --
 Jon

 


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



[android-developers] Re: How to get a region which is not a standard rect area

2009-02-20 Thread David Hu
Okay, great, I'll pass a large region to check.

On Sat, Feb 21, 2009 at 5:01 AM, Mike Reed r...@google.com wrote:


 By bug, I mean I would like to relax the restriction, and allow you to
 pass null. I don't know yet when the could get in. Thus you should
 always (for now) pass in  a region as the clip. It can be something
 large with no downside (i.e. -10,000,  10,000)

 On Fri, Feb 20, 2009 at 3:57 PM, David Hu vistoda...@gmail.com wrote:
  Thanks for your explanation, Mike.  So, if there is not a bug,  I can
 pass
  the outer rect  as clip region to attain my aim, and:
  Region rgn  = new Region();
   (1)  //- actual result: The application will crash here with an
  exception here
 //--expect result : ?
 rgn.setPath(p, null);
(2)  //- actual result: The region is the rect area which
 encircle
  the rotated
  rect, not the rotated rect itself
  //---expect result :?
  rgn.setPath(p, rgn);
(3) //-  actual result: The region is the rect area which
 encircle
  the rotated
  rect, not the rotated rect itself
//--- expect result: The region should be a complicate
  area, inclined rect clipped by the original rect
   Region clipRgn = new Region(top, bottom, left, right);
   mRgn2.setPath(p, clipRgn);
   I'll try to use outer rect region as the clip region later, see what's
  happen currently. Would you please tell me when this region bug can be
  fixed? I need try to check if my project can catch up the schedule,
  otherwise, I have to try to calculate this region by ourselves, it would
  take more efforts.
 
BR,
-David
  On Fri, Feb 20, 2009 at 10:49 PM, Mike Reed r...@google.com wrote:
 
  Ah, that's a bug, null should be allowed. I'll see what can be done
  there for the future.
 
  The clip parameter is mean to be a hint to speedup turning the path
  into a region by restricting the result to a clipped subset of the
  path. For your purposes, you can just make a big rectangular region
  for the clip. The bounds of the path or larger.
 
  On Thu, Feb 19, 2009 at 10:22 PM, David Hu vistoda...@gmail.com
 wrote:
Thanks for your reply, Mike. I've tried your method, seems still
   not
   work yet. The second parameter of Region.setPath (clip) can't be null.
  
  
   If we use null, there will be an exception happen. So I've tried
 to
   use
   the region I've just constructed or the original rect region, the area
   is
   still the ourter standard rect area, not the inclined rect which
 rotated
   from a standard rect. Here is my code tip and possible result:
  
//Calculate region
top = 150;
bottom = top + bmp.getHeight(); //bmp is a bitmap instance
left = 200;
right = left + bmp.getWidth();
Path p = new Path();
p.addRect(left, top, right, bottom, Path.Direction.CCW);
  
   // use Matrix to rotate 30 degrees
Matrix mtx = new Matrix();
mtx.setRotate(30);
p.transform(mtx);
  
Region rgn  = new Region();
(1)  //- The application will crash here with an exception
 here
rgn.setPath(p, null);
(2)  //- The region is the rect area which encircle the
 rotated
   rect, not the rotated rect itself
rgn.setPath(p, rgn);
(3) //-  The region is the rect area which encircle the
 rotated
   rect, not the rotated rect itself
Region clipRgn = new Region(top, bottom, left, right);
mRgn2.setPath(p, clipRgn);
   BTW, I searched in android source code and www.google.com, can't find
   any
   usage of this API:
  
   public boolean setPath(Path path, Region clip)
  
   So now, my question is which clip region should I pass or any other
 way
   in
   order to attain my aim? Hope I've made my aim clearly.
  
   BR,
   -David
  
   On Thu, Feb 19, 2009 at 11:27 PM, Mike Reed r...@google.com wrote:
  
   You could possibly un-rotate your touch-point by 30 degrees, and then
   just use the rectangle.
  
   However, you can make complex regions by first constructing a Path,
   and then calling region.setPath(...), which converts the path into a
   region. Below is pseudo sample code:
  
   Path p = new Path();
   p.addRect(rect);// this is your rect
   p.transform(matrix); // construct a matrix and then rotate as you
 wish
   region.setPath(p, null);
  
   On Thu, Feb 19, 2009 at 5:01 AM,  vistoda...@gmail.com wrote:
   
  I want to judge whether the touch point(x, y) is in a region or
not, the region is from a stardard rect by rotating specified
degrees,
from example, rotate 30 degrees. There is a class named Region in
Android, but as I researched, it just supports standard rect, is
there
any other way to judge whether a point is in an  acclivitous rect?
How
to do it?
   
Br,
-David

   
   
  
  
 

 


--~--~-~--~~~---~--~~
You received 

[android-developers] Re: Screen

2009-02-20 Thread Dianne Hackborn
Finger nails do not work with a capacitive touch screen like the G1's, at
all.  Sorry.

On Fri, Feb 20, 2009 at 8:22 AM, Danex daniel.ramirez2...@gmail.com wrote:


 Hi, I am looking for an app that can adjust my screen sensitity, for
 example: if I wanted to use my finger nails instead of my finger tip.
 A tmobile agent mentioned to me they have one but I've looked for days
 and cannot find one. Please help!

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

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



[android-developers] Re: suspend/resume a thread from another thread in same app

2009-02-20 Thread fadden

On Feb 20, 9:28 am, sukumar bhashyam.suku...@gmail.com wrote:
 I need to suspend/resume a thread from another thread in the same
 process. I tried to look into thread apis,but I couldn't figured out a
 way to achieve this.Can anyone pls point me some references to look or
 give a tip to do this.  Thanks a lot in advance.

The APIs you would use, Thread.suspend() and Thread.resume(), are
deprecated and hence not implemented on Android.

This link:

  
http://java.sun.com/javase/6/docs/technotes/guides/concurrency/threadPrimitiveDeprecation.html

has a section entitled What should I use instead of Thread.suspend
and Thread.resume? that may be useful.

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



[android-developers] android.provider.drmstore

2009-02-20 Thread Layeeq

I see android.provider.drmstore in framework.  Why is this not
published in framework documentation?
Is the support not complete?
I am trying to understand if OMA 1.0 forward locked drm is supported
for images, video and audio files?

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



[android-developers] Re: java.lang.VerifyError -- in Android

2009-02-20 Thread fadden

On Feb 20, 1:29 am, Maddy malli.ar...@gmail.com wrote:
 I have done dexdump -d my application (AndJOSCAR) and got
 AndJOSCAR.apk.dump file.

 I have opened that file using Ultraedit (Text Editor tool) to look for
 any useful information.

 I searched for addRequestImpl and I could not find any reference for
 this name in that file.

If the method doesn't exist in the APK, it stands to reason that
attempting to use it is causing a failure.

My guess would be that a .class file is being included at compile time
but not added to the APK.  However, from what you wrote earlier, it
looks like the missing method and the code that refers to it are in
the same class, so I'm a bit baffled.

The output of dexdump will show all classes, and all methods in each
class; if this doesn't match up with what you have in your sources,
then something is getting lost along the 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android.provider.drmstore

2009-02-20 Thread Jean-Baptiste Queru

The implementation might change, and therefore it is not exposed as
part of the SDK.

JBQ

On Fri, Feb 20, 2009 at 3:01 PM, Layeeq nlah...@gmail.com wrote:

 I see android.provider.drmstore in framework.  Why is this not
 published in framework documentation?
 Is the support not complete?
 I am trying to understand if OMA 1.0 forward locked drm is supported
 for images, video and audio files?

 Thanks, Layeeq
 




-- 
Jean-Baptiste M. JBQ Queru
Android Engineer, Google.

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



[android-developers] Re: Android Market: server error when authorizing credit card

2009-02-20 Thread Inderjeet Singh
That is true: Google Checkout will not let a merchant be a buyer for their
own goods.
Inder


On Fri, Feb 20, 2009 at 12:00 PM, Robert Green rbgrn@gmail.com wrote:


 Yup, it appears as though you can't buy your own app!  :)

 On Feb 20, 1:21 pm, Sundog sunns...@gmail.com wrote:
  Same here.
 
  On Feb 20, 11:38 am, g1bb corymgibb...@gmail.com wrote:
 
   Are you trying to purchase your own app? I got the same error when I
   did, but not when I purchased someone else's.
 
   On Feb 20, 10:58 am, SR stan.r...@gmail.com wrote:
 
Hi all,
 
I've been trying to buy some apps but have been getting a server
 error
after Authorizing credit card... bubble shows up.   For about an
hour or so...
 
Anybody else have this problem?
 
Maybe there are problems with the server and someone from Google
 ought
to look at them?
 
SR
 
 
 


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



  1   2   >