[android-developers] Re: Test in-app subscription using test account

2012-09-06 Thread Tarun Sharma
Thanks I have tried this one but unable to check and also I have some
confusion, Can you please guide/suggest me.


I have modified security.java and parse purchaseToken field from
JSON. and also encapsulated in purchaseToken VerifiedPurchase. so i
modified Security.java, BillingServices.java, ResponseHandler.java and
PurchaseDatabase accordingly.Today I will try to check

I have some Questions, can you please help

What is the role of purchaseToken. should it maintain in local databse as
other purchase information?

Now once the Subscription Product puchased and payment is done
successfully, for next month/year,  billing recurrences will be done
automatically or we have to done this through code using purchaseToken.

When the user cancels a subscription Google Play notifies our app that the
purchase state has changed to Expired.
 then how can we handle purchase state.

On Tue, Sep 4, 2012 at 9:06 PM, Siddharth Sharma 
sharmasiddha...@hotmail.com wrote:

 Yes, you need to modify Security.java and parse purchaseToken field from
 JSON. Once done, make sure the field is encapsulated in VerifiedPurchase
 and passed on to ResponseHandler to let your persistence capture the field

 ResponseHandler.purchaseResponse(this, vp.purchaseToken, vp.purchaseState,
 vp.productId,
 vp.orderId, vp.purchaseTime, vp.developerPayload);

 Hope this helps



 On Tue, Sep 4, 2012 at 3:48 PM, Tarun Sharma tarun...@gmail.com wrote:

 Hi,
 Hi,

 Please help me out ...

 I had successfully implemented InApp billing with managed products. Now
 upgrade that with subscription (IAB V2).
 I had done all changes that required for subscription as mention in below
 link.


 http://developer.android.com/guide/google/play/billing/billing_subscriptions.html

 And On my research I found that Purchase token is recieved along with the
 JSON(Signed data) on successful purchase for subscription.
 The demo's Security.java on successful verification of signature parses
 Json however the parsing of element Purchase-token is missing here.
 I haven't yet run the code since subscription doesn't have test
 product-ids and requires actual purchase.
 What I want to know is this token be parsed here or is the sample code
 provided has this part correctly implemented.

 If token to be parsed then what changes should be done in
 BillingService.java,ResponseHandler.java, Security.java and
 PurchaseDatabase.java for PurchaseToken.


 On Tuesday, 4 September 2012 15:01:53 UTC+5:30, Oleg Pravdin wrote:

 Hi,

 Is there any way to test in-app subscription using test account? I've
 uploaded an unpublished app. to market and published a monthly item for it.
 When I try to buy the subscription using one of the test accounts. Google
 requests me to provide Credit card info. to create a new Wallet account.

 Is it safe to provide CC. details as I just want to test subscription.
 Will test user be charged for subscription?


 - Thx




 --
 Siddharth Sharma
 9820124857




-- 

Best Regards and Thanks !!

*
Tarun Sharma*

***Balaji Websoft Technology Pvt. Ltd.***

* *M: +91-9413934366

Skype: tarunudr
E: ta...@baltech.in
W: www.baltech.in
*Together We Can *

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: databse

2012-09-06 Thread Juned Khan
Hi Sadhna,

You can get the id of selected row of listview. based on that you can 
perform your operation.

Thanks
Juned Khan

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

Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-06 Thread tvdalia

Calin, hardcoding my ListView layout_height=200dp gave the results. // 
100dp was too small so made 200

But I use the method to create various items of List - their maybe just 2 
items or 20. If I made it 200dp, then the list that has just 2 items was 
shown big with extra space below. If I made it 100dp, then the items with 
200 was showing too small  it can be made bigger. 

In such situation what to do to handle the situation 


On Thursday, 6 September 2012 01:13:55 UTC+5:30, Calin Perebiceanu wrote:

 Use layout_height=100dp in the layout xml

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 import an self Root CA certificate into a android device.

2012-09-06 Thread Jim Qiu
Hi all,

 I find it's almost impossible to import an root CA certificate into
android device. Why it's so ? With IOS, I can easily import a certificate?

Best regards,


Jim

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

Re: [android-developers] How to change the Blue Line below Title in AlertDialog.

2012-09-06 Thread Calin Perebiceanu
Have you tried  
http://developer.android.com/reference/android/app/AlertDialog.html#setCustomTitle(android.view.View)
 

On Thursday, 6 September 2012 05:01:15 UTC+3, Shan Ul Haq wrote:

 I want to change the color of the blue line, I can change the color of the 
 title, color of the text, but i am not able to find a way to change the 
 color of the blue line. i have written following style.

 style name=*myAlertDialog* parent=*android:Theme.Holo.Dialog*
 item name=*android:windowBackground*
 @android:color/transparent/item
 item name=*android:windowTitleStyle*
 @style/myAlertDialogTitleStyle/item
 /style
 style name=*myAlertDialogTitleStyle*
 item name=*android:maxLines*1/item
 item name=*android:scrollHorizontally*true/item
 item name=*android:textAppearance*
 @style/myAlertDialogTitleStyleTextAppearance/item
 /style
 style name=*myAlertDialogTitleStyleTextAppearance*
 item name=*android:textSize*22sp/item
 item name=*android:textColor*#8800/item
 /style



 On Thursday, 6 September 2012 01:36:52 UTC+8, MagouyaWare wrote:

 Change it how?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Wed, Sep 5, 2012 at 12:00 AM, Shan Ul Haq shan...@tigerspike.comwrote:

 Hi, 

 I cannot find any style property that changes the blue line under title 
 of the AlertDialog. can anyone please let me know how to do that ?

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




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

Re: [android-developers] How to import an self Root CA certificate into a android device.

2012-09-06 Thread Nikolay Elenkov
On Thu, Sep 6, 2012 at 4:09 PM, Jim Qiu bluefishe...@gmail.com wrote:

 Hi all,

  I find it's almost impossible to import an root CA certificate into android
 device. Why it's so ? With IOS, I can easily import a certificate?


There are public APIs for this on ICS (4.0) and later. On earlier devices this
can be done on a rooted device manually or with a tool like CACertMan.

http://wiki.cacert.org/FAQ/ImportRootCert#Android_Phones

https://play.google.com/store/apps/details?id=info.guardianproject.cacert

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


Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-06 Thread Calin Perebiceanu
Hard code the LinearLayout's height, not the ListView

On Thursday, 6 September 2012 09:39:19 UTC+3, tvdalia wrote:


 Calin, hardcoding my ListView layout_height=200dp gave the results. // 
 100dp was too small so made 200

 But I use the method to create various items of List - their maybe just 2 
 items or 20. If I made it 200dp, then the list that has just 2 items was 
 shown big with extra space below. If I made it 100dp, then the items with 
 200 was showing too small  it can be made bigger. 

 In such situation what to do to handle the situation 


 On Thursday, 6 September 2012 01:13:55 UTC+5:30, Calin Perebiceanu wrote:

 Use layout_height=100dp in the layout xml



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

Re: [android-developers] How to import an self Root CA certificate into a android device.

2012-09-06 Thread Jim Qiu
https://play.google.com/store/apps/details?id=info.guardianproject.cacert

Is this APP only for rooted device ?

My device cannot access the Google Play since I am in China.

Jim

On Thu, Sep 6, 2012 at 3:17 PM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:

 On Thu, Sep 6, 2012 at 4:09 PM, Jim Qiu bluefishe...@gmail.com wrote:
 
  Hi all,
 
   I find it's almost impossible to import an root CA certificate into
 android
  device. Why it's so ? With IOS, I can easily import a certificate?
 

 There are public APIs for this on ICS (4.0) and later. On earlier devices
 this
 can be done on a rooted device manually or with a tool like CACertMan.

 http://wiki.cacert.org/FAQ/ImportRootCert#Android_Phones

 https://play.google.com/store/apps/details?id=info.guardianproject.cacert

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


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

Re: [android-developers] How to import an self Root CA certificate into a android device.

2012-09-06 Thread Nikolay Elenkov
On Thu, Sep 6, 2012 at 4:44 PM, Jim Qiu bluefishe...@gmail.com wrote:
 https://play.google.com/store/apps/details?id=info.guardianproject.cacert

 Is this APP only for rooted device ?

Yes.


 My device cannot access the Google Play since I am in China.

It's open source:

https://github.com/guardianproject/cacert

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 simple_list_item_activated_1 behaviour

2012-09-06 Thread Calin Perebiceanu
Did you tried handling the on list item click ?
 @Override
protected void onListItemClick(ListView l, View v, int position, long 
id) {
// Make the newly clicked item the currently selected one.
getListView().setItemChecked(position, true);
}

On Thursday, 6 September 2012 07:52:18 UTC+3, Pankaj Chawla wrote:

 Hi 

 So ListView has a item layout 'simple_list_item_activated_1' which when 
 used with 
 ListView.CHOICE_MODE_SINGLE causes the item to stay activated causing a 
 background 
 highlight. ApiDemos has a sample under Lists/List17. 

 The same item layout when used with ListView.CHOICE_MODE_MULTIPLE_MODAL 
 causes the item to highlighted when multiselect mode gets activated on 
 longitemclick. ApiDemos 
 again has a sample under Lists/List16. The problem here is that now on 
 short press the item 
 is not highlighted like in List17 but highlight only works when 
 multiselect mode gets enabled 
 on long press. 

 So what I am trying to achieve is that item stays activated/hightlighted 
 on short press/itemClick 
 and also highlights when mutilselect mode gets enabled on long press. I 
 tried playing around 
 with List16 and List17 code to see if I can get the functionality to work 
 but havent got it 
 working. Any clues will be helpful. The Gmail app on tablet (Nexus 7) has 
 this working where 
 itemclick highlights the message row and longitemclick goes into 
 mutliselect mode with selected 
 rows highlighted. 

 --- 
 Take care, 
 Pankaj 




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] validation on editTextbox

2012-09-06 Thread Sadhna Upadhyay
   Hi everyone,
can someone tell me that how to apply
validation on edittext box only for text,no other data can be fill besides
text.










Thanks,
sadhana

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

Re: [android-developers] validation on editTextbox

2012-09-06 Thread ravi saini
Hello Sadhna Upadhyay
  Try to use
EditText
 android:inputType=text
 /


Hope it will work for you.

Thanks

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

Re: [android-developers] Android animation

2012-09-06 Thread Gergely Juhász
Read and learn the animation system of Android.

http://developer.android.com/guide/topics/graphics/overview.html

On 6 September 2012 07:24, Haris haris...@gmail.com wrote:

 Hai all

 For my application I need to create growing arrow from centre of the screen.
 For this application which resources  should I use in android?


 Thanks in advance

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Async pattern required (professionals welcome)

2012-09-06 Thread itai
Tnx, I figured that as well. It's just that I was overwhelmed by all
these weak/unspecified framework guarantees, which I decided to avoid
all together.

Almost done :)


On Sep 6, 7:44 am, Doug beafd...@gmail.com wrote:
 It sounds to me like you are aware of everything you need to know to
 construct a solution that works for you.  Fire up your threads and get to
 it!  To really do this right, though, you need an http fetcher, a disk
 cache for fetched images, and a memory cache for only the most recently
 fetched images.  And you need to check each one of these in reverse order
 to get the best performance for a ListView with images that must scroll
 quickly.

 Overall, this is not exactly an easy problem to solve.  I just shipped a
 solution for a prominent app I work on, and it took weeks of work and
 several eyeballs to iron out all the details.

 Doug



 On Wednesday, August 29, 2012 12:25:31 PM UTC-7, itai wrote:

  I’m struggling to figure out a straight forward design for the
  following scenario:

  A user clicks a button which results in sending an http request
  asynchronously to fetch a list of image URL’s (e.g some json
  collection response).
  Upon completion, a ListView would need to be populated with the images
  referenced by the URL’s (e.g each list view item would issue its own
  async http requests to download and display the image). The image
  being downloaded will always be the most recent for the proper
  recycled image.

  I’m concerned about three situations:

  1. Configuration change can happen at any stage which will replace the
  Activity instance receiving the async results with a new instance,
  hiding already displayed images – My understanding is that the
  solution for this is to maintain a some list of all active async tasks
  on the initiating instance and transfer them all together in
  onRetainNonConfigurationInstance(), However; my concern here is from
  the doc’s: “This function is called purely as an optimization, and you
  must not rely on it being called”, Does this mean that a configuring
  change can happen and function won’t be called ?@!

  2. A different activity comes into the foreground, causing the
  executing activity to be in pause state while still getting updates
  from the in-progress async operations – Here I’m not sure if there is
  any violation (e.g updating an Activity UI in pause state).

  3. A different activity comes into the foreground, causing the
  executing activity to be paused and subsequently killed (the entire
  process is killed) due to memory pressure - In this case I would want
  to:

  a. Know that this is the case before it happens.

  b. Save to persistent storage all the *new* images if and only If all
  the downloads have completed, if not, I would like to save all
  existing images that where present before the whole download process
  kicked in (if present from a past download).
  That way if the user navigates back to Activity and the process is
  recreated, I can load the persisted information and have the user see
  a snapshot of images either from a previous request or a new request
  (no interleaving)

  Initially I was inclined to use AsyncTask’s (1 AsyncTask for getting
  the Url’s and X others for the images) and use
  onRetainNonConfigurationInstance, to correct instance binding in case
  of a configuration change… )I have yet to figure out how to detect the
  process recycling case from configuration change before hand as there
  is no defined order between onSaveInstanceState /
  onRetainNonConfigurationInstance and I don’t want to persist the
  information at every configuration change). However, after watching
  Virgil’s google i/o presentation “Building Rest Clients” it seems
  there is a recommended approach, to perform all the network calls
  through a service which is supposed to decrease the likelihood of the
  process from being killed. However, after further investigating this
  it seems like a major overkill with many pitfalls of its own as it
  requires implementing a 2 way messaging protocol possible involving
  queuing messages, with no obvious way on how to handle callbacks in a
  way that address the concerns outlined above, so I prefer to avoid
  this risk unless absolutely required.

  So to sum up, I would really appreciate a professionals feedback on
  this, as I'm kind of new to android... so if you feel like sharing an
  *explanation* on how to do this right, great!!

  If you feel this is work and you can provide a concise and *correct*
  sample that address all the concerns above, I would be happy
  compensate, pypal works :)

  -Itai

  e: itaitai2003 … the at sign … yahoo .. com

  p. s

  No need for actual communication/imaging or persistence logic, simple
  mock will do, without Fragments – I don’t use them, I don’t need them
  in my project.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to 

Re: [android-developers] Re: ListView simple_list_item_activated_1 behaviour

2012-09-06 Thread Pankaj Chawla
Yes, I did and this causes the Multiselect mode CAB to show up. CAB shows up as 
soon as 
setItemChecked is called programmatically if CHOICE_MODE_MULTIPLE_MODAL is set 
for the
listView.

Anyways I went ahead and created a custom ArrayAdapter which keeps all the 
state information about
selection, multiselect etc and then based on the state it does background color 
changes when getView
is called:

public View getView(int position, View convertView, ViewGroup parent) {
View v = super.getView(position, convertView, parent);

if (!bMultiSelect)
{
if (position == nSelectedPostion)
v.setBackgroundColor(nColor);
else
v.setBackgroundColor(Color.TRANSPARENT);
}
else
{
if (nSelectedPositions[position] == 1)
v.setBackgroundColor(nMultiColor);
else
v.setBackgroundColor(Color.TRANSPARENT);
}
return v;
}




---
Take care,
Pankaj


On Thursday, September 6, 2012 at 1:34 PM, Calin Perebiceanu wrote:

 Did you tried handling the on list item click ?
 @Override
 protected void onListItemClick(ListView l, View v, int position, long id) {
 // Make the newly clicked item the currently selected one.
 getListView().setItemChecked(position, true);
 }
 
 On Thursday, 6 September 2012 07:52:18 UTC+3, Pankaj Chawla wrote:
  Hi 
  
  So ListView has a item layout 'simple_list_item_activated_1' which when 
  used with 
  ListView.CHOICE_MODE_SINGLE causes the item to stay activated causing a 
  background 
  highlight. ApiDemos has a sample under Lists/List17. 
  
  The same item layout when used with ListView.CHOICE_MODE_MULTIPLE_MODAL 
  causes the item to highlighted when multiselect mode gets activated on 
  longitemclick. ApiDemos 
  again has a sample under Lists/List16. The problem here is that now on 
  short press the item 
  is not highlighted like in List17 but highlight only works when multiselect 
  mode gets enabled 
  on long press. 
  
  So what I am trying to achieve is that item stays activated/hightlighted on 
  short press/itemClick 
  and also highlights when mutilselect mode gets enabled on long press. I 
  tried playing around 
  with List16 and List17 code to see if I can get the functionality to work 
  but havent got it 
  working. Any clues will be helpful. The Gmail app on tablet (Nexus 7) has 
  this working where 
  itemclick highlights the message row and longitemclick goes into 
  mutliselect mode with selected 
  rows highlighted. 
  
  --- 
  Take care, 
  Pankaj 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com 
 (mailto:android-developers@googlegroups.com)
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com 
 (mailto:android-developers+unsubscr...@googlegroups.com)
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



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


Re: [android-developers] Please help me how to auto refresh every seconds my xml file list activityv from my UI

2012-09-06 Thread TreKing
On Thu, Sep 6, 2012 at 12:33 AM, jal jo...@zetaol.com wrote:

 I use asyntask with an handler Timer but didn't work ... - nothing happens
 in my application.


You need more information than that.


 sir can you give some example and directions. Thank you very much if you
 help me. :)


http://lmgtfy.com/?q=android+handler+timer+example

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] no. of downloads is not showing in play

2012-09-06 Thread Rocky
All,

In one of the my apps *A P J Abdul Kalam,* no of downloads is not showing
in play.
https://play.google.com/store/apps/details?id=com.kt.APJKalamfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5rdC5BUEpLYWxhbSJd


is any setting issue from developer accounts ?

what is this issue ?

-- 
Thanks  Regards

Rakesh Kumar Jha

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Custom IMAP client accessing Gmail using existing AccountManager credentials? Possible?

2012-09-06 Thread turnip
Hi all,

We're implementing a very simple IMAP client for analysing and batch 
processing email, and for users with Gmail accounts, the most elegant 
solution would be using the credentials already stored in AccountManager. 
However, I'm using the same method (and running into the same problems) 
mentioned, for example, here:
http://stackoverflow.com/questions/5305605/connecting-to-gmail-through-imap-using-oauth-and-the-google-account-token-provid
 

Is it simply not possible to do this? Is it a deliberate restriction? Is 
there any indication it will be an option in the near future?

Any clarification/help would be very welcome.

Kind Regards,

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

[android-developers] Register android developer account for company

2012-09-06 Thread futuredeveloper?


I'm trying to register an Android Developer account for our company that 
we'll use to publish our company's apps to the market. So we don't want a 
account which is bound to a single developer. 

But this statement which is displayed before paying the fee of $25 let me 
wonder if a developer account can be associated with a company at all. 

Your registration fee enables you to publish software in the market. The 
name and billing address used to register will bind you to the Android 
Market Developer Distribution Agreement. So make sure you double check!

If I understand this correctly, then this means that the person whose 
credit card is used to pay the fee will be the person how accept the 
developer agreement and therefore will be legal responsible for the apps 
that are published under this account. 

If this is correct then this is not exactly what we want, as we cannot make 
one of our developer personal legal responsible for the company's product. 

So what are our options to avoid this? How could the account be legally 
bound to the company instead. Or did we miss understand the whole statement?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 images of particular folder

2012-09-06 Thread Nit
Hi Rakesh,

did you got any solution for this, even i am looking for same thing.

Regards
Nit

On Thursday, December 16, 2010 10:25:45 AM UTC+5:30, rakesh wrote:

 hi all, 

 i want to pick image from a folder on sdcard for that i want to 
 display images of that folder only how can i achieve that , i am 
 using 

Intent i = new Intent(Intent.ACTION_PICK, 
   
 android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); 
 intent.putExtra( MediaStore.EXTRA_MEDIA_ALBUM, 
 outputFileUri ); 
 intent.setType(image/*); 
 startActivityForResult(i, SELECT_PICTURE); 

 but this shows all folders on sd card.., 

 awaiting for reply 
 thanks in advance 


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

[android-developers] Re: phoneStateListener

2012-09-06 Thread Ashoka UWU
I am looking for the same thing.. :)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] wife manager in android

2012-09-06 Thread drey
hi.. how can i open this class . i want to develop a software that is file 
transfer using wifi,,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 USB Host and ISOC (Isochronus)

2012-09-06 Thread David Clark
http://developer.android.com/reference/android/hardware/usb/UsbEndpoint.html

*Isochronous endpoints are currently unsupported. *

On Wednesday, 18 January 2012 20:20:52 UTC, Marius Maximus wrote:

 I found this USB Host API at page 
 http://developer.android.com/guide/topics/usb/host.html 

 android.hardware.usb.UsbRequest 
 A class representing USB request packet. This can be used for both 
 reading and writing data to or from a UsbDeviceConnection. UsbRequests 
 can be used to transfer data on bulk and interrupt endpoints. Requests 
 on bulk endpoints can be sent synchronously via 
 bulkTransfer(UsbEndpoint, byte[], int, int) or asynchronously via 
 queue(ByteBuffer, int) and requestWait(). Requests on interrupt 
 endpoints are only send and received asynchronously. 

 It is possibile use ISOC (Isochronus) usb transmision with this API ? 
 Or another metod to use ISOC device ? 

 M

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 set equalizer Audio Sesion ID to master Audio Stream .

2012-09-06 Thread Ata Alla
Hi

I want to make a master equalizer like Music Volume EQ , but how can I set 
equalizer to master audio source like STREAM_MUSIC .

is it possible .

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: WebView.clearHistory()

2012-09-06 Thread Jeremy Haberman
Stefan,

Thanks for leading me down the right path.  I still encountered situations 
where the history wouldn't be cleared if I did it in 'onPageFinished', so I 
ended up doing it in 'onProgressChanged' in the WebChromeClient: 

webView.setWebChromeClient(new WebChromeClient() {
  public void onProgressChanged(WebView view, int progress) {
if (progress == 100  mClearWebViewOnPageLoaded) {
  view.clearHistory();
  mClearWebViewOnPageLoaded = false;
}
  }
});

Jeremy

On Thursday, April 2, 2009 6:28:46 AM UTC-5, StefanK wrote:

 I recently had the same issue. What I found is that you have to clear 
 history AFTER the (first) page loads. It appears that the history 
 clears everything before the current page so if your browser is at 
 page A, you clear history and navigate to page B your history will 
 be A B, not just B, but if you clear history when B finishes 
 loading you will have only B. 
 In my case I end up using onPageFinished  method of the 
 WebViwClient, but in this case you have to know what your start page 
 is and clear the history only after it otherwise you will be clearing 
 the history after every page navigated after the first. 

 Stefan 

 On Mar 31, 6:05 pm, nEx.Software justin.shapc...@gmail.com wrote: 
  I call WebView.clearHistory(), but I am still able to go back after 
  doing so. I want to reuse a WebView, but I don't want the back button 
  to allow the user to go back further than the current session of 
  using the WebView. Anybody know what is the best way to handle this? I 
  thought for sure that clearHistory() would do it.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 android.permissions.FLASHLIGHT required to use Camera Flash?

2012-09-06 Thread Maksim Golivkin
For instance, cardio library https://www.card.io/ library uses camera 
flash, but doesn't require this permission.

I have test app using camera flash w/o this permission on Galaxy S2 (4.03) 
and Nexus One (2.3.6) and it went smoothly.

Does anybody has any experience with situations where you need 
android.permissions.FLASHLIGHT? What is it used for?

Thanks,
Maksim

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Reading the other contacts from my Gmail account

2012-09-06 Thread Tystick
Hello all,

I'm writing an app to read the Gmail contacts from my separate Gmail 
groups.  I'm having trouble getting contacts that haven't been sorted yet 
(e.g. the other contacts).  I have no troubles getting the contacts from 
My Contacts and other groups but I can't even get my app to notice that 
this group even exists.  Most of my contacts are in this unsorted area 
and I would strongly prefer to be able to read them as is as opposed to 
moving them to My Contacts.

If someone could point me in the right direction I would be most grateful.

Thank you.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Forced ladscape crashed when started with device in portrait

2012-09-06 Thread iQue
Hello!
Ive got a game that I force in landscape using this bit of code:

 public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
setContentView(new MainGamePanel(this));
Log.d(TAG, View added);
   }

If I start the app while holding phone in landscape, everything works fine, 
but if I hold the phone in portrait and start, it crashes. also if the 
phone is locked when I start my app trough eclipse it dosnt matter which 
way I hold it, it still chrashes, so to sum it up: Only work if phone is 
unlocked and held in landscape.
Here is the error:
09-05 21:40:36.031: E/AndroidRuntime(30347): java.lang.RuntimeException: 
Unable to start activity 
ComponentInfo{nielsen.happy.shooter/nielsen.happy.activities.Menu}: 
android.content.res.Resources$NotFoundException: Resource ID #0x7f030002
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.app.ActivityThread.access$600(ActivityThread.java:123)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.os.Handler.dispatchMessage(Handler.java:99)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.os.Looper.loop(Looper.java:137)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.app.ActivityThread.main(ActivityThread.java:4424)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
java.lang.reflect.Method.invokeNative(Native Method)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
java.lang.reflect.Method.invoke(Method.java:511)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
dalvik.system.NativeStart.main(Native Method)
09-05 21:40:36.031: E/AndroidRuntime(30347): Caused by: 
android.content.res.Resources$NotFoundException: Resource ID #0x7f030002
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.content.res.Resources.getValue(Resources.java:1018)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.content.res.Resources.loadXmlResourceParser(Resources.java:2105)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.content.res.Resources.getLayout(Resources.java:857)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:394)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:352)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.app.Activity.setContentView(Activity.java:1835)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
nielsen.happy.activities.Menu.onCreate(Menu.java:29)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.app.Activity.performCreate(Activity.java:4465)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
09-05 21:40:36.031: E/AndroidRuntime(30347): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
09-05 21:40:36.031: E/AndroidRuntime(30347): ... 11 more
09-05 21:40:47.922: D/dalvikvm(30401): GC_FOR_ALLOC freed 33K, 3% free 
12649K/12931K, paused 14ms

also it crashed when I shut it down by pressing home-screen on my phone, 
giving this error:

09-05 21:40:58.320: E/AndroidRuntime(30401): FATAL EXCEPTION: Thread-4898
09-05 21:40:58.320: E/AndroidRuntime(30401): java.lang.NullPointerException
09-05 21:40:58.320: E/AndroidRuntime(30401): at 
nielsen.happy.shooter.MainGamePanel.render(MainGamePanel.java:94)
09-05 21:40:58.320: E/AndroidRuntime(30401): at 
nielsen.happy.shooter.MainThread.run(MainThread.java:101)

This rly sucks cus Ive been working on this for 4-5 months now and its my 
first real game, really want things like this to work.
If u need any more information let me know

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

[android-developers] startActivityForResult using android.support.v4.app.FragmentActivity

2012-09-06 Thread Amy Chen
Hi,

Would anyone know if I'm doing something wrong? 
I'm trying to call my library's activity (similar to listactivity) from a 
fragment in the main project, and return to the main project upon selecting 
an item from the library's activity.
All the code runs normally up to selecting the item in the library's 
activity. onItemSelected runs, but the onActivityResult(int requestCode, 
int resultCode, Intent data) from the main project doens't get called, and 
the main project seems to have disappeared once the library's activity 
finished.
Here is the simplified code:

From main project (android.support.v4.app.Fragment)
public void onClick(View v) {
switch(v.getId()) {
case R.id.btnFind:
   startActivityForResult(newIntent, 
com.kitten.library.intent.kittenlabs_db_request_code);
   break;
}
 }

@Override
public void onActivityResult(int requestCode, int resultCode, Intent 
data) {
super.onActivityResult(requestCode, resultCode, data);

/* code to handle result
*/
}

From library (android.app.Activity)
public void onItemClick(AdapterView? parent, View v, int position, 
long id) {
//move cursor to selected item
c.moveToPosition(position);

//get row id
int rowID = c.getInt(c.getColumnIndex(_id));

//construct result uri
Uri outURI = ContentUris.withAppendedId(this.db_uri, rowID);
Intent outData = new Intent();
outData.setData(outURI);
setResult(Activity.RESULT_OK, outData);
finish();
}

I've tried to put onActivityResult in the FragmentActivity class as well, 
but it does not get called either. Once finish(); is called from the 
library activity, the main project is not visible (I see the Android home).

Thank you very much in advance,
Amy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Exception is raised when remove the last item in ExpandedListView

2012-09-06 Thread Leo Qiu
Hi Stanley 
  I guess, wut I am trying to say is, suppose we have this scenario that 
long press an group item in expandablelist then popup a dialog, click the 
delete button on the dialog will delete this group item in the 
expandablelist without meeting this indexoutofboundexception.

Thx
Leo 

On Tuesday, December 9, 2008 7:25:18 PM UTC-8, Stanley.lei wrote:

 Hi all, 

 I'm developing an application like management system, and I used the 
 widget ExpandedListView as the display view. Instead of connecting it 
 to sqlite database directly, I created two list as the dataset. The 
 detailed code is as following list: 

 private ListMapString, StringmGroupType = new 
 ArrayListMapString, String(); 
 private ListListMapString, String mGroupInfo = new 
 ArrayListListMapString, String(); 

 private void showGroupView() { 
 // add layout to the view 
 LinearLayout layout = new LinearLayout(this); 
 layout.setOrientation(LinearLayout.VERTICAL); 
 LayoutParams para = new LayoutParams(LayoutParams.FILL_PARENT, 
 LayoutParams.FILL_PARENT); 
 setContentView(layout, para); 

 // add expanded list view to layout 
 mListView = new ExpandableListView(this); 
 LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT, 
 LayoutParams.FILL_PARENT); 
 layout.addView(mListView, params); 

 // set list view adapter 
   mListAdapter = new SimpleExpandableListAdapter( 
   this, 
   mGroupType, 
   android.R.layout.simple_expandable_list_item_1, 
   new String[] {GROUP_TYPE}, 
   new int[] { android.R.id.text1 }, 
   mGroupInfo, 
   android.R.layout.simple_expandable_list_item_2, 
   new String[] {GROUP_INFO }, 
   new int[] { android.R.id.text1 } 
   ); 
   mListView.setAdapter(mListAdapter); 
   mListView.setOnChildClickListener(new OnChildClickListener() { 

   public boolean onChildClick(ExpandableListView parent, View v, 
   int groupPosition, int childPosition, long id) { 
   return editGroup(groupPosition, childPosition, id); 
   } 

   }); 
 } 

 private void refreshGroupData() { 
 // fresh mGroupType and mGroupInfo 
 mGroupType.clear(); 
 mGroupInfo.clear(); 

 fetchAllGroup(mGroupType, mGroupInfo); 

 ((BaseExpandableListAdapter) mListAdapter).notifyDataSetChanged(); 
 } 

 When I removed a item in the list, the method refreshGroupData() will 
 be called. Everything is ok except that when I tried to remove the 
 last item in the list, an exception was threw with the following trace 
 info: 

 12-10 11:18:49.738: ERROR/AndroidRuntime(194): Uncaught handler: 
 thread main exiting due to uncaught exception 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): 
 java.lang.IndexOutOfBoundsException: Invalid location 0, size is 0 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 java.util.ArrayList.get(ArrayList.java:350) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.widget.SimpleExpandableListAdapter.getChildrenCount 
 (SimpleExpandableListAdapter.java:255) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.widget.ExpandableListConnector.refreshExpGroupMetadataList 
 (ExpandableListConnector.java:489) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.widget.ExpandableListConnector.access$000 
 (ExpandableListConnector.java:49) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.widget.ExpandableListConnector$MyDataSetObserver.onChanged 
 (ExpandableListConnector.java:684) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.database.DataSetObservable.notifyChanged 
 (DataSetObservable.java:29) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.widget.BaseExpandableListAdapter.notifyDataSetChanged 
 (BaseExpandableListAdapter.java:56) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.ourdroid.account.GroupSetting.refreshGroupData(GroupSetting.java: 
 50) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.ourdroid.account.GroupSetting.deleteGroup(GroupSetting.java:135) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.ourdroid.account.GroupSetting.onOptionsItemSelected 
 (GroupSetting.java:109) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.app.Activity.onMenuItemSelected(Activity.java:1964) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected 
 (PhoneWindow.java:708) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java: 
 138) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.android.internal.view.menu.MenuBuilder.performItemAction 
 (MenuBuilder.java:804) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.android.internal.view.menu.IconMenuView.invokeItem 

[android-developers] Selecting Resolutions and Stores

2012-09-06 Thread VocabSpellingCity Mayor
We have developed in Apple Ios App using a multiplatform development tool 
and are now trying to figure out the spec and plan for the Android.  First 
two questions.

1. If we are focused on the school tablet market, which devices or combos 
of screen size and pixel density should we support? 
2.  I see that there are a number of app stores. The big three seem to be 
GooglePlay, Android/apps, and Amazon. Should we plan on doing all three? 
Some other alternative app stores or distribution methods?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: testing in app billing - I can't repurchase after refunding

2012-09-06 Thread Murdock
I'm having the exact same problem, it started a few days ago and makes 
testing inapp purchase applications real difficult.

On Tuesday, September 4, 2012 12:25:19 AM UTC-4, brian wrote:

 Hello
  
 I am testing in app billing.  I am using the open source android in app 
 billing library.  Everything seems to work as expected when I make my 
 purchase (enabling the extra functionality) as well as when I refund or 
 cancel my purchase (disabling the extra functionality) so I must be 
 recieving the purchase state PURCHASED, and purchase state REFUNDED 
 properly.  But I encounter a  problem when I test re-purchasing the extra 
 functionality after the refund.  Google play will allow me to re-purchase, 
 but the transaction is always cancelled.  I then tried to clear data on 
 my google play application, and when I tried to re-purchase Google play 
 shows me a pop-up You already own this item which isn't true.  Has 
 anybody encountered this issue?  Is this an issue in Google Play or can 
 this be caused by my code?  Thanks
  
 Brian 


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

[android-developers] USBnet, ethernet over USB

2012-09-06 Thread Andy
Hi,
I want to set up a USB connection communicating over it using tcpip
I've been exploring the USBnet possibility but i cant get it to work, can 
someone with experience in this field please explain to me what i need to 
do?

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

[android-developers] Android USB Host API Asynchronous Requests Bytes Read

2012-09-06 Thread David Clark
Using the Host API how are you meant to know how many bytes have been 
returned from a UsbRequest.queue() function?  In the 
UsbConnection.requestWait() function we return the request that was issued 
but we don't return the number of bytes.  Asynchronous USB transfers can't 
work if we don't know this value.

request = new UsbRequest();
request.setClientData(bufferIndex);
request.initialize(usbConnection, bulkInEndpoint);

request.queue(buffer, MAX_TRANSFER_SIZE);

UsbRequest request = usbConnection.requestWait();
if (request != null) {// process the data  

In the native code I can see that we know how many bytes were read but this 
information isn't passed back up into our Java application:

struct usb_request *usb_request_wait(struct usb_device *dev) // Native code{
struct usbdevfs_urb *urb = NULL;
struct usb_request *req = NULL;
int res;

while (1) {
int res = ioctl(dev-fd, USBDEVFS_REAPURB, urb);
D(USBDEVFS_REAPURB returned %d\n, res);
if (res  0) {
if(errno == EINTR) {
continue;
}
D([ reap urb - error ]\n);
return NULL;
} else {
D([ urb @%p status = %d, actual = %d ]\n,
urb, urb-status, urb-actual_length);
req = (struct usb_request*)urb-usercontext;
req-actual_length = urb-actual_length;
}
break;
}
return req;}

static jobjectandroid_hardware_UsbDeviceConnection_request_wait(JNIEnv *env, 
jobject thiz) // Java wrapper...{
struct usb_device* device = get_device_from_object(env, thiz);
if (!device) {
LOGE(device is closed in native_request_wait);
return NULL;
}

struct usb_request* request = usb_request_wait(device);
if (request)
return (jobject)request-client_data; // Ignores the actual_length 
field?!?!?
else
return NULL;}



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] does android now support bluetooth 3.0 or higher

2012-09-06 Thread 小明
bt 3.0 / bt 3.0 + hs / bt 4.0 / bt 4.0 + LE

which bt revision does android support ? in which android version ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] create and manage an ad-hoc Bluetooth or WLAN

2012-09-06 Thread varun
Hi all,
  Any idea about an ad-hoc Bluetooth or local wireless network in 
android?  Is there any APIs to create a peer to peer android application as 
in Apple iphone game center?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Large File upload from Android App to server

2012-09-06 Thread vgokila
Hi: 

We are working on an Android application to upload large files from device 
to server. Android provides  two sets of API to achieve this. If we use 
HttpURLConnection with POST method, we need server side script to handle 
the content posted from application. We cannot add script on the server 
side so this option is ruled out for us. If we use HttpClient, we are able 
to upload files but we noticed slowness while uploading even small size 
files. Can any of you tried with HttpURLConnection with PUT method for 
large file upload. 

Out of these two APIs, which one is recommended and if you could throw some 
input/code samples to achieve, it would be of great help.. Looking for the 
options...

Thanks
gokila.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Exception is raised when remove the last item in ExpandedListView

2012-09-06 Thread Leo Qiu
Hi Stanley 
  Thx for your explanation, I met the same problem, could you tell us how 
you solve this issue? what are the changes u've made to make the codes work.

Thx
Leo 

On Tuesday, December 9, 2008 7:25:18 PM UTC-8, Stanley.lei wrote:

 Hi all, 

 I'm developing an application like management system, and I used the 
 widget ExpandedListView as the display view. Instead of connecting it 
 to sqlite database directly, I created two list as the dataset. The 
 detailed code is as following list: 

 private ListMapString, StringmGroupType = new 
 ArrayListMapString, String(); 
 private ListListMapString, String mGroupInfo = new 
 ArrayListListMapString, String(); 

 private void showGroupView() { 
 // add layout to the view 
 LinearLayout layout = new LinearLayout(this); 
 layout.setOrientation(LinearLayout.VERTICAL); 
 LayoutParams para = new LayoutParams(LayoutParams.FILL_PARENT, 
 LayoutParams.FILL_PARENT); 
 setContentView(layout, para); 

 // add expanded list view to layout 
 mListView = new ExpandableListView(this); 
 LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT, 
 LayoutParams.FILL_PARENT); 
 layout.addView(mListView, params); 

 // set list view adapter 
   mListAdapter = new SimpleExpandableListAdapter( 
   this, 
   mGroupType, 
   android.R.layout.simple_expandable_list_item_1, 
   new String[] {GROUP_TYPE}, 
   new int[] { android.R.id.text1 }, 
   mGroupInfo, 
   android.R.layout.simple_expandable_list_item_2, 
   new String[] {GROUP_INFO }, 
   new int[] { android.R.id.text1 } 
   ); 
   mListView.setAdapter(mListAdapter); 
   mListView.setOnChildClickListener(new OnChildClickListener() { 

   public boolean onChildClick(ExpandableListView parent, View v, 
   int groupPosition, int childPosition, long id) { 
   return editGroup(groupPosition, childPosition, id); 
   } 

   }); 
 } 

 private void refreshGroupData() { 
 // fresh mGroupType and mGroupInfo 
 mGroupType.clear(); 
 mGroupInfo.clear(); 

 fetchAllGroup(mGroupType, mGroupInfo); 

 ((BaseExpandableListAdapter) mListAdapter).notifyDataSetChanged(); 
 } 

 When I removed a item in the list, the method refreshGroupData() will 
 be called. Everything is ok except that when I tried to remove the 
 last item in the list, an exception was threw with the following trace 
 info: 

 12-10 11:18:49.738: ERROR/AndroidRuntime(194): Uncaught handler: 
 thread main exiting due to uncaught exception 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): 
 java.lang.IndexOutOfBoundsException: Invalid location 0, size is 0 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 java.util.ArrayList.get(ArrayList.java:350) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.widget.SimpleExpandableListAdapter.getChildrenCount 
 (SimpleExpandableListAdapter.java:255) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.widget.ExpandableListConnector.refreshExpGroupMetadataList 
 (ExpandableListConnector.java:489) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.widget.ExpandableListConnector.access$000 
 (ExpandableListConnector.java:49) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.widget.ExpandableListConnector$MyDataSetObserver.onChanged 
 (ExpandableListConnector.java:684) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.database.DataSetObservable.notifyChanged 
 (DataSetObservable.java:29) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.widget.BaseExpandableListAdapter.notifyDataSetChanged 
 (BaseExpandableListAdapter.java:56) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.ourdroid.account.GroupSetting.refreshGroupData(GroupSetting.java: 
 50) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.ourdroid.account.GroupSetting.deleteGroup(GroupSetting.java:135) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.ourdroid.account.GroupSetting.onOptionsItemSelected 
 (GroupSetting.java:109) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 android.app.Activity.onMenuItemSelected(Activity.java:1964) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected 
 (PhoneWindow.java:708) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java: 
 138) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.android.internal.view.menu.MenuBuilder.performItemAction 
 (MenuBuilder.java:804) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 com.android.internal.view.menu.IconMenuView.invokeItem 
 (IconMenuView.java:435) 
 12-10 11:18:49.997: ERROR/AndroidRuntime(194): at 
 

[android-developers] NameDistance.java in Contacts Provider

2012-09-06 Thread gaurav jain
I am working on Contacts Provider module in Android. The file 
NameDistance.java in this module uses the Jaro - Winkler algorithm for 
computing the distance between two normalized strings (passed as byte 
arrays). This part is used when Android needs to decide whether two or more 
raw contacts are to be merged. I have some doubts regarding this algorithm:
 
1. Is the algorithm case sensitive (i.e. is MARTHA and martha different 
or same?)
2. The file NameDistance.java has two constructors, and Android calls one 
of them based on a variable 'algorithm' (in ContactMatcher.java). I am 
unable to get how this variable is getting affected in the 
ContactMatcher.java file. 
 
Any help would be appreciated. Thanks! 

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

[android-developers] Re: Google nudity policies question. Is our content approvable or not?

2012-09-06 Thread kj
You definitely won't pass the guidelines. Also, please don't post sexist, 
objectifying pictures on a dev mailing list.

On Tuesday, September 4, 2012 9:33:57 AM UTC-4, Artyom Karma wrote:

 Hi! we're dev team called Hot Pies. 
 https://play.google.com/store/apps/developer?id=Hot+Pies We have an idea 
 of  nu art 3d Live Wallpaper and we wanna know if Google Policy allows us 
 to show nudity without close details like on the attached screenshots? It 
 is fully rotateable 3d model. What age rating will it fit? 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] i need your help

2012-09-06 Thread Nou
hello everyone;
please I bought a Chinese tablet (ANdroid 2.3.3) but now I need to root th 
tablet .But  when i contact the saler  told me that the tablet is closed so 
I can not access my tablet as super user.  you can help me to  find a 
solution . ( also  I know the kernel version installed).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Please native 3G-324M videocall support!

2012-09-06 Thread masternick
I guess you haven't got the question right..   3G-324M protocol for 
videocall which is being referred to is not same as one button press.. 
video call which you are referring..

Since Android phones are not being sold in USA alone, ppl from other 
countries would expect Android to provide features which they feel is basic 
in their region!!

On Monday, July 16, 2012 11:16:08 PM UTC+5:30, Geofuzzy wrote:

 also video calling is fully implemented in Android thorugh Google Talk and 
 Google+ it is one button press to start a video call (also Android is made 
 in the USA so you have to expect that it leans heavily on US standards.)

 On Thursday, July 12, 2012 7:25:36 AM UTC-4, mihir mehta wrote:

 Please do it ... it is basic feature for a smart phone .. it is unbelievable 
 that it does not there in android and why there is so much delay in 
 implementing it 



 On Thursday, April 5, 2012 8:55:49 PM UTC+5:30, roslogiac wrote:

 Hello, 
 I'm struggling to find an android device supporting 3G-324M protocol 
 for videocall. But, beside Samsung galaxy s/2, there is nothing 
 around. 
 It's a weird choice the one to do not support natively this protocol, 
 because 3g videocall is very common around the globe, except USA. 
 Since the world is not made by USA only, why not to implement this 
 protocol widely used from europe to asia? 
 Unless we have to pay respect to skype, there is no reason to trash 
 the 3G-324M videocall. Skype needs internet coverage, an included data 
 plan, and basically needs the internet access on the receiper side who 
 has to be online... too many coincidences to make it an elegible 
 choice of videocall. You need to agree before the videocall, e.g.: 
 hello, how are you? I''ve got internet coverage and I can pay for it 
 for a while, are you on internet with your device? Can you login on 
 skype? Are you logged in? Ok I'm videocalling!.. OMG, no 
 way! 
 With 3G-324M you can just videocall and that's it!!! So, plz implement 
 this protocol natively in Android.



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

[android-developers] no audio when device is in working mode

2012-09-06 Thread Madan K Suwal
Dear all
I got a problem in my android device with 4.0.1 version
the audio output is in silence mode during device working mode while the 
audio output is there when it is locked (when music is on the play).
I tried pretty much, but could not figure out the problem, 
I request all members to suggest me your idea 
hope at least one of them will work
thanking you in advance 

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

[android-developers] Live wallpaper bitmap animation flickering

2012-09-06 Thread JPS
Hi

I am doing a bitmap animation at 24fps. This is a 64 pixel bitmap of a 
filled circle with transparent borders. The animation is done using a 
Runnable and the drawBitMap() to draw the bitmaps on the canvas.

The animation runs fine but it looks like in every second frame the 
transparent area shows the background image slightly darker. this causes 
some flickering in the transparent areas.

Has anyone seen this before and/or has a solution to this problem.

Any help is much appreciated.

Thanks

JPS

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: no. of downloads is not showing in play

2012-09-06 Thread sparky
I downloaded it to my tablet.  Let's see if it shows up later today.

On Thursday, September 6, 2012 10:59:22 AM UTC+2, RKJ (Android developer) 
wrote:

 All,

 In one of the my apps *A P J Abdul Kalam,* no of downloads is not showing 
 in play.

 https://play.google.com/store/apps/details?id=com.kt.APJKalamfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5rdC5BUEpLYWxhbSJd
  

 is any setting issue from developer accounts ?

 what is this issue ?

 -- 
 Thanks  Regards

 Rakesh Kumar Jha

  

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

Re: [android-developers] databse

2012-09-06 Thread sparky
Hi Justin,

Thank you for the blog article.  Nice in particular that you called out 
Android Training.  I think Android Design is also going to emerge as an 
important go-to resource for people looking to do things that harmonize 
well with the platform.

On Wednesday, September 5, 2012 12:33:52 AM UTC+2, MagouyaWare wrote:


 http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] MediaStore.ACTION_VIDEO_CAPTURE: EXTRA_DURATION_LIMIT ignored on HTC devices?

2012-09-06 Thread BoD
Hi!
(First of all sorry if this message is duplicated, it seems my previous 
attempt was lost).

I am trying to start a video recording activity, with a duration limit.
Using MediaStore.EXTRA_DURATION_LIMIT works on several devices, but is 
ignored on HTC devices.
So my questions are:
1/ Does anybody happen to know a workaround for HTC devices, by any chance? 
 (Maybe a different vendor-specific extra?)
2/ Aren't these things (part of the documented API) supposed to be 
tested/enforced by the Android Compatibility program? 

Thank you very much for your help.

-- 
BoD

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

Re: [android-developers] how to-Start new activity with also current activity running

2012-09-06 Thread HK
Thanks.

On Wednesday, September 5, 2012 9:29:47 PM UTC+9, Mark Murphy (a Commons 
Guy) wrote:

 On Tue, Sep 4, 2012 at 10:24 PM, HK android@gmail.com javascript: 
 wrote: 
  Yes, Activity A belongs to a different team. I can ask for change 
 request if 
  possible. 

 If Activity A belongs to a different team, you should be coordinating 
 with them, having them fix their activity so onPause() is not 
 destructive (such as by moving that logic to onStop() so a 
 dialog-themed activity can appear and Activity A can remain visually 
 intact), or by negotiating some sort of broadcast Intent whereby you 
 can let them know that you are taking over the foreground. The 
 onStop() approach, with Activity B being a dialog-themed activity, 
 would seem to be the simplest approach given your description. 

 -- 
 Mark Murphy (a Commons Guy) 
 http://commonsware.com | http://github.com/commonsguy 
 http://commonsware.com/blog | http://twitter.com/commonsguy 

 _The Busy Coder's Guide to Android Development_ Version 4.1 Available! 


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

Re: [android-developers] how to-Start new activity with also current activity running

2012-09-06 Thread HK
Thanks.

On Wednesday, September 5, 2012 9:34:17 PM UTC+9, Dan wrote:

 By not readily he means that there is no nice public API for
 what application has focus, but things that look close (e.g.
 RunningAppProcessInfo importance sounds close, but requires
 polling, is slow to update, and refers to scheduler time, not
 what the user is doing.)   If you want to play non public API
 games pre-JellyBean you could watch for ActivityManager
 messages for application start (JellyBean restricts the Log
 output so you need to be a system app to see it.)

 The Google company line for not providing such an API seems
 to range from privacy to performance.  The net result is that
 if the performance monitoring tools provided (stuff under
 Settings or dumpsys) don't match your needs precisely, tough
 luck, you don't get to harness the app developers out there
 to create something beyond what Google provides.

 Unless your company has some bizarre change request process,
 you'll be much happier having activity A do some IPC you can
 count on.

 On Tuesday, September 4, 2012 10:24:46 PM UTC-4, HK wrote:

 Yes, Activity A belongs to a different team. I can ask for change request 
 if possible.

 1) But what do you mean by 'not readily' ? is it possible to detect ?

 2) I was wondering if there was another solution using TYPE_SYSTEM_DIALOG 
 which I am guessing if it can be called from a Service rather than an 
 Activity. But nobody replied to this post.

 On Wednesday, September 5, 2012 11:18:04 AM UTC+9, Mark Murphy (a Commons 
 Guy) wrote:

 On Tue, Sep 4, 2012 at 10:12 PM, HK android@gmail.com wrote: 
  So,  in Activity A's onPause, is it possible to find which activity is 
  launched ? i.e., when Activity B is launched, is it possible to find 
 in 
  Activity A's onPause that Activity B is launched ? 

 Not readily. Moreover, you do not have much control over Activity A. 

 -- 
 Mark Murphy (a Commons Guy) 
 http://commonsware.com | http://github.com/commonsguy 
 http://commonsware.com/blog | http://twitter.com/commonsguy 

 Android Training in NYC: http://marakana.com/training/android/ 



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

Re: [android-developers] how to-Start new activity with also current activity running

2012-09-06 Thread HK
specific.

On Wednesday, September 5, 2012 11:28:28 PM UTC+9, MagouyaWare wrote:

 Is Activity A a specific activity of a specific app or just any 
 arbitrary activity?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Wed, Sep 5, 2012 at 6:34 AM, Dan dan.s...@gmail.com javascript:wrote:

 By not readily he means that there is no nice public API for
 what application has focus, but things that look close (e.g.
 RunningAppProcessInfo importance sounds close, but requires
 polling, is slow to update, and refers to scheduler time, not
 what the user is doing.)   If you want to play non public API
 games pre-JellyBean you could watch for ActivityManager
 messages for application start (JellyBean restricts the Log
 output so you need to be a system app to see it.)

 The Google company line for not providing such an API seems
 to range from privacy to performance.  The net result is that
 if the performance monitoring tools provided (stuff under
 Settings or dumpsys) don't match your needs precisely, tough
 luck, you don't get to harness the app developers out there
 to create something beyond what Google provides.

 Unless your company has some bizarre change request process,
 you'll be much happier having activity A do some IPC you can
 count on.


 On Tuesday, September 4, 2012 10:24:46 PM UTC-4, HK wrote:

 Yes, Activity A belongs to a different team. I can ask for change 
 request if possible.

 1) But what do you mean by 'not readily' ? is it possible to detect ?

 2) I was wondering if there was another solution using 
 TYPE_SYSTEM_DIALOG which I am guessing if it can be called from a Service 
 rather than an Activity. But nobody replied to this post.

 On Wednesday, September 5, 2012 11:18:04 AM UTC+9, Mark Murphy (a 
 Commons Guy) wrote:

 On Tue, Sep 4, 2012 at 10:12 PM, HK android@gmail.com wrote: 
  So,  in Activity A's onPause, is it possible to find which activity 
 is 
  launched ? i.e., when Activity B is launched, is it possible to find 
 in 
  Activity A's onPause that Activity B is launched ? 

 Not readily. Moreover, you do not have much control over Activity A. 

 -- 
 Mark Murphy (a Commons Guy) 
 http://commonsware.com | http://github.com/commonsguy 
 http://commonsware.com/blog | http://twitter.com/commonsguy 

 Android Training in NYC: 
 http://marakana.com/training/**android/http://marakana.com/training/android/
  

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




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

[android-developers] Re: Android animation

2012-09-06 Thread Haris


On Thursday, 6 September 2012 10:54:30 UTC+5:30, Haris wrote:

 Thanks for your reply


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

Re: [android-developers] Re: no. of downloads is not showing in play

2012-09-06 Thread Rocky
Thanks for response.

More than 20 downloads, I can see it at my dashboard, but for public it not
showing when i'm doing search

On Thu, Sep 6, 2012 at 2:38 PM, sparky spar...@google.com wrote:

 I downloaded it to my tablet.  Let's see if it shows up later today.


 On Thursday, September 6, 2012 10:59:22 AM UTC+2, RKJ (Android developer)
 wrote:

 All,

 In one of the my apps *A P J Abdul Kalam,* no of downloads is not
 showing in play.
 https://play.google.com/store/**apps/details?id=com.kt.**
 APJKalamfeature=search_**result#?t=**W251bGwsMSwxLDEsImNvbS5rdC5BUE**
 pLYWxhbSJdhttps://play.google.com/store/apps/details?id=com.kt.APJKalamfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5rdC5BUEpLYWxhbSJd


 is any setting issue from developer accounts ?

 what is this issue ?

 --
 Thanks  Regards

 Rakesh Kumar Jha

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




-- 
Thanks  Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

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

[android-developers] Toolbar

2012-09-06 Thread Ehsan Sadeghi


How can I create a toolbar that shows in every activity in my android app. 
how can I hide/show some button in that toolbar by a background service? 
For example, I want everytime a sms received, a button showed in toolbar 
and when sms read, the toolbar hide.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] twitter4j not working on ICS and JellyBean

2012-09-06 Thread Swap
hey guys I am having problem with twitter 4 j its show force close on ICS 
and Jellybean but its works on Lower version
please check the link below for details and code 
Code of my 
apphttp://stackoverflow.com/questions/12297233/twitter4j-code-doent-work-on-ics-and-jellybean-help-me
thank you 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 CursorLoader

2012-09-06 Thread Suparna Dey


 There was uri mapping error in my code. But it was getting inserted 
 properly, not able to nothify. How to debug this kind of error?

 I think at Platform Level some checking is missing, so the interpretation 
 of Uri is different.



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

Re: [android-developers] twitter4j not working on ICS and JellyBean

2012-09-06 Thread Jim Graham
On Thu, Sep 06, 2012 at 02:54:59AM -0700, Swap wrote:
 hey guys I am having problem with twitter 4 j its show force close on ICS 
 and Jellybean but its works on Lower version
 please check the link below for details and code 
 Code of my 
 apphttp://stackoverflow.com/questions/12297233/twitter4j-code-doent-work-on-ics-and-jellybean-help-me

First, I'm assuming this is your app that you're asking for help with.
Second, if you want anyone to help you, you need to post details about
what's going wrong, what errors you're seeing (including relevant logcat
output), the suspected code, and so on.  You've posted nothing here
except the fact that it's crashing.  Without that, nobody can do anything
to help, except wish you luck in continuing to try to find the problem
your own  So, good luck.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  | Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com  | Dave Aronson:As your life flashes before
 Running Mac OS X Lion  |  your eyes, in the unit of time known as an
ICBM / Hurricane: |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.  59909W  |

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] Re: Toolbar

2012-09-06 Thread Calin Perebiceanu
I belive you're searching for  
http://developer.android.com/guide/topics/ui/actionbar.html and  
http://developer.android.com/reference/android/content/BroadcastReceiver.html
 

On Thursday, 6 September 2012 12:54:57 UTC+3, Ehsan Sadeghi wrote:

 How can I create a toolbar that shows in every activity in my android app. 
 how can I hide/show some button in that toolbar by a background service? 
 For example, I want everytime a sms received, a button showed in toolbar 
 and when sms read, the toolbar hide.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: wife manager in android

2012-09-06 Thread Calin Perebiceanu
First, be careful, using WifeManger can affect class LifeQuality.
:)
Second, please search a little before asking help.
 

On Wednesday, 5 September 2012 13:44:48 UTC+3, drey wrote:

 hi.. how can i open this class . i want to develop a software that is file 
 transfer using wifi,,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Selecting Resolutions and Stores

2012-09-06 Thread Calin Perebiceanu
Hi, my opinion is that Android makes it pretty easy to support all screen 
sizes and pd.
On the second subject Play and Amazon.

On Wednesday, 5 September 2012 17:23:25 UTC+3, VocabSpellingCity Mayor 
wrote:

 We have developed in Apple Ios App using a multiplatform development tool 
 and are now trying to figure out the spec and plan for the Android.  First 
 two questions.

 1. If we are focused on the school tablet market, which devices or combos 
 of screen size and pixel density should we support? 
 2.  I see that there are a number of app stores. The big three seem to be 
 GooglePlay, Android/apps, and Amazon. Should we plan on doing all three? 
 Some other alternative app stores or distribution methods?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] WiFi Direct sample code issue

2012-09-06 Thread Arijit Das
I am testing the sample code for wifi direct that comes with SDK. I am 
using two Galaxy Note devices (both with 4.0.4 ICS). The app runs fine till 
discovering and connecting peers. But whenever I hit the launch gallery 
button, the gallery opens up but the connection ends. It happened every 
time the same way.

Any help is appreciated.

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

Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-06 Thread tvdalia

Calin, 

Made LineatLayout layout_height - 150dp  ListView's height = 
match_parent. Unfortunately, no success. Infact the result was same as 
shown above. Also tried ListView height as wrap_content, both show same 
results as show above.

LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=match_parent android:layout_height=150dp 
android:orientation=vertical android:id=@+id/genListLayId  
TextView android:id=@+id/genListTitTv 
style=@style/inResultTitleStyle 
android:text= /

ListView android:id=@+id/genList 
android:layout_width=match_parent android:layout_height=match_parent
  android:dividerHeight=0dp android:divider=@null 
android:layout_marginLeft=10dp /
/LinearLayout

   Oh godness, how to make this work now ???


On Thursday, 6 September 2012 12:49:29 UTC+5:30, Calin Perebiceanu wrote:

 Hard code the LinearLayout's height, not the ListView




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

Re: [android-developers] Android Bluetooth party

2012-09-06 Thread Quentin MOURCOU
Hi,

Kristopher, you said the hard limit is seven nodes, but I have a similar 
problem. I'm trying to connect 6 bluetooth devices which uses the HSP/HFP 
profiles on an Android phone but it seems to doesn't work on Android 2.3 (I 
tried with Android 2.3.4, 2.3.5 and 2.3.6 on different devices) but works 
on Android 2.2 and 4.0. So do you know if there is any software limitation 
too ? I'm just trying to open the RFCOMM socket but in Android 2.3, when 
it's time to connect the third device, I have an ACL disconnection which 
not appear on Android 2.2 and 4.0 ...

Thanks,

Quentin  

Le mercredi 5 septembre 2012 22:02:10 UTC+2, Kristopher Micinski a écrit :

 It is not, Bluetooth piconets enforce a hard limit of seven nodes. 

 You can try more exotic routing techniques and get the same effect.. 

 it doesn't work very well. 

 kris 

 On Wed, Sep 5, 2012 at 3:56 PM, bob b...@coolfone.comze.com javascript: 
 wrote: 
  Anyone know if it is possible to have 16 Android devices simultaneously 
  connected to the same Bluetooth server? 
  
  
  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-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 


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

Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-06 Thread Justin Anderson
Try doing this:

ListView
android:layout_height=0dp

android:layout_weight=1
/

Got it from here:
http://stackoverflow.com/questions/4300170/listview-ignoring-wrap-content



Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Sep 6, 2012 at 6:09 AM, tvdalia truptida...@gmail.com wrote:


 Calin,

 Made LineatLayout layout_height - 150dp  ListView's height =
 match_parent. Unfortunately, no success. Infact the result was same as
 shown above. Also tried ListView height as wrap_content, both show same
 results as show above.


 LinearLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:layout_width=match_parent android:layout_height=150dp
 android:orientation=vertical android:id=@+id/genListLayId  
 TextView android:id=@+id/genListTitTv
 style=@style/inResultTitleStyle
 android:text= /

 ListView android:id=@+id/genList
 android:layout_width=match_parent android:layout_height=match_parent
   android:dividerHeight=0dp android:divider=@null
 android:layout_marginLeft=10dp /
 /LinearLayout

Oh godness, how to make this work now ???



 On Thursday, 6 September 2012 12:49:29 UTC+5:30, Calin Perebiceanu wrote:

 Hard code the LinearLayout's height, not the ListView


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


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

Re: [android-developers] Re: wife manager in android

2012-09-06 Thread Justin Anderson
I wonder if the WifeManager class is used in this program:
http://www.jamesshuggins.com/h/hum1/girl_to_wife.htm

If that is the case then maybe you should consider the GirlfriendManager
class instead... :-)

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Sep 6, 2012 at 4:46 AM, Calin Perebiceanu 
calin.perebice...@gmail.com wrote:

 WifeManger

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

Re: [android-developers] databse

2012-09-06 Thread Justin Anderson
That is a good point... I will add that link to my post.  Thanks for your
input!

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Sep 6, 2012 at 3:19 AM, sparky spar...@google.com wrote:

 Hi Justin,

 Thank you for the blog article.  Nice in particular that you called out
 Android Training.  I think Android Design is also going to emerge as an
 important go-to resource for people looking to do things that harmonize
 well with the platform.


 On Wednesday, September 5, 2012 12:33:52 AM UTC+2, MagouyaWare wrote:

 http://android-dev-tips-and-**tricks.blogspot.com/2012/08/**
 so-you-need-help.htmlhttp://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware

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


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

Re: [android-developers] Re: wife manager in android

2012-09-06 Thread Fred Niggle
I eagerly await the Ex-Wife manager :)

On 6 September 2012 14:02, Justin Anderson magouyaw...@gmail.com wrote:

 I wonder if the WifeManager class is used in this program:
 http://www.jamesshuggins.com/h/hum1/girl_to_wife.htm

 If that is the case then maybe you should consider the GirlfriendManager
 class instead... :-)

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Thu, Sep 6, 2012 at 4:46 AM, Calin Perebiceanu 
 calin.perebice...@gmail.com wrote:

 WifeManger


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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

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

Re: [android-developers] twitter4j not working on ICS and JellyBean

2012-09-06 Thread Swapnil adsure
here is link with code
http://stackoverflow.com/questions/12297233/twitter4j-code-doent-work-on-ics-and-jellybean-help-me

On Thu, Sep 6, 2012 at 12:24 PM, Jim Graham spooky1...@gmail.com wrote:

 On Thu, Sep 06, 2012 at 02:54:59AM -0700, Swap wrote:
  hey guys I am having problem with twitter 4 j its show force close on ICS
  and Jellybean but its works on Lower version
  please check the link below for details and code
  Code of my app
 http://stackoverflow.com/questions/12297233/twitter4j-code-doent-work-on-ics-and-jellybean-help-me
 

 First, I'm assuming this is your app that you're asking for help with.
 Second, if you want anyone to help you, you need to post details about
 what's going wrong, what errors you're seeing (including relevant logcat
 output), the suspected code, and so on.  You've posted nothing here
 except the fact that it's crashing.  Without that, nobody can do anything
 to help, except wish you luck in continuing to try to find the problem
 your own  So, good luck.

 Later,
--jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)  | Peter da Silva:  No, try rm -rf /
 spooky1...@gmail.com  | Dave Aronson:As your life flashes before
  Running Mac OS X Lion  |  your eyes, in the unit of time known as an
 ICBM / Hurricane: |  ohnosecond (alt.sysadmin.recovery)
30.44406N 86.  59909W  |

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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


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

Re: [android-developers] i need your help

2012-09-06 Thread Justin Anderson
This is not an appropriate question for group as it has absolutely nothing
to do with developing an app with the Android SDK.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Sep 5, 2012 at 1:33 PM, Nou nouhaghr...@gmail.com wrote:

 hello everyone;
 please I bought a Chinese tablet (ANdroid 2.3.3) but now I need to root th
 tablet .But  when i contact the saler  told me that the tablet is closed so
 I can not access my tablet as super user.  you can help me to  find a
 solution . ( also  I know the kernel version installed).

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

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

Re: [android-developers] Forced ladscape crashed when started with device in portrait

2012-09-06 Thread Justin Anderson
09-05 21:40:36.031: E/AndroidRuntime(30347): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{nielsen.happy.shooter/nielsen.happy.activities.Menu}:
 android.content.res.Resources$NotFoundException: Resource ID #0x7f030002

You are using a resource that doesn't exist...  This is happening somewhere
in your Menu class.

09-05 21:40:58.320: E/AndroidRuntime(30401): FATAL EXCEPTION: Thread-4898
 09-05 21:40:58.320: E/AndroidRuntime(30401): java.lang.NullPointerException
 09-05 21:40:58.320: E/AndroidRuntime(30401): at nielsen.happy.shooter.
 MainGamePanel.render(MainGamePanel.java:94)
 09-05 21:40:58.320: E/AndroidRuntime(30401): at
 nielsen.happy.shooter.MainThread.run(MainThread.java:101)


You are trying to use a variable that is null...  MainGamePanel.java line
94 and/or MainThread.java line 101.  Also, I recommend you learn how to
read a java stack trace.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Sep 5, 2012 at 1:45 PM, iQue max.nielse...@gmail.com wrote:

 09-05 21:40:36.031: E/AndroidRuntime(30347): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{nielsen.happy.shooter/nielsen.happy.activities.Menu}:
 android.content.res.Resources$NotFoundException: Resource ID #0x7f030002


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

Re: [android-developers] Android Bluetooth party

2012-09-06 Thread Kristopher Micinski
I've discussed this various places, this is one of them:

http://stackoverflow.com/questions/10963614/android-bluetooth-chat-sample-app-multiple-connections/10963812#10963812

The basic story is, yes, more than a few nodes is quite hard because
of some soft limitations and (iirc) flaky bluetooth controllers,..

kris

On Thu, Sep 6, 2012 at 8:38 AM, Quentin MOURCOU qmour...@gmail.com wrote:
 Hi,

 Kristopher, you said the hard limit is seven nodes, but I have a similar
 problem. I'm trying to connect 6 bluetooth devices which uses the HSP/HFP
 profiles on an Android phone but it seems to doesn't work on Android 2.3 (I
 tried with Android 2.3.4, 2.3.5 and 2.3.6 on different devices) but works on
 Android 2.2 and 4.0. So do you know if there is any software limitation too
 ? I'm just trying to open the RFCOMM socket but in Android 2.3, when it's
 time to connect the third device, I have an ACL disconnection which not
 appear on Android 2.2 and 4.0 ...

 Thanks,

 Quentin

 Le mercredi 5 septembre 2012 22:02:10 UTC+2, Kristopher Micinski a écrit :

 It is not, Bluetooth piconets enforce a hard limit of seven nodes.

 You can try more exotic routing techniques and get the same effect..

 it doesn't work very well.

 kris

 On Wed, Sep 5, 2012 at 3:56 PM, bob b...@coolfone.comze.com wrote:
  Anyone know if it is possible to have 16 Android devices simultaneously
  connected to the same Bluetooth server?
 
 
  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-d...@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: create and manage an ad-hoc Bluetooth or WLAN

2012-09-06 Thread varun
Is JXME on android a solution?

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

Re: [android-developers] Register android developer account for company

2012-09-06 Thread Justin Anderson
Use a company credit card?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Sep 5, 2012 at 9:02 AM, futuredeveloper? mik654r...@gmail.comwrote:

 I'm trying to register an Android Developer account for our company that
 we'll use to publish our company's apps to the market. So we don't want a
 account which is bound to a single developer.

 But this statement which is displayed before paying the fee of $25 let me
 wonder if a developer account can be associated with a company at all.

 Your registration fee enables you to publish software in the market. The
 name and billing address used to register will bind you to the Android
 Market Developer Distribution Agreement. So make sure you double check!

 If I understand this correctly, then this means that the person whose
 credit card is used to pay the fee will be the person how accept the
 developer agreement and therefore will be legal responsible for the apps
 that are published under this account.

 If this is correct then this is not exactly what we want, as we cannot
 make one of our developer personal legal responsible for the company's
 product.

 So what are our options to avoid this? How could the account be legally
 bound to the company instead. Or did we miss understand the whole statement?

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

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

Re: [android-developers] create and manage an ad-hoc Bluetooth or WLAN

2012-09-06 Thread Kristopher Micinski
I would say, no, the best way to do this is still to use a cloud based
service to get done what you need..

Qualcomm had a framework which was trying to make this easier a while
back, I don't know what happened to it..

kris

On Wed, Sep 5, 2012 at 11:20 AM, varun varun...@gmail.com wrote:
 Hi all,
   Any idea about an ad-hoc Bluetooth or local wireless network in
 android?  Is there any APIs to create a peer to peer android application as
 in Apple iphone game center?

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

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


[android-developers] Imports cannot be resolved after adding a permission in Manifest.

2012-09-06 Thread Guilherme Bernardi
Hello everyone.

My application is separated by package's (Activity, Connection, Attributes, 
Engine) and their respective classes.

In whole application I import the necessary package's and attributes class 
like this:
*import dataplus.application.attributes.Cliente;*

and use the objects:
*Cliente cliente = new Cliente();*

Today I did the internet validating, and I edit my Manifest put the 
permission above and save:

*uses-permission android:name=android.permission.ACCESS_NETWORK_STATE /*

Thereafter all the imports and objects be:
*The import dataplus.application.attributes.Cliente cannot be resolved*
*
*
I searched and people suggest do Project  Clean... at Eclipse, but some 
people said that when do that they lost their classes. So I prefer ask 
first.

How do I fix this?

This is a eclipse problem? coding problem? or what?

Thanks in advance.


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

Re: [android-developers] Imports cannot be resolved after adding a permission in Manifest.

2012-09-06 Thread Kristopher Micinski
It makes no sense why these would be correlated.

The correct solution is to do a clean and rebuild.

You won't lose any classes that you have written..

kris

On Thu, Sep 6, 2012 at 9:41 AM, Guilherme Bernardi
gui.bernard...@gmail.com wrote:
 Hello everyone.

 My application is separated by package's (Activity, Connection, Attributes,
 Engine) and their respective classes.

 In whole application I import the necessary package's and attributes class
 like this:
 import dataplus.application.attributes.Cliente;

 and use the objects:
 Cliente cliente = new Cliente();

 Today I did the internet validating, and I edit my Manifest put the
 permission above and save:

 uses-permission android:name=android.permission.ACCESS_NETWORK_STATE /

 Thereafter all the imports and objects be:
 The import dataplus.application.attributes.Cliente cannot be resolved

 I searched and people suggest do Project  Clean... at Eclipse, but some
 people said that when do that they lost their classes. So I prefer ask
 first.

 How do I fix this?

 This is a eclipse problem? coding problem? or what?

 Thanks in advance.


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

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


Re: [android-developers] create and manage an ad-hoc Bluetooth or WLAN

2012-09-06 Thread varun m
What about the sip2peer project? (http://code.google.com/p/sip2peer/)

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

Re: [android-developers] Need assistance reg using single layout, create AlertDialog handle events in different Activity's

2012-09-06 Thread Justin Anderson

 I couldn't find any example from docs as per my needs and that you and
 Trek are reffering to.


If you were looking for an example of how to create an dialog with a static
function then yes you are right...  However, if you go through your career
as a developer expecting to find code examples for everything you are
trying to do exactly how you are doing it then you are going to have a very
hard time.

The docs talk about how to set a click listener on a dialog.  There are
(potentially) an infinite number of ways to create an alert dialog...
including a static method like you have done (though I personally would not
do it that way).  You are not going to have examples for everything. You
need to apply critical thinking to the information from the docs to apply
it to your situation.

That is what I did when I looked at the docs, looked at what you were
doing, and suggested adding a click listener as a parameter to your
method.  The reason I said the docs give you everything you need is because
once you add the parameter to your static method the code inside your
dialog should be virtually identical to that in the docs.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sat, Sep 1, 2012 at 2:07 AM, tvdalia truptida...@gmail.com wrote:

I couldn't find any example from docs as per my needs and that you and
 Trek are reffering to.

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

Re: [android-developers] Android Bluetooth party

2012-09-06 Thread Quentin MOURCOU
Ok thank you, that's what I thought.

Quentin

Le jeudi 6 septembre 2012 15:28:29 UTC+2, Kristopher Micinski a écrit :

 I've discussed this various places, this is one of them: 


 http://stackoverflow.com/questions/10963614/android-bluetooth-chat-sample-app-multiple-connections/10963812#10963812
  

 The basic story is, yes, more than a few nodes is quite hard because 
 of some soft limitations and (iirc) flaky bluetooth controllers,.. 

 kris 

 On Thu, Sep 6, 2012 at 8:38 AM, Quentin MOURCOU 
 qmou...@gmail.comjavascript: 
 wrote: 
  Hi, 
  
  Kristopher, you said the hard limit is seven nodes, but I have a similar 
  problem. I'm trying to connect 6 bluetooth devices which uses the 
 HSP/HFP 
  profiles on an Android phone but it seems to doesn't work on Android 2.3 
 (I 
  tried with Android 2.3.4, 2.3.5 and 2.3.6 on different devices) but 
 works on 
  Android 2.2 and 4.0. So do you know if there is any software limitation 
 too 
  ? I'm just trying to open the RFCOMM socket but in Android 2.3, when 
 it's 
  time to connect the third device, I have an ACL disconnection which not 
  appear on Android 2.2 and 4.0 ... 
  
  Thanks, 
  
  Quentin 
  
  Le mercredi 5 septembre 2012 22:02:10 UTC+2, Kristopher Micinski a écrit 
 : 
  
  It is not, Bluetooth piconets enforce a hard limit of seven nodes. 
  
  You can try more exotic routing techniques and get the same effect.. 
  
  it doesn't work very well. 
  
  kris 
  
  On Wed, Sep 5, 2012 at 3:56 PM, bob b...@coolfone.comze.com wrote: 
   Anyone know if it is possible to have 16 Android devices 
 simultaneously 
   connected to the same Bluetooth server? 
   
   
   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-d...@googlegroups.com 
   To unsubscribe from this group, send email to 
   android-developers+unsubscr...@googlegroups.com javascript: 
   For more options, visit this group at 
   http://groups.google.com/group/android-developers?hl=en 
  
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 


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

Re: [android-developers] Need assistance reg using single layout, create AlertDialog handle events in different Activity's

2012-09-06 Thread Justin Anderson

 The reason I said the docs give you everything you need is because once
 you add the parameter to your static method the code inside your dialog
 should be virtually identical to that in the docs.


EDIT: I meant to say *the code inside your METHOD should be virtually
identical to that in the docs*

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Sep 6, 2012 at 7:56 AM, Justin Anderson magouyaw...@gmail.comwrote:

 I couldn't find any example from docs as per my needs and that you and
 Trek are reffering to.


 If you were looking for an example of how to create an dialog with a
 static function then yes you are right...  However, if you go through your
 career as a developer expecting to find code examples for everything you
 are trying to do exactly how you are doing it then you are going to have a
 very hard time.

 The docs talk about how to set a click listener on a dialog.  There are
 (potentially) an infinite number of ways to create an alert dialog...
 including a static method like you have done (though I personally would not
 do it that way).  You are not going to have examples for everything. You
 need to apply critical thinking to the information from the docs to apply
 it to your situation.

 That is what I did when I looked at the docs, looked at what you were
 doing, and suggested adding a click listener as a parameter to your
 method.  The reason I said the docs give you everything you need is because
 once you add the parameter to your static method the code inside your
 dialog should be virtually identical to that in the docs.


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Sat, Sep 1, 2012 at 2:07 AM, tvdalia truptida...@gmail.com wrote:

I couldn't find any example from docs as per my needs and that you and
 Trek are reffering to.




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

Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-06 Thread Felipe Caldas


 Is your inflated layout a LinearLayout ? If not, try with LinearLayout.


Another possibility is

 dialog = new Dialog(this,android.R.style.Theme_Translucent_NoTitleBar);

dialog.setContentView(R.layout.custom_dialog);

 LayoutParams lp=dialog.getWindow().getAttributes();

 lp.x=100;lp.y=100;lp.width=100;lp.height=200;lp.gravity=Gravity.TOP | 
Gravity.LEFT;
 lp.dimAmount=0;
 lp.flags=LayoutParams.FLAG_LAYOUT_NO_LIMITS | 
LayoutParams.FLAG_NOT_TOUCH_MODAL;
//   dialog.getWindow().setAttributes(lp);

 dialog.show(); 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 globally define a CheckBox style?

2012-09-06 Thread Felipe Caldas
Hi everyone,

I am trying to create a global style for my checkboxes in my app. I already 
have the two images needed and already created the selector XML to select 
between them.
In my styles.xml I have:

style name=MyTheme parent=android:Theme.Light
item name=android:buttonStyle@style/ButtonText/item
item name=android:windowNoTitletrue/item
item name=android:windowBackground@drawable/background/item
 /style

Is there any parameter that I can set in MyTheme to globally set the 
drawable selector for all CheckBoxes in the app? For example, something 
like this:

style name=MyTheme parent=android:Theme.Light
item name=android:buttonStyle@style/ButtonText/item
item name=android:windowNoTitletrue/item
item name=android:windowBackground@drawable/background/item
*item 
name=android:checkBoxBackground@drawable/mycheckbox_background/item *
 /style

Many thanks,
Felipe

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Icons in LISTVIEW...

2012-09-06 Thread Sobia Awan
Hi,

 I want to set  3 icons at  the right side of the LISTVIEW  when i click on
icon1 the new activity should start and so on,  Is  it possible or not ...?


Thank you
-- 
*Sobia Awan*
*  Bs(cs)*
**

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

Re: [android-developers] create and manage an ad-hoc Bluetooth or WLAN

2012-09-06 Thread Kristopher Micinski
Yes, but that's an overlay based solution, not really an underlying
solution, I don't see anything about bluetooth on their site?

kris

On Thu, Sep 6, 2012 at 9:46 AM, varun m varun...@gmail.com wrote:
 What about the sip2peer project? (http://code.google.com/p/sip2peer/)

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

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


Re: [android-developers] Re: wife manager in android

2012-09-06 Thread John Coryat


 I eagerly await the Ex-Wife manager :)

 That's entirely another hardware 
item: http://en.wikipedia.org/wiki/Woodchipper




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] fatal_error

2012-09-06 Thread bob
 

Back in the day, when I used to program Windows and other systems, I had a 
function like this:


void fatal_error(char *msg)

{

cout  msg  endl;

exit(1);

}



Is there an easy way to make something similarly elegant and useful in 
Android?


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

Re: [android-developers] Icons in LISTVIEW...

2012-09-06 Thread ramesh aravelli
Yes... Possible. Take customadapter and inflate xml that contains icons.
On Sep 6, 2012 7:53 PM, Sobia Awan juwerian.so...@gmail.com wrote:


 Hi,

  I want to set  3 icons at  the right side of the LISTVIEW  when i click
 on icon1 the new activity should start and so on,  Is  it possible or not
 ...?


 Thank you
 --
 *Sobia Awan*
 *  Bs(cs)*
 **


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

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

Re: [android-developers] Need assistance reg using single layout, create AlertDialog handle events in different Activity's

2012-09-06 Thread tvdalia

Yes Justin, 
  
I understand and agree with you 100% - we can't get code of all 
situations that we face, nor I ever look out for it. I just explore and try 
to figure it out myself. When after spending hrs and am badly stuck up, 
then only I ask in any forum, else I work out thru exploring.
But yes, what you got from docs and suggested me, I really didn't find 
out. I really had missed out something, don't know how.



On Thursday, 6 September 2012 19:29:08 UTC+5:30, MagouyaWare wrote:

 I couldn't find any example from docs as per my needs and that you and 
 Trek are reffering to. 


 If you were looking for an example of how to create an dialog with a 
 static function then yes you are right...  However, if you go through your 
 career as a developer expecting to find code examples for everything you 
 are trying to do exactly how you are doing it then you are going to have a 
 very hard time.

 The docs talk about how to set a click listener on a dialog.  There are 
 (potentially) an infinite number of ways to create an alert dialog... 
 including a static method like you have done (though I personally would not 
 do it that way).  You are not going to have examples for everything. You 
 need to apply critical thinking to the information from the docs to apply 
 it to your situation.

 That is what I did when I looked at the docs, looked at what you were 
 doing, and suggested adding a click listener as a parameter to your 
 method.  The reason I said the docs give you everything you need is because 
 once you add the parameter to your static method the code inside your 
 dialog should be virtually identical to that in the docs.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Sat, Sep 1, 2012 at 2:07 AM, tvdalia trupt...@gmail.com 
 javascript:wrote:

I couldn't find any example from docs as per my needs and that you and 
 Trek are reffering to. 




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

Re: [android-developers] Need assistance reg using single layout, create AlertDialog handle events in different Activity's

2012-09-06 Thread tvdalia

Trek and Justin Thanks a lot for guiding me and helping me get the way I 
wanted.
I highly appreciate your contribution.

Thanks.


On Wednesday, 29 August 2012 23:56:10 UTC+5:30, MagouyaWare wrote:

 Treking, Thanks
 But pls read  understand my question proeprly.
 I don't want to know how to handle events in the same dialog, it is how 
 to handle events in different Activity that is calling that AlertDialog.


 The link Treking gave you gives you everything you need to know...  

 Notice how all the examples in there are setting various click listeners 
 on the dialog?  Given what you've told us and the docs that Treking pointed 
 you to, I would assume that you would want to add parameters to your static 
 method that take a click listener of some sort...  Each activity can have 
 its own set of click listeners and they just pass them in when they need 
 the dialog.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Wed, Aug 29, 2012 at 12:14 PM, tvdalia trupt...@gmail.comjavascript:
  wrote:

  
 Treking, Thanks
 But pls read  understand my question proeprly.
 I don't want to know how to handle events in the same dialog, it is how 
 to handle events in different Activity that is calling that AlertDialog.
  
 - Regards
  

 On Wednesday, 29 August 2012 22:07:35 UTC+5:30, TreKing wrote:

 On Wed, Aug 29, 2012 at 11:06 AM, tvdalia trupt...@gmail.com wrote:
  
 Now how do I handle click events for the ListView that is in 
 AlertDialog ??


 Review the Dialogs section in the documentation. It shows how to handle 
 single and multiple choice selections in Diaogs.

 --**--**
 --**---
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices

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




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

[android-developers] Continued Trouble Uploading to Android Marketplace - The server could not process your apk. Try again. Is there any support for this issue?

2012-09-06 Thread QuigleyMcCormick
I've attempted to upload a new apk file to the Android marketplace and I 
continue to get the following error.
 “The server could not process your apk. Try 
again.http://stackoverflow.com/questions/2274284/android-marketplace-error-the-server-could-not-process-your-apk-try-again

This has been an ongoing issue. I've researched this issue and it seems it 
is a common issue and should be easily solved. But the message Android 
Marketplace Error: “The server could not process your apk. Try 
again.http://stackoverflow.com/questions/2274284/android-marketplace-error-the-server-could-not-process-your-apk-try-again
 
is cryptic and leaves me with no where to go.

In all other markets, Apple, Barnes  Noble, and Amazon, I can talk 
directly with the support staff and get a satisfactory answer. The Android 
marketplace seems like the wild west and everyone is on their own.

Has anyone every had this issue and solved it?

Who can I contact to solve this issue?

I don't have anymore ideas on how to solve 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

Re: [android-developers] Re: does NFC in gingerbread support card simulate?

2012-09-06 Thread Michael Roland
Hi Nikolay,

 Maybe Doug can give some more hints on how to properly use IsoPcd?
 
 Does he hang around here :)

I don't know, but I had BCC'd him on that message, so here is what he wrote:

|| Sure guys,
|| ISOPCDA/B is just another tag type.
|| The only difference is that the intent won't fire unless the app
|| is in the foreground. This is on purpose to give default to
|| google wallet. The intent will fire only when the first APDU is
|| sent from reader to phone. At that point...the intent fires (so
|| rats, select, reset, etc 14443-3 commands don't fire the intent)
|| The emulation is a 14443-4 level emulation intended for APDU
|| exchange.

br
Michael

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


[android-developers] fatal_error

2012-09-06 Thread RichardC
throw new RuntimeException(My message);

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


Re: [android-developers] fatal_error

2012-09-06 Thread TreKing
On Thu, Sep 6, 2012 at 10:29 AM, bob b...@coolfone.comze.com wrote:

 Is there an easy way to make something similarly elegant


Abruptly ending the program is elegant?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Continued Trouble Uploading to Android Marketplace - The server could not process your apk. Try again. Is there any support for this issue?

2012-09-06 Thread TreKing
On Thu, Sep 6, 2012 at 11:50 AM, QuigleyMcCormick 
development.quackenwo...@gmail.com wrote:

 Who can I contact to solve this issue?


http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601

Best of luck. You're going to need it.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] twitter4j not working on ICS and JellyBean

2012-09-06 Thread Jim Graham
On Thu, Sep 06, 2012 at 03:14:10PM +0200, Swapnil adsure wrote:
 here is link with code

I don't see any code.  Just a link.  Where's the code?  Where is the
actual question?  Where's the logcat output?  Why isn't it posted here,
where it belongs if you're asking the question here?

This has been written here by many others, in response to similar
empty posts (ones with nothing but a link that gets ignored).  I
gather you weren't paying attention then or now.

Post your code, logcat output, etc., *HERE* if you want help from this
list.  You have yet to post ANYTHING here except for a bit saying
something isn't working.

Remember, you are trying to get someone to volunteer their time and
effort to help you.  Something for which they get no reward of any kind.
When you ask them to do your work for you, as well as helping you, you
are, at the very least, being very rude, and are definitely hurting your
chances of getting a response from the very people who are most likely to
be of the most help to you.  Instead, your question, whatever it is, just
gets skipped.

Now, you may think I'm being nasty, or something like that---some have,
in the past, mis-read my suggestions as such.  Don't make that mistake.
I'm trying to help.  If you really want help here, don't post a link to
somewhere else, expecting people to follow that link, copy your stuff
here to reply to it here, and so on.  Post your full question and all
related data HERE.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  | Tux (E Cat):  DS B+Wd Y 6 Y L+++ W+ C++/C++ I+++
spooky1...@gmail.com  | T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC---
 Running Mac OS X Lion  | 
ICBM / Hurricane: | Tiggerbelle:  DS W+S+Bts % 1.5 X L W C+++/C+
   30.44406N 86.59909W| I+++  T A E++ H S++ V+++ Q+++ P  B++ PA++ PL+ SC

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] Is android.permissions.FLASHLIGHT required to use Camera Flash?

2012-09-06 Thread TreKing
On Wed, Sep 5, 2012 at 2:51 PM, Maksim Golivkin m.goliv...@gmail.comwrote:

 For instance, cardio library https://www.card.io/ library uses camera
 flash, but doesn't require this permission.


Is it just using the *flash* (as in a quick burst of light to illuminate an
area before taking a picture) or is it using the flash*light* (as in a
constant stream of light emanating from your device irrespective of taking
a picture)?


 I have test app using camera flash w/o this permission on Galaxy S2 (4.03)
 and Nexus One (2.3.6) and it went smoothly.


Again, flash or flash*light*?

Does anybody has any experience with situations where you need
 android.permissions.FLASHLIGHT? What is it used for?


I don't, but going by the name, I assume it's used for this:
http://developer.android.com/reference/android/hardware/Camera.Parameters.html#FLASH_MODE_TORCH

Don't forget, you have full access to the source code to satisfy
curiosities like this.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] School project help needed.

2012-09-06 Thread Lew
Kristopher Micinski wrote:

 I should respond to your comments with the disclosure that I am 
 somewhat affiliated with a university (as a PhD student), currently 
 Maryland, and have taught or TAd a few classes here.  My views are 
 from experience teaching (let's say, three or four sections, and then 
 a section of much more advanced grad students), and my previous 
 experience as an undergrad in TAing.. 


I am a software developer of long standing who's worked with Java 
professionally since the late 90s, worked on many large- and small-
scale Java and mixed-language projects, and for the last year and a 
half on Android and other mobile projects.

My experience is from applying programming knowledge in a real-world 
environment where mistakes cost money and jobs, and the problems 
are not artificially constrained for pedagogical purpose.

In my own experience the knowledge of Java helps to learn Android, 
but the difficulties to which I alluded are real and do impact the learning 
curve. I find that a year and a half was more than I needed to understand 
the Java parts of the platform, but evolvingly just barely enough to 
understand the pragmatic aspects of actually running software that won't 
crash and will do what's intended.

I'm sure it's much cleaner in the ivory tower.
  

 Lew wrote: 
  Kristopher Micinski wrote: 
  
  I don't think that Android is a significantly new API or programming 
  
  Compared to what? 
  

 Compared to the slew of APIs that undergraduates will typically see. 
 As undergrads here (@UMD) we teach a few different environments.


Oh, I thought you were comparing it to Java in other environments.
 

 - In our 100 level courses we teach standard java [sic], this includes 
 the 

standard library, but may also occasionally include swing [sic] or APIs 
 that 

the professors have home baked. 
 - In our 200 level courses we teach old world unix stuff, including 
 the posix [sic] API, and things of that nature 

- In the 300/400 level courses we have a variety of courses using 
 different APIs, teaching things from OpenGL, to the .NET ecosystem, 
 and things like that. 
 - We also teach theory and the theory of systems and programming 
 languages (through which we teach Ruby, OCaml, etc.., although more 
 niche languages like Erlang are sometimes used as well) 

 I consider that an undergraduate from our department should have 
 enough familiarity with adjusting to different systems that they 
 should be able to take any new language, adapt to it, along with a new 
 API, and get productive work done without being stuck. 

 We do have a 400 level class covering Android programming, and all of 
 our students were able to adjust to the environment very quickly, and 
 start getting real projects done within one month's time. 

  
  environment, and if you know Java (and even if you don't, but know C++ 
  or something similar-ish well enough) will be very easy to pick up.. 
  
  
  You elide over the difficulties. Java is more than a language, it's an 
  environment, and that environment is quite different between Android and 
  other platforms. 
  

 I disagree.  The core standard java [sic] stuff is all there.  There's a 


Sure, but it's the Android stuff that isn't in Core Java that makes the 
difference.
 
Humans are chimpanzees, because all the core standard chimp DNA is there.

separate API, sure, but the components remain the same.  For example, 
 the activity lifecycle mirrors many other state machine processes 
 found in any of these other environments students will have seen 
 before.  Students also will (in any good computer science program) 
 cover functional programming concepts (from this you get intents and 
 components, which are typically fairly stateless -- though not 
 *always*), concurrency (students will have seen things similar to 
 AsyncTask before, as most courses -- certainly ours at UMD and those 
 I took at my undergrad institution, along with the other courses I've 
 reviewed from probably six other institutions -- cover concurrency and 
 ways to make it easier), and RPC (AIDL, Messenger / Handler combos). 


Yes, but these are extra-Java data, so you are supporting my thesis 
that more than knowledge of Java is needed to be effective with Android.
 

 Courses at many universities will also typically cover GUI 
 programming, typically in *more than one form*.  For example, I 
 believe our courses here cover wxwidgets to some extent, and also the 
 C# GUI stuff, this fits into the more general category of reactive 
 programming, which is covered to a larger extent in our courses on 
 functional programming and theory.  So I assume that a student should 
 be able to take Android's GUI system off the shelf and know 
 something about widgets (views) and things like that. 


Again, by learning more than Java in the first place.

 For example, you could go through years of standard or enterprise Java 
 programming without every defining a UI in XML. If this 

Re: [android-developers] Icons in LISTVIEW...

2012-09-06 Thread Amey Bapat
import android.app.Activity;
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;

public class Home extends ListActivity {

String [] names = {aa, bb, cc, dd};
int [] images = { R.drawable.wall, R.drawable.back, R.drawable.wall,
R.drawable.back};
   ListView list;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

list = getListView();

FriendAdapter adapter = new FriendAdapter(names, images, this);
list.setAdapter(adapter);


}

}

adapter class:
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class FriendAdapter extends BaseAdapter {

private int [] images;
private String [] names;
private Context context;
 public FriendAdapter( String [] names, int [] images, Context context ) {
this.names = names;
this.images = images;
this.context = context;
}
 public int getCount() {
// TODO Auto-generated method stub
return images.length;
}

 public Object getItem(int position) {
// TODO Auto-generated method stub
return null;
}


public long getItemId(int position) {
// TODO Auto-generated method stub
return 0;
}

 public View getView(int position, View convertView, ViewGroup parent) {
FriendView f = new FriendView(context);
f.setImage( images[position]);
f.setText(names[position]);
return f;
}

}




import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

public class FriendView extends LinearLayout {

ImageView image;
TextView text;
Button myNewButton;
public FriendView(Context context, AttributeSet attrs) {
super(context, attrs);
 }
 public FriendView(final Context context) {
super(context);
 image = new ImageView(context);
LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
//android.view.ViewGroup.LayoutParams lp = new
ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.FILL_PARENT);
image.setLayoutParams( lp );
 text = new TextView(context);
text.setLayoutParams(lp);
 myNewButton = new Button(context);
myNewButton.setLayoutParams(lp);
myNewButton.setWidth(100);
myNewButton.setHeight(200);
setOrientation(LinearLayout.HORIZONTAL);
//setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));
addView(image);
addView( text );
addView(myNewButton);
myNewButton.setOnClickListener(new OnClickListener() {
 public void onClick(View v) {
// TODO Auto-generated method stub
Toast.makeText(context, myNewButton.getText().toString(),
Toast.LENGTH_SHORT).show();
 }
});
}

public void setImage( int resId ) {
image.setImageResource(resId);
}
public void setText(String str) {
text.setText(str);
myNewButton.setText(str);
}
}

its not exactly what u want but
 i am doing event handling on da button,instead of the button u will have
an icon nd u would throw an intent on dat item's onclick..
its easy..jus try it..
a basic code to help u out..
all da best..

On Thu, Sep 6, 2012 at 7:52 PM, Sobia Awan juwerian.so...@gmail.com wrote:


 Hi,

  I want to set  3 icons at  the right side of the LISTVIEW  when i click
 on icon1 the new activity should start and so on,  Is  it possible or not
 ...?


 Thank you
 --
 *Sobia Awan*
 *  Bs(cs)*
 **


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




-- 
live and let LIVE!!!

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

Re: [android-developers] fatal_error

2012-09-06 Thread Kristopher Micinski
On Thu, Sep 6, 2012 at 1:13 PM, TreKing treking...@gmail.com wrote:
 On Thu, Sep 6, 2012 at 10:29 AM, bob b...@coolfone.comze.com wrote:

 Is there an easy way to make something similarly elegant


 Abruptly ending the program is elegant?

I agree with TreKing, this question is ill formed because its premise
is flawed: that is not an elegant way to exit the program.

It is a quick way to exit the program..

The preferred way is a chain of finish()'s through the activity stack,
if you're deep inside the program..

kris

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


Re: [android-developers] Icons in LISTVIEW...

2012-09-06 Thread Sobia Awan
ok ! Thanks for your reply..

On Thu, Sep 6, 2012 at 10:47 PM, Amey Bapat amey.n.ba...@gmail.com wrote:

 import android.app.Activity;
 import android.app.ListActivity;
 import android.os.Bundle;
 import android.widget.ArrayAdapter;
 import android.widget.Button;
 import android.widget.ListView;

 public class Home extends ListActivity {

 String [] names = {aa, bb, cc, dd};
  int [] images = { R.drawable.wall, R.drawable.back, R.drawable.wall,
 R.drawable.back};
ListView list;
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);

 list = getListView();

 FriendAdapter adapter = new FriendAdapter(names, images, this);
 list.setAdapter(adapter);


 }

 }

 adapter class:
 import android.content.Context;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.BaseAdapter;

 public class FriendAdapter extends BaseAdapter {

 private int [] images;
  private String [] names;
 private Context context;
  public FriendAdapter( String [] names, int [] images, Context context ) {
 this.names = names;
  this.images = images;
 this.context = context;
 }
   public int getCount() {
  // TODO Auto-generated method stub
 return images.length;
 }

  public Object getItem(int position) {
 // TODO Auto-generated method stub
  return null;
 }


 public long getItemId(int position) {
  // TODO Auto-generated method stub
 return 0;
 }

  public View getView(int position, View convertView, ViewGroup parent) {
  FriendView f = new FriendView(context);
 f.setImage( images[position]);
 f.setText(names[position]);
  return f;
 }

 }




 import android.content.Context;
 import android.util.AttributeSet;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.Button;
 import android.widget.ImageView;
 import android.widget.LinearLayout;
 import android.widget.TextView;
 import android.widget.Toast;

 public class FriendView extends LinearLayout {

 ImageView image;
 TextView text;
 Button myNewButton;
  public FriendView(Context context, AttributeSet attrs) {
 super(context, attrs);
  }
  public FriendView(final Context context) {
 super(context);
  image = new ImageView(context);
 LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT,
 LayoutParams.WRAP_CONTENT);
  //android.view.ViewGroup.LayoutParams lp = new
 ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,
 ViewGroup.LayoutParams.FILL_PARENT);
 image.setLayoutParams( lp );
  text = new TextView(context);
 text.setLayoutParams(lp);
  myNewButton = new Button(context);
 myNewButton.setLayoutParams(lp);
 myNewButton.setWidth(100);
 myNewButton.setHeight(200);
 setOrientation(LinearLayout.HORIZONTAL);
  //setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
 LayoutParams.WRAP_CONTENT));
 addView(image);
  addView( text );
 addView(myNewButton);
 myNewButton.setOnClickListener(new OnClickListener() {
  public void onClick(View v) {
 // TODO Auto-generated method stub
  Toast.makeText(context, myNewButton.getText().toString(),
 Toast.LENGTH_SHORT).show();
  }
 });
 }

 public void setImage( int resId ) {
 image.setImageResource(resId);
  }
 public void setText(String str) {
 text.setText(str);
  myNewButton.setText(str);
 }
 }

 its not exactly what u want but
  i am doing event handling on da button,instead of the button u will have
 an icon nd u would throw an intent on dat item's onclick..
 its easy..jus try it..
 a basic code to help u out..
 all da best..

 On Thu, Sep 6, 2012 at 7:52 PM, Sobia Awan juwerian.so...@gmail.comwrote:


 Hi,

  I want to set  3 icons at  the right side of the LISTVIEW  when i click
 on icon1 the new activity should start and so on,  Is  it possible or not
 ...?


 Thank you
 --
 *Sobia Awan*
 *  Bs(cs)*
 **


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




 --
 live and let LIVE!!!

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




-- 
*Sobia Awan*
*  Bs(cs)*
**

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

Re: [android-developers] School project help needed.

2012-09-06 Thread Kristopher Micinski
On Thu, Sep 6, 2012 at 1:37 PM, Lew lewbl...@gmail.com wrote:
 Kristopher Micinski wrote:

 I should respond to your comments with the disclosure that I am
 somewhat affiliated with a university (as a PhD student), currently
 Maryland, and have taught or TAd a few classes here.  My views are
 from experience teaching (let's say, three or four sections, and then
 a section of much more advanced grad students), and my previous
 experience as an undergrad in TAing..


 I am a software developer of long standing who's worked with Java
 professionally since the late 90s, worked on many large- and small-
 scale Java and mixed-language projects, and for the last year and a
 half on Android and other mobile projects.

 My experience is from applying programming knowledge in a real-world
 environment where mistakes cost money and jobs, and the problems
 are not artificially constrained for pedagogical purpose.

 In my own experience the knowledge of Java helps to learn Android,
 but the difficulties to which I alluded are real and do impact the learning
 curve. I find that a year and a half was more than I needed to understand
 the Java parts of the platform, but evolvingly just barely enough to
 understand the pragmatic aspects of actually running software that won't
 crash and will do what's intended.

 I'm sure it's much cleaner in the ivory tower.


Well, one obvious thing that's different is that within academia (I
have worked in industry for a short time, by the way, as well!) is
that things don't really have to work, things don't have to be 100%
polished, and the professor will not go through your design completely
for a final project.  Even if it's a deliverable for a final project
to a company, my experience with these capstone courses is that most
companies simply take the code and look at it, and then send their own
engineers to rewrite it anway..

 Sure, but it's the Android stuff that isn't in Core Java that makes the
 difference.


Yes, but the fundamental stuff won't change.  In my experience data
structures, algorithms, etc..., are the real content.  If you need to
represent a list of things, you can do so using the standard
techniques.  Students will have seen adapter classes before (for
example), if you put the two together you get the necessary
requirements for an Android list, for example.  If you add in their
courses on parallelism, the concepts they will have learned in a
networking class, and others, they should be able to extrapolate this
knowledge to look at the Android task code and write a lazy list
that is refreshed from the network (indeed, our students did this in
our android course, I believe...)

 Humans are chimpanzees, because all the core standard chimp DNA is there.


Sure, and if you're studying biology as an undergrad, most of the
stuff you need to know lies in the common knowledge.  if you're
programming professionally, it might not, but I'm still not convinced
the difference is a real killer, I'd bet if you took someone who knew
a lot about the structure of chimps, they could pick up the stuff
about humans pretty easily too!

 separate API, sure, but the components remain the same.  For example,
 the activity lifecycle mirrors many other state machine processes
 found in any of these other environments students will have seen
 before.  Students also will (in any good computer science program)
 cover functional programming concepts (from this you get intents and
 components, which are typically fairly stateless -- though not
 *always*), concurrency (students will have seen things similar to
 AsyncTask before, as most courses -- certainly ours at UMD and those
 I took at my undergrad institution, along with the other courses I've
 reviewed from probably six other institutions -- cover concurrency and
 ways to make it easier), and RPC (AIDL, Messenger / Handler combos).


 Yes, but these are extra-Java data, so you are supporting my thesis
 that more than knowledge of Java is needed to be effective with Android.


You need to know more than Java to program on Android because it's a
separate API.  This is the same with any other large Java framework
out there: swing, JSP, etc..

I'm also arguing that they are extra java things, but not things that
students won't have seen before: they've probably seen something
'close enough' outside of their Java courses (generally we still teach
old world unix IPC, for example).


 Courses at many universities will also typically cover GUI
 programming, typically in *more than one form*.  For example, I
 believe our courses here cover wxwidgets to some extent, and also the
 C# GUI stuff, this fits into the more general category of reactive
 programming, which is covered to a larger extent in our courses on
 functional programming and theory.  So I assume that a student should
 be able to take Android's GUI system off the shelf and know
 something about widgets (views) and things like that.


 Again, by learning more than Java in the first 

  1   2   >