Re: [android-developers] Problem with resultforactivity and extras

2013-02-17 Thread TreKing
On Sat, Feb 16, 2013 at 9:06 PM, α Centauri lucasact...@gmail.com wrote:

 Of course I knew that. As you can see in this code, it uses data.getData()
 to get the image.


I might be blind, but I do not see anywhere where you call data.getData.


 Anyway, what I wanted to do is to attach some info that I didn't want to
 lose when creating new Activity.


You should have stated that fact then. Your question made it seem like you
were trying to get extras you expected from the image picker activity.


 Finally I rewrote a lot of thing and use SharedPreferences.


That is unnecessary - your class can maintain its own variables that you
can use both before the call to start the new activity and in
onActivityResult. You do need to persist them in onSaveInstanceState /
onRestoreInstanceState though to ensure they are around when
onActivityResult is called.

-
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] android:multiprocess attribute of provider element

2013-02-17 Thread Latimerius
Hello,

I'm trying to clean up the mess left behind by the semi-secret
forward-locking redux clusterf*ck in 4.1.  Our base app needs to access
files in our expansion APKs' assets/ directories.  Apparently, the only way
that still works after 4.1 is to use a ContentProvider.

As the whole ContentProvider machinery is a total overkill considering all
I need is to access a bunch of files on a local SD card, I was pleased to
notice the android:multiprocess attribute in the docs whose purpose should
be expressly to mitigate the cost of IPC.  However, it seems to do nothing
actually, as is confirmed in this Google employee post:

https://groups.google.com/forum/?fromgroups=#!topic/android-developers/u9UMJtALSXw

I'm confused - a 2.5 years old post says it's some old cruft which
unfortunately seems to be correct, yet current docs state otherwise?

If 'android:multiprocess' really is obsolete, what is the replacement?

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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] restoring states

2013-02-17 Thread dashman
Could  it be that Activity.onCreate() is called with a valid Bundle - and

onRestoreInstanceState() is NOT called.

Can that happen?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] more adapters, or combine similar ones?

2013-02-17 Thread Joe P.
i have some adapters that i use to create listviews that have 2, 3 and 4 
textviews in each row. say i have 2 different objects that both use an 
adapter that creates the row with 4 textviews. should i use the same 
adapter for both objects, or have each object use their own adapter to 
simplify my variable naming conventions?
or does it not make a difference?
Thanks
Joe

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Refund

2013-02-17 Thread Patrick
Hello,
If I refund an app, will it be uninstalled from the customer's device?
Or will it continue to work and to be updated with new releases?
Thanks,
Patrick

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: restoring states

2013-02-17 Thread Lew
dashman wrote:

 Could  it be that Activity.onCreate() is called with a valid Bundle - and

 onRestoreInstanceState() is NOT called.

 Can that happen?


http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)

-- 
Lew
 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Problem with resultforactivity and extras

2013-02-17 Thread Lew
TreKing wrote:


  α Centauri wrote:

 Of course I knew that. As you can see in this code, it uses 
 data.getData() to get the image. 


 I might be blind, but I do not see anywhere where you call data.getData.

switch (requestCode) {
case 1:
 {
  if (resultCode == RESULT_OK)
  {
Uri photoUri = data.getData();

 

 Anyway, what I wanted to do is to attach some info that I didn't want to 
 lose when creating new Activity.


 You should have stated that fact then. Your question made it seem like you 
 were trying to get extras you expected from the image picker activity.
  

 Finally I rewrote a lot of thing and use SharedPreferences.


 That is unnecessary - your class can maintain its own variables that you 
 can use both before the call to start the new activity and in 
 onActivityResult. You do need to persist them in onSaveInstanceState / 
 onRestoreInstanceState though to ensure they are around when 
 onActivityResult is called.

 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] creating a complex tablet app

2013-02-17 Thread bergstr
Hello,

I have a rather complex app that runs on tablets only. The complexity stems 
from the fact that the app allows navigation in a tree to an arbitrary 
depth, where each node in the tree may have a different appearance 
(depending on the node type). In addition, I have 3 tabs, that allow 
changing between the navigation view, and 2 other views. On the left, I 
have a list. This scenario forces me to dynamically create and replace 
fragments all the time.

First, let me say that I started this project expecting that programming a 
UI like the one described above would be about as demanding as on a desktop 
platform. I have 20 years of experience in creating desktop or web apps on 
different OS's using 3 different programming languages, so I thought I had 
seen it all. Little did I know. I can now say that the Android UI framework 
is the worst I have ever seen. In my opinion, it is absolutely unfit for 
fairly complex applications. It is a phone OS, period. Dont even think of 
using it as an enterprise programming platform.

I have spent almost one year now creating my app, and I am still 
encountering random misbehavior from fragment management (fragments 
re-appearing from nowhere, duplicate action bar entries). When I hear the 
name FragmentManager I shudder. I must say that for the first time in my 
professional life I am at the point where I consider to simply give up an 
effort that has already cost me an arm and a leg.

My suggestion to Google, if you ever want to see good tablet apps appear 
(no wonder there arent any), is this: get some good, experienced designers 
on this project  - not the teenagers that appear on the android developer 
feed in youtube, let them gather requirements and design and implement 
something that really makes sense and works. Its not that difficult - it 
has been done many times before.

thanks,
chris

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Refund

2013-02-17 Thread Stephen Lebed
As far as I know, there isn't a way remove an app after you issue a refund. 
 I wish there was.  It would be great to go into my dev account, find the 
user I'm refunding the money to, and click a deactivate button or something.

For now, I try to discourage refunds by trying to work with the user to 
address their problem.  If I can't then I will refund their money, but 
there isn't a way for me to have the app not run on their account.  It 
basically the honor system.  You hope they will not use the program after 
they've gotten their money back.

Best,
Stephen


On Sunday, February 17, 2013 8:57:37 AM UTC-8, Patrick wrote:

 Hello,
 If I refund an app, will it be uninstalled from the customer's device?
 Or will it continue to work and to be updated with new releases?
 Thanks,
 Patrick



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: No subscriptions in Billing V3 API - permanent?

2013-02-17 Thread Sarbyn
Good news!

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

Il giorno lunedì 4 febbraio 2013 16:05:55 UTC+1, Sarbyn ha scritto:

 I am in the same situation of Nathan.

 I need to develop billing in my application using a subscription model. 
 How long we could wait for a v3 version of billing libraries with 
 subscription enabled?

 Il giorno mercoledì 30 gennaio 2013 20:51:19 UTC+1, Nathan ha scritto:

 Is this a permanent or temporary condition?

 Is it likely to change in, say, the next three months?

 Or is it likely to show up in V4 sometime next year. 

 Anyone who is the know, let me know. 

 Nathan



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




[android-developers] Re: Refund

2013-02-17 Thread John Coryat
Wow! That's crazy!

We use in-app billing unmanaged items and handle it ourselves. When a user 
gets a refund, our server is notified of the transaction by Google Play and 
automatically shuts down the premium version for the user. As my 4 year old 
daughter would say Easy peasy.

-John Coryat


On Sunday, February 17, 2013 1:13:32 PM UTC-6, Stephen Lebed wrote:

 As far as I know, there isn't a way remove an app after you issue a 
 refund.  I wish there was.  It would be great to go into my dev account, 
 find the user I'm refunding the money to, and click a deactivate button or 
 something.

 For now, I try to discourage refunds by trying to work with the user to 
 address their problem.  If I can't then I will refund their money, but 
 there isn't a way for me to have the app not run on their account.  It 
 basically the honor system.  You hope they will not use the program after 
 they've gotten their money back.

 Best,
 Stephen


 On Sunday, February 17, 2013 8:57:37 AM UTC-8, Patrick wrote:

 Hello,
 If I refund an app, will it be uninstalled from the customer's device?
 Or will it continue to work and to be updated with new releases?
 Thanks,
 Patrick



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Refund

2013-02-17 Thread Patrick
I asked this because actually I have the 2 needs:
1) sometimes I may refund an app (almost never happens because my apps are 
perfectly working ;-)
2) more often, I want to give the app for free to some selected users. And 
I also want them to have the updates.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Refund

2013-02-17 Thread Lew
Patrick wrote:

 I asked this because actually I have the 2 needs:
 1) sometimes I may refund an app (almost never happens because my apps are 
 perfectly working ;-)
 2) more often, I want to give the app for free to some selected users. And 
 I also want them to have the updates.


In #2, if they get the app for free, why would you need to refund anything?

-- 
Lew
 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Debugging beta apps

2013-02-17 Thread Guy Smith
I've read somewhere not all errors get reported there. Sorry, can't 
remember where I read that. 

On Saturday, February 16, 2013 6:04:24 AM UTC+10, bob wrote:

 In the Google app Developer Control Panel, there's a link that says 
 Errors sometimes.  Then you can see how your app crashed for different 
 users.



 On Friday, February 15, 2013 12:40:01 PM UTC-6, dashman wrote:

 How do users debug their beta apps - once it's released 
 to users. I'd like to get a better feedback than 'app crashed.

 Can users send back log files etc.

 I was thinking about using ASSERT.

 Is the java assert feature recommended or the Assert class.

 I noticed that the latter does not display a message on the screen.


 Help 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Debugging beta apps

2013-02-17 Thread Guy Smith
There are two parts to this. One, you need to get stack dumps back from 
your app. Two, you need to find testers. 

I set up testing in December. ACRA is essentially being phased out (IMHO) - 
see 
https://github.com/ACRA/acra/wiki/Notice-on-Google-Form-Spreadsheet-usage. 
There are several tools out there for putting reporting-back capability 
into your app. Most of them cost money, perhaps with a trial period. I went 
with HockeyApp, and was happy. 

Finding testers is more difficult. I got best results from ElusiveStars, 
but see AndroidForums for my post 
http://androidforums.com/application-development/672692-testing-sites-services.html.
 
I also tried the AlphaBeta Testing forums, and TheBetaFamily, with little 
success. 


On Saturday, February 16, 2013 6:20:11 PM UTC+10, TreKing wrote:


 On Fri, Feb 15, 2013 at 12:37 PM, njman njs...@gmail.com javascript:wrote:

 How do people test their beta apps - i.e. released to a few
 testers - getting back app crashed doesn't help.

 Can users send back a log file and/or stack trace.


 Use something like ACRA get logs and traces of what your app is doing 
 along with a crash.
 Have your testers explain to you how they break your app.


 -
 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Debugging beta apps

2013-02-17 Thread Guy Smith
Briefly: I used HockeyApp for reporting back capability, and was happy. I 
used ElusiveStars, a forum and TheBetaFamily to find testers, and got best 
results from ElusiveStars. 

A more detailed post is 
at https://groups.google.com/d/topic/android-developers/PrW2hFpZzpk/discussion. 

On Saturday, February 16, 2013 4:40:01 AM UTC+10, dashman wrote:

 How do users debug their beta apps - once it's released 
 to users. I'd like to get a better feedback than 'app crashed.

 Can users send back log files etc.

 I was thinking about using ASSERT.

 Is the java assert feature recommended or the Assert class.

 I noticed that the latter does not display a message on the screen.


 Help 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: creating a complex tablet app

2013-02-17 Thread Lew
bergstr wrote:

 I have a rather complex app that runs on tablets only. The complexity 
 stems from the fact that the app allows navigation in a tree to an 
 arbitrary depth, where each node in the tree may have a different 
 appearance (depending on the node type). In addition, I have 3 tabs, that 
 allow changing between the navigation view, and 2 other views. On the left, 
 I have a list. This scenario forces me to dynamically create and replace 
 fragments all the time.


A number of apps have similar profiles.
 


 First, let me say that I started this project expecting that programming a 
 UI like the one described above would be about as demanding as on a desktop 
 platform. I have 20 years of experience in creating desktop or web apps on 
 different OS's using 3 different programming languages, so I thought I had 
 seen it all. Little did I know. I can now say that the Android UI framework 
 is the worst I have ever seen. In my opinion, it is absolutely unfit for 
 fairly complex applications. It is a phone OS, period. Dont even think of 
 using it as an enterprise programming platform.


You make two different claims here, one that the Android UI is terrible and 
the other that it is unfit 
for enterprise applications. The first claim is opinion and therefore 
unsupportable. The second is a
rather pointless objection to a system that is  intended for running on 
mobile devices and it's wrong
anyway. Given that enterprise apps are tiered, and many, many companies 
like LinkedIn and Facebook 
and IMDB andGoogle themselves program enterprise apps just fine on the 
Android platform, the market
seems to have disproven your claim.. 

Surely you don't think HTML is superior to Android Java for UI programming, 
yet it has been a part of 
enterprise apps since the term enterprise app was born.


 I have spent almost one year now creating my app, and I am still 
 encountering random misbehavior from fragment management (fragments 
 re-appearing from nowhere, duplicate action bar entries). When I hear the 
 name FragmentManager I shudder. I must say that for the first time in my 
 professional life I am at the point where I consider to simply give up an 
 effort that has already cost me an arm and a leg.


In money?

I'm sorry you had such a bad personal experience with fragments. I know 
quite a few Android 
programmers who produce highly complex enterprise clients using fragments 
in a matter of weeks.

Sometimes new ways of doing things can be a struggle to learn, as one 
forces new patterns and ways 
of thinking on oneself against the inertia of years of doing something 
another way. Some people fall 
into the trap of blaming the tools for their difficulty, whining that they 
suck or don't implement the proper 
cognitive model, and impede their progress even further. 

No matter how good you are on the accordion, you might be defeated by the 
violin. But for those with the 
talent and the perseverance, enlightenment and the concomitant skills can 
be attained.

But even the best of programmers on the best of platforms with the best of 
tools encounter, oh, how did you 
phrase it?, random [sic] misbehavior.


 My suggestion to Google, if you ever want to see good tablet apps appear 
 (no wonder there arent any), is this: get some good, experienced designers 
 on this project  - not the teenagers that appear on the android [sic] 
 developer feed in youtube [sic], let them gather requirements and design 
 and implement something that really makes sense and works. Its not that 
 difficult - it has been done many times before.


Including on the Android platform. Including by Google.

-- 
Lew
 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Debugging beta apps

2013-02-17 Thread Mark Murphy
On Sun, Feb 17, 2013 at 5:59 PM, Guy Smith g...@multiniche.org wrote:
 ACRA is essentially being phased out (IMHO) -
 see
 https://github.com/ACRA/acra/wiki/Notice-on-Google-Form-Spreadsheet-usage.

You are welcome to your opinion, but there are plenty of ACRA
back-ends available, including ACRA's own Acralyzer, that do not
require the use of Google Spreadsheets.

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

Localized Android Question-and-Answer Sites: http://www.andglobe.com

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




[android-developers] Re: creating a complex tablet app

2013-02-17 Thread b0b
I have to agree with the OP somewhat.

The thing is...that the Fragment API is horrible. Overly complicated and 
complex and error prone.
As if the activity lifecycle wasn't complex enough, a new one on top of 
that was added. 
It shows that it was designed in a hurry to get the first version of 
Honeycomb out of the door.

I wished a more conventional API had been devised instead for multi-pane 
UIs, more similar traditional desktop apps.

Of course someone will remply that using the Fragment UI is dead easy and 
it's the best API invented ever. Someone always say things are easy.


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] creating a complex tablet app

2013-02-17 Thread Kristopher Micinski
On Sun, Feb 17, 2013 at 12:30 PM, bergstr sell.bergst...@gmail.com wrote:
 Hello,

 I have a rather complex app that runs on tablets only. The complexity stems
 from the fact that the app allows navigation in a tree to an arbitrary
 depth, where each node in the tree may have a different appearance
 (depending on the node type). In addition, I have 3 tabs, that allow
 changing between the navigation view, and 2 other views. On the left, I have
 a list. This scenario forces me to dynamically create and replace fragments
 all the time.

 First, let me say that I started this project expecting that programming a
 UI like the one described above would be about as demanding as on a desktop
 platform. I have 20 years of experience in creating desktop or web apps on
 different OS's using 3 different programming languages, so I thought I had
 seen it all. Little did I know. I can now say that the Android UI framework
 is the worst I have ever seen. In my opinion, it is absolutely unfit for
 fairly complex applications. It is a phone OS, period. Dont even think of
 using it as an enterprise programming platform.


What do you think is the biggest problem here?

It sounds like what you have is not really a complex app per se, but
a complex UI.  Is it just that you're complaining about fragments
(which I don't disagree, are sort of hacked up and not entirely well
documented).

Can you provide an example of misbehavior that appears?  Generally
when people say they have these kind of unpredictable behaviors, it's
people misunderstanding lifecycle events (that stem from Android's
unusual semantics of its app lifecycles).  If so, what could be done
to improve it?

I'm confused, why would a phone OS imply Android is unfit as an
enterprise programming platform?

 I have spent almost one year now creating my app, and I am still
 encountering random misbehavior from fragment management (fragments
 re-appearing from nowhere, duplicate action bar entries). When I hear the
 name FragmentManager I shudder. I must say that for the first time in my
 professional life I am at the point where I consider to simply give up an
 effort that has already cost me an arm and a leg.

Ah, yes, these (things reappearing from nowhere) things generally come
from Android's semantics on the application (and other) lifecycles.

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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Problem with resultforactivity and extras

2013-02-17 Thread TreKing
So I *am* blind =)

-
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Refund

2013-02-17 Thread TreKing
On Sun, Feb 17, 2013 at 10:57 AM, Patrick patrick.god...@gmail.com wrote:

 If I refund an app, will it be uninstalled from the customer's device?


No.


 Or will it continue to work and to be updated with new releases?


Continues to work but they do not have access to updates.


On Sun, Feb 17, 2013 at 4:52 PM, Lew lewbl...@gmail.com wrote:

 Patrick wrote:

 I asked this because actually I have the 2 needs:
 1) sometimes I may refund an app (almost never happens because my apps
 are perfectly working ;-)
 2) more often, I want to give the app for free to some selected users.
 And I also want them to have the updates.


 In #2, if they get the app for free, why would you need to refund anything?


They don't get the app for free - they have to pay for the paid app and he
wants to refund the user (so it's essentially free to them) without them
losing the ability to update the app legitimately. But you can't do this as
things stand right now.

-
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Application not Visible on emulator Screeen

2013-02-17 Thread Sagar Rout
My application is not visible on my emulator screen but when i check my 
manage application. I see that my application is installed on the 
emulator but not visible on the screen. I try task manager to kill 
adb.exe i restart the emulator several times and also uninstalled the 
application and again run and after some run the problem is same. 
Application is not on emulator screen.

please help me.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] communication between project and library project.

2013-02-17 Thread rachana govilkar
Hello all,
I have a problem and i did search it but couldn't get clear solution.So 
please help me asap.
Scenario is :
I have 2 projects viz project 1 and project 2.
project 1 has 1 activity say activity A and project 2 has activity B  C.
Now project 1 is library project and included in project 2.
Hence i can call Project1.ActivityA from Project2.ActivityB.
Problem is i don't know how to call Prject2.activityC from 
Project1.ActivityA.
If any1 know the solution please let me know.
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android c++ service at boot time

2013-02-17 Thread Anil Sasidharan
Hi,

You may want to write a JNI layer for this and have an activity to load the
JNI shared lib. You need to implement a broadcast receiver for
BOOT_COMPLETED intent to start this activity... Makes sense?

And regarding accessing libusb from JNI, I presume that the respective
device node is configured with necessary permissions.

Warm Regards,
Anil

On Thu, Feb 14, 2013 at 2:35 PM, Mr cool ponnd...@gmail.com wrote:

 I need to start a service at boot time in android i don't use broadcast
 receiver  , i wrote a service in c++ because i need access driver libusb
 layer to communicate with my extrernal device ,the service is working
 properly if i started manualy,if i want to start the service at boot time
 means i need to edit inir.rc file in android if i do that it also working
 good .but the problem is i cant edit the init.rc in all devices. i put my
 service in Sytem/bin location and edit the init.rc file as follow

 service sampleservice/system/bin/sampleservice
   oneshot
   disable

 for manualy i started the service from terminal like this

 #./system/bin/sampleservice
 but i cant start the service at each and every time when system restarts
 do have any idea to start the service at boot time with out edit init.rc

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.