Re: [android-developers] Children of LinearLayout can't have @+id/something

2013-05-13 Thread Piren
You can inflate as many child layouts as you want, you just have to be 
careful on how you do findViewById .. if you do it on the root, you would 
not be able to find all of them.
Thats like making 10 children named John and be surprised that when you 
call their name all of them turn around. But if you keep them 
in separate rooms and then call them from each door, you could find them 
all.
The same behavior happens on ListViews and pretty much 
any repetitive layout...

Regarding it working without an ID - Easy, the system generates one if 
there isn't one.. but uses the one you defined if you did.

The samples are just samples - They intend to show you how to do some 
specific stuff, like using the animation framework... they're not meant to 
be all encompassing and solve all the world issues... that's your job.
99% of the code i wrote is "original" in a sense it does not resemble any 
single sample\tutorial, but i did know how to get to that 99% from the 
samples\tutorials.

On Monday, May 13, 2013 5:30:10 AM UTC+3, Y2i wrote:
>
> If we inflate from the same layout, all child elements within that layout 
> will have the same ids by definition.  If framework does not allow adding 
> children inflated from the same file to a LinearLayout I would consider it 
> as a not very good framework :(Even if the framework does its own 
> caching under the hood and applies the saved state to the view that is 
> CREATED FROM SCRATCH after the orientation change, how can we explain that 
> everything works and the values are applied properly when we remove ID 
> attribute?  How would the framework find where to assign the correct values 
> to?  It does not make sense.  
>
> Anyway, I'll move back ListView/Adapter and figure out how to do the 
> animation myself. The animation sample given at the training 
> sectionis half 
> baked, it does not preserve the state on rotation.  If we modify 
> the sample then it will work as expected.  But the reason it works as 
> expected is because views use @android:id/text1, which is a pre-defined ID. 
>  But if we replace that ID with @+id/text1, even the sample from the 
> training section stops working.  There is too much flaky stuff there from 
> my perspective.  
>
> Thanks everyone a lot for your time!
>
> Yuri
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Android widget layout doesn't change after rotation

2013-05-13 Thread Piren
you never said how you rotated it...

either way, you could have spent this week googling instead of crying out 
for help and bumping the topic.
it took me less than 5 seconds to find this:
http://stackoverflow.com/questions/1258275/vertical-rotated-label-in-android

On Monday, May 6, 2013 4:35:31 AM UTC+3, zhiyazw wrote:
>
> This is still not resolved, pls someone help. 
>
> On Apr 26, 4:10 pm, zhiyazw  wrote: 
> > See the layout xml: 
> > 
> > http://schemas.android.com/tools"; 
> > android:layout_width="match_parent" 
> > android:layout_height="match_parent" 
> > android:orientation="vertical" 
> > tools:context=".MainActivity" xmlns:android="
> http://schemas.android.com/apk/res/android";> 
> > 
> >  > android:layout_width="wrap_content" 
> > android:layout_height="wrap_content" 
> > android:layout_gravity="center_horizontal" 
> > android:layout_marginBottom="10dp" 
> > android:layout_marginTop="10dp" 
> > android:text="Temperature Chart" 
> > android:textAppearance="?android:attr/textAppearanceLarge" /> 
> > 
> >  > android:id="@+id/chartContainer" 
> > android:layout_width="match_parent" 
> > android:layout_height="wrap_content" > 
> > 
> >  > android:id="@+id/textTemperature" 
> > android:layout_width="wrap_content" 
> > android:layout_height="wrap_content" 
> > android:layout_gravity="center_vertical" 
> > android:transformPivotX="0sp" 
> > android:translationY="0sp" 
> > android:rotation="-90" 
> > android:text="Temperature" /> 
> > 
> >  
> >  
> > 
> > then I insert a chart view into the "chartContainer" LinearLayout. The 
> > executing result is as the following picture: 
> > you can see the problem is, after "textTemperature" is rotated, it still 
> > occupy the room as before it rotated, bellow layout view confirmed this. 
> > 
> >  
>
> > 
> > My question is how can I make the "textTemperature" widget only occupy 
> the 
> > width as it is looked like? that's, there is no additional blank between 
> > "textTemperature" and the chart. 
> > I know writing a customized widget or putting the rotated widget in an 
> > individual FrameLayout could accomplish this, I mean to seek there is 
> any 
> > lighter way, such as a property, etc. 
>

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

2013-05-13 Thread Piren
you can launch one app from the other and put it on top of it, but not 
inside.
if both apps are yours (or you have the code for both) you can use 
Fragments to put them together

On Monday, May 13, 2013 9:20:15 AM UTC+3, surabhi jain wrote:
>
> Thanks,so is there any another solution.I want to launch two app in one 
> app.
>
>
> On Fri, May 10, 2013 at 8:49 PM, TreKing 
> > wrote:
>
>>
>> On Fri, May 10, 2013 at 4:15 AM, surabhi jain 
>> 
>> > wrote:
>>
>>> I want to launch any existing app of device inside a fragment. Can 
>>> anyone please help me how can I do this.
>>
>>
>> You can't do that.
>>
>>
>> -
>> 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.com
>> To unsubscribe from this group, 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.




Re: [android-developers] Children of LinearLayout can't have @+id/something

2013-05-13 Thread Y2i
Piren, thanks for the advice.   I do use the right scope to lookup children 
and have no problems looking them up. It is the framework that have 
problems :(
I also understand that the samples are just samples and half-baked.  When 
you try to complete the layout animation sample, it works if id is 
@android:id/text1 and does not work if id is @+id/text1
I'm also aware that the framework has many rough edges, like you cannot use 
Loaders if you use setRetainInstanceState(true) on a fragment.  Or 
returning null cursor crashes Loaders, even though null cursors work fine 
with AsyncQueryHandlers as they supposed to. So I'm not surprised that 
LinearLayout sometimes works and sometimes does not.  It is my job to find 
workarounds.

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

2013-05-13 Thread chetan saxena
Hello Everyone,



This is Chetan Saxena, I've a team presently working on building an Android
application for Tablet.

I have created a car 360 view functionality and accessories fitment ( of
configurable parts which constitute some 10-15 layers such as alloys, rims,
lamps, grills, etc.,). It is taking unusually long (more than 30 seconds)
to load a car model with accessories to start configuring.
I think the problem has to do with both loading as well as rendering every
time we move in 360. It all starts when I select a car model from a
set/collection of cars to explore further about it – it takes quite long
to load a selected car, and then when I ‘m actually  doing a  360, it does
so with a lot of flicker. Further, when I change a color, it again takes a
lot longer to reflect the change & likewise for any other change that one
wants to see.

Please help me through this stiff phase, any suggestions on this will be
much appreciated.

Thanks,
Chetan

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

2013-05-13 Thread surabhi jain
Thanks Piren,
Both apps are mine.one app A is already installed in my device and from
another app B I want to run my installed app.
Scenario is:
I have created app in which, in 50% of screen, I have used fragment.In
another portion I have used a layout.
With the help of fragment how can we run installed app in that portion.
Can you please give me idea about fragment to run the installed app.


On Mon, May 13, 2013 at 12:37 PM, Piren  wrote:

> you can launch one app from the other and put it on top of it, but not
> inside.
> if both apps are yours (or you have the code for both) you can use
> Fragments to put them together
>
>
> On Monday, May 13, 2013 9:20:15 AM UTC+3, surabhi jain wrote:
>
>> Thanks,so is there any another solution.I want to launch two app in one
>> app.
>>
>>
>> On Fri, May 10, 2013 at 8:49 PM, TreKing  wrote:
>>
>>>
>>> On Fri, May 10, 2013 at 4:15 AM, surabhi jain wrote:
>>>
 I want to launch any existing app of device inside a fragment. Can
 anyone please help me how can I do this.
>>>
>>>
>>> You can't do that.
>>>
>>> --**--**
>>> --**---
>>> 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.com
>>>
>>> To unsubscribe from this group, 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.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Children of LinearLayout can't have @+id/something

2013-05-13 Thread Piren
That's actually how i look at Android Development - Figuring out workaround 
for the system limitations\bugs :)


On Monday, May 13, 2013 10:27:27 AM UTC+3, Y2i wrote:
>
> Piren, thanks for the advice.   I do use the right scope to lookup 
> children and have no problems looking them up. It is the framework that 
> have problems :(
> I also understand that the samples are just samples and half-baked.  When 
> you try to complete the layout animation sample, it works if id is 
> @android:id/text1 and does not work if id is @+id/text1
> I'm also aware that the framework has many rough edges, like you cannot 
> use Loaders if you use setRetainInstanceState(true) on a fragment.  Or 
> returning null cursor crashes Loaders, even though null cursors work fine 
> with AsyncQueryHandlers as they supposed to. So I'm not surprised that 
> LinearLayout sometimes works and sometimes does not.  It is my job to find 
> workarounds.
>
>

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

2013-05-13 Thread Piren
You can't do that with two distinctive apps... you can only put them one on 
top of the other and communicate between them using IPC.

If you want to make them both run at the same time and share screen space, 
you need to make one app that has both code bases and then stitch up the 
UIs together. 


On Monday, May 13, 2013 12:02:42 PM UTC+3, surabhi jain wrote:
>
> Thanks Piren,
> Both apps are mine.one app A is already installed in my device and from 
> another app B I want to run my installed app.
> Scenario is:
> I have created app in which, in 50% of screen, I have used fragment.In 
> another portion I have used a layout. 
> With the help of fragment how can we run installed app in that portion.
> Can you please give me idea about fragment to run the installed app.
>
>
> On Mon, May 13, 2013 at 12:37 PM, Piren >wrote:
>
>> you can launch one app from the other and put it on top of it, but not 
>> inside.
>> if both apps are yours (or you have the code for both) you can use 
>> Fragments to put them together
>>
>>
>> On Monday, May 13, 2013 9:20:15 AM UTC+3, surabhi jain wrote:
>>
>>> Thanks,so is there any another solution.I want to launch two app in one 
>>> app.
>>>
>>>
>>> On Fri, May 10, 2013 at 8:49 PM, TreKing  wrote:
>>>

 On Fri, May 10, 2013 at 4:15 AM, surabhi jain wrote:

> I want to launch any existing app of device inside a fragment. Can 
> anyone please help me how can I do this.


 You can't do that.

 --**--**
 --**---
 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.com

 To unsubscribe from this group, 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-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 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.




Re: [android-developers] launch an existing app in Fragment

2013-05-13 Thread surabhi jain
Hi Piren,
Can you please go through this link:http://www.onskreen.com/cornerstone/.
He had already done the same.
Can you please give me idea related to this?


On Mon, May 13, 2013 at 3:32 PM, Piren  wrote:

> You can't do that with two distinctive apps... you can only put them one
> on top of the other and communicate between them using IPC.
>
> If you want to make them both run at the same time and share screen space,
> you need to make one app that has both code bases and then stitch up the
> UIs together.
>
>
> On Monday, May 13, 2013 12:02:42 PM UTC+3, surabhi jain wrote:
>
>> Thanks Piren,
>> Both apps are mine.one app A is already installed in my device and from
>> another app B I want to run my installed app.
>> Scenario is:
>> I have created app in which, in 50% of screen, I have used fragment.In
>> another portion I have used a layout.
>> With the help of fragment how can we run installed app in that portion.
>> Can you please give me idea about fragment to run the installed app.
>>
>>
>> On Mon, May 13, 2013 at 12:37 PM, Piren  wrote:
>>
>>> you can launch one app from the other and put it on top of it, but not
>>> inside.
>>> if both apps are yours (or you have the code for both) you can use
>>> Fragments to put them together
>>>
>>>
>>> On Monday, May 13, 2013 9:20:15 AM UTC+3, surabhi jain wrote:
>>>
 Thanks,so is there any another solution.I want to launch two app in one
 app.


 On Fri, May 10, 2013 at 8:49 PM, TreKing  wrote:

>
> On Fri, May 10, 2013 at 4:15 AM, surabhi jain wrote:
>
>> I want to launch any existing app of device inside a fragment. Can
>> anyone please help me how can I do this.
>
>
> You can't do that.
>
> ----
> -----
> 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.com
>
> To unsubscribe from this group, send email to
> android-developers+**unsubscribe**@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+**unsubscribe**@googlegroups.com.
> For more options, visit 
> https://groups.google.com/**grou**ps/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-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 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.
>
>
>

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

Re: [android-developers] launch an existing app in Fragment

2013-05-13 Thread Kristopher Micinski
Why do people always say "thanks for answering my question, but you
must be wrong," when told multiple times that what they want to do
isn't possible?

This is impossible with an Android ROM that doesn't support multiple
apps on the same screen.  It's a limitation of the Android window
manager.  Cornerstone is a *modification* to Android, meaning that if
you want to run it you have to actually change the version of Android
you are using.

It is *not* something that developers simply slap on to your app.  Did
you look at the Cornerstone code?  It's a bunch of Android platform
modifications.

Kris


On Mon, May 13, 2013 at 6:46 AM, surabhi jain  wrote:
> Hi Piren,
> Can you please go through this link:http://www.onskreen.com/cornerstone/.
> He had already done the same.
> Can you please give me idea related to this?
>
>
> On Mon, May 13, 2013 at 3:32 PM, Piren  wrote:
>>
>> You can't do that with two distinctive apps... you can only put them one
>> on top of the other and communicate between them using IPC.
>>
>> If you want to make them both run at the same time and share screen space,
>> you need to make one app that has both code bases and then stitch up the UIs
>> together.
>>
>>
>> On Monday, May 13, 2013 12:02:42 PM UTC+3, surabhi jain wrote:
>>>
>>> Thanks Piren,
>>> Both apps are mine.one app A is already installed in my device and from
>>> another app B I want to run my installed app.
>>> Scenario is:
>>> I have created app in which, in 50% of screen, I have used fragment.In
>>> another portion I have used a layout.
>>> With the help of fragment how can we run installed app in that portion.
>>> Can you please give me idea about fragment to run the installed app.
>>>
>>>
>>> On Mon, May 13, 2013 at 12:37 PM, Piren  wrote:

 you can launch one app from the other and put it on top of it, but not
 inside.
 if both apps are yours (or you have the code for both) you can use
 Fragments to put them together


 On Monday, May 13, 2013 9:20:15 AM UTC+3, surabhi jain wrote:
>
> Thanks,so is there any another solution.I want to launch two app in one
> app.
>
>
> On Fri, May 10, 2013 at 8:49 PM, TreKing  wrote:
>>
>>
>> On Fri, May 10, 2013 at 4:15 AM, surabhi jain 
>> wrote:
>>>
>>> I want to launch any existing app of device inside a fragment. Can
>>> anyone please help me how can I do this.
>>
>>
>> You can't do that.
>>
>>
>> -
>> 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.com
>>
>> To unsubscribe from this group, 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-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 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.
>>
>>
>
>
> --
> --
> You received this message because you are

Re: [android-developers] launch an existing app in Fragment

2013-05-13 Thread Piren
for fucks sake, what's not to get here?
YOU CAN'T!

The only way to put an activity inside something else is using activity 
groups, and these only work inner-app and were deprecated anyhow when 
Fragments became available.

So here is the idea you wanted: MAKE ONE FUCKING APP WITH FRAGMENTS!

On Monday, May 13, 2013 1:46:43 PM UTC+3, surabhi jain wrote:
>
> Hi Piren,
> Can you please go through this link:http://www.onskreen.com/cornerstone/.
> He had already done the same.
> Can you please give me idea related to this?
>
>
> On Mon, May 13, 2013 at 3:32 PM, Piren >wrote:
>
>> You can't do that with two distinctive apps... you can only put them one 
>> on top of the other and communicate between them using IPC.
>>
>> If you want to make them both run at the same time and share screen 
>> space, you need to make one app that has both code bases and then stitch up 
>> the UIs together. 
>>
>>
>> On Monday, May 13, 2013 12:02:42 PM UTC+3, surabhi jain wrote:
>>
>>> Thanks Piren,
>>> Both apps are mine.one app A is already installed in my device and from 
>>> another app B I want to run my installed app.
>>> Scenario is:
>>> I have created app in which, in 50% of screen, I have used fragment.In 
>>> another portion I have used a layout. 
>>> With the help of fragment how can we run installed app in that portion.
>>> Can you please give me idea about fragment to run the installed app.
>>>
>>>
>>> On Mon, May 13, 2013 at 12:37 PM, Piren  wrote:
>>>
 you can launch one app from the other and put it on top of it, but not 
 inside.
 if both apps are yours (or you have the code for both) you can use 
 Fragments to put them together


 On Monday, May 13, 2013 9:20:15 AM UTC+3, surabhi jain wrote:

> Thanks,so is there any another solution.I want to launch two app in 
> one app.
>
>
> On Fri, May 10, 2013 at 8:49 PM, TreKing  wrote:
>
>>
>> On Fri, May 10, 2013 at 4:15 AM, surabhi jain 
>> wrote:
>>
>>> I want to launch any existing app of device inside a fragment. Can 
>>> anyone please help me how can I do this.
>>
>>
>> You can't do that.
>>
>> ----
>> -----
>> 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.com
>>
>> To unsubscribe from this group, send email to
>> android-developers+**unsubscribe**@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+**unsubscribe**@googlegroups.com.
>> For more options, visit 
>> https://groups.google.com/**grou**ps/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-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 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-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 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] launch an existing app in Fragment

2013-05-13 Thread Piren
Deleted my previous post since i got mad... so i'll try it again:

Short answer: You can no longer do it (or ever could). The only way to load 
activities inside something is using ActivityGroups. Those were deprecated 
and i'm not even sure they ever worked with launching activities from a 
different app. If you're hell bent on doing that instead of doing the app 
PROPERLY, go ahead and give it a go.

http://developer.android.com/reference/android/app/ActivityGroup.html


On Monday, May 13, 2013 1:46:43 PM UTC+3, surabhi jain wrote:
>
> Hi Piren,
> Can you please go through this link:http://www.onskreen.com/cornerstone/.
> He had already done the same.
> Can you please give me idea related to this?
>
>
> On Mon, May 13, 2013 at 3:32 PM, Piren >wrote:
>
>> You can't do that with two distinctive apps... you can only put them one 
>> on top of the other and communicate between them using IPC.
>>
>> If you want to make them both run at the same time and share screen 
>> space, you need to make one app that has both code bases and then stitch up 
>> the UIs together. 
>>
>>
>> On Monday, May 13, 2013 12:02:42 PM UTC+3, surabhi jain wrote:
>>
>>> Thanks Piren,
>>> Both apps are mine.one app A is already installed in my device and from 
>>> another app B I want to run my installed app.
>>> Scenario is:
>>> I have created app in which, in 50% of screen, I have used fragment.In 
>>> another portion I have used a layout. 
>>> With the help of fragment how can we run installed app in that portion.
>>> Can you please give me idea about fragment to run the installed app.
>>>
>>>
>>> On Mon, May 13, 2013 at 12:37 PM, Piren  wrote:
>>>
 you can launch one app from the other and put it on top of it, but not 
 inside.
 if both apps are yours (or you have the code for both) you can use 
 Fragments to put them together


 On Monday, May 13, 2013 9:20:15 AM UTC+3, surabhi jain wrote:

> Thanks,so is there any another solution.I want to launch two app in 
> one app.
>
>
> On Fri, May 10, 2013 at 8:49 PM, TreKing  wrote:
>
>>
>> On Fri, May 10, 2013 at 4:15 AM, surabhi jain 
>> wrote:
>>
>>> I want to launch any existing app of device inside a fragment. Can 
>>> anyone please help me how can I do this.
>>
>>
>> You can't do that.
>>
>> ----
>> -----
>> 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.com
>>
>> To unsubscribe from this group, send email to
>> android-developers+**unsubscribe**@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+**unsubscribe**@googlegroups.com.
>> For more options, visit 
>> https://groups.google.com/**grou**ps/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-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 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-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 unsubscribe from th

[android-developers] Re: 360 degree view - Android 4.0

2013-05-13 Thread chetan saxena
Hello Everyone,

I just got to know that we aint using OpenGL. We're using series of images.

Please suggest if you think there is any better way to implement this
feature.

Thanks,
Chetan


On Mon, May 13, 2013 at 2:23 PM, chetan saxena wrote:

> Hello Everyone,
>
>
>
> This is Chetan Saxena, I've a team presently working on building an
> Android application for Tablet.
>
> I have created a car 360 view functionality and accessories fitment ( of
> configurable parts which constitute some 10-15 layers such as alloys, rims,
> lamps, grills, etc.,). It is taking unusually long (more than 30 seconds)
> to load a car model with accessories to start configuring.
> I think the problem has to do with both loading as well as rendering every
> time we move in 360. It all starts when I select a car model from a
> set/collection of cars to explore further about it – it takes quite long
> to load a selected car, and then when I ‘m actually  doing a  360, it does
> so with a lot of flicker. Further, when I change a color, it again takes a
> lot longer to reflect the change & likewise for any other change that one
> wants to see.
>
> Please help me through this stiff phase, any suggestions on this will be
> much appreciated.
>
> Thanks,
> Chetan
>



-- 
Chetan Saxena
QA Engineer
Vectorform Software Pvt LTD.
M: +91 9908299071.

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

2013-05-13 Thread Piren
hehe yeah... Don't use a series of images :)

If that's all you can do, you should check how to code loads those images. 
 - Does it load everything even those that are not used? 
 - Does it really need to load everything at the highest resolution? 
 - Can you show some images while others load in the background?
 - Can you use caching to speed up loading of expected images? (like when 
changing the angle) ? 
 - Does changing one property cause all images to reload, even those that 
are already loaded? (sounds like it does)

Profile your app, see what takes so long, then figure out ways on how to 
make the problematic code more efficient.


On Monday, May 13, 2013 3:17:58 PM UTC+3, Chetan Saxena wrote:
>
> Hello Everyone, 
>  
> I just got to know that we aint using OpenGL. We're using series of 
> images. 
>  
> Please suggest if you think there is any better way to implement this 
> feature. 
>  
> Thanks,
> Chetan
>
>
> On Mon, May 13, 2013 at 2:23 PM, chetan saxena 
> 
> > wrote:
>
>> Hello Everyone, 
>>
>>  
>>
>> This is Chetan Saxena, I've a team presently working on building an 
>> Android application for Tablet. 
>>
>> I have created a car 360 view functionality and accessories fitment ( of 
>> configurable parts which constitute some 10-15 layers such as alloys, rims, 
>> lamps, grills, etc.,). It is taking unusually long (more than 30 seconds) 
>> to load a car model with accessories to start configuring.
>> I think the problem has to do with both loading as well as rendering 
>> every time we move in 360. It all starts when I select a car model from a 
>> set/collection of cars to explore further about it – it takes quite long  
>> to load a selected car, and then when I ‘m actually  doing a  360, it does 
>> so with a lot of flicker. Further, when I change a color, it again takes a 
>> lot longer to reflect the change & likewise for any other change that one 
>> wants to see.
>>  
>> Please help me through this stiff phase, any suggestions on this will be 
>> much appreciated.
>>  
>> Thanks,
>> Chetan 
>>  
>
>
>
> -- 
> Chetan Saxena
> QA Engineer
> Vectorform Software Pvt LTD. 
> M: +91 9908299071. 
>

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

2013-05-13 Thread Surabhi Saxena
-- Forwarded message --
From: "Surabhi Saxena" 
Date: 13 May 2013 19:27
Subject: RADIO BUTTON ISSUE
To: 
Cc: "Surabhi Saxena" , 

Hello Sir/Mam,

** **

I am an android developer and have the following query. 

** **

I am using a Dynamic row which retrieves data from the DB, with these rows
a radio button is added at the end of each row .

*The issue is as I am selecting One Radio button and others should be
unselected but if clicking on others all displays selected only(also made
isSelected(false) for the rest not selected buttons).*

* *

*As *this is very urgent Please provide some solutions as soon as possible.*
***

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

2013-05-13 Thread bob
Why not just use an image?

Thanks.


On Saturday, May 11, 2013 10:33:23 AM UTC-5, Simon Giddings wrote:
>
> I have seen that this topic has been raised a number of times over the 
> last few years.
> I am surprised that Google has not thought of adding a native API to "keep 
> up" with the other side (IOS and iPad).
>
> I am needing to display PDF files of sheet music within my application
> - this might be a scanned image
> - or a real "print" to PDF format, which means mixed text and image
>
> Commercial libraries are way over priced for what I could ever hope for in 
> terms of revenue as this will be distributed in France to 
> evangelical/protestant churches.
> So I will not be able to charge high prices for this.
>
> Can anyone recommend a good, robust PDF display engine which will allow me 
> to determine how the user can navigate within the file, zoom levels, etc ?
> Or perhaps there is a commercial engine provider who would be willing to 
> make a commercial gesture for this case ? :-D
>

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

2013-05-13 Thread Piren
Honestly, i dont understand your description of the problem, please try to 
rephrase your issue.


P.S - All these "this is very urgent give me the answer ASAP!" messages are 
annoying... people here are helping others out of the goodness of their 
hearts or the vastness of their boredom and in either case, rushing them to 
give you an answer doesn't sit well. (I usually just ignore such requests 
on principal).

On Monday, May 13, 2013 5:00:21 PM UTC+3, Surabhi Saxena wrote:
>
> -- Forwarded message --
> From: "Surabhi Saxena" >
> Date: 13 May 2013 19:27
> Subject: RADIO BUTTON ISSUE
> To: >
> Cc: "Surabhi Saxena" >, <
> ssura...@gmail.com >
>
> Hello Sir/Mam,
>
> ** **
>
> I am an android developer and have the following query. 
>
> ** **
>
> I am using a Dynamic row which retrieves data from the DB, with these rows 
> a radio button is added at the end of each row .
>
> *The issue is as I am selecting One Radio button and others should be 
> unselected but if clicking on others all displays selected only(also made 
> isSelected(false) for the rest not selected buttons).*
>
> * *
>
> *As *this is very urgent Please provide some solutions as soon as 
> possible.
>

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

2013-05-13 Thread Simon Giddings
Because the users will be opening PDF files and not images !

On Monday, 13 May 2013 16:31:28 UTC+2, bob wrote:
>
> Why not just use an image?
>
> Thanks.
>
>
> On Saturday, May 11, 2013 10:33:23 AM UTC-5, Simon Giddings wrote:
>>
>> I have seen that this topic has been raised a number of times over the 
>> last few years.
>> I am surprised that Google has not thought of adding a native API to 
>> "keep up" with the other side (IOS and iPad).
>>
>> I am needing to display PDF files of sheet music within my application
>> - this might be a scanned image
>> - or a real "print" to PDF format, which means mixed text and image
>>
>> Commercial libraries are way over priced for what I could ever hope for 
>> in terms of revenue as this will be distributed in France to 
>> evangelical/protestant churches.
>> So I will not be able to charge high prices for this.
>>
>> Can anyone recommend a good, robust PDF display engine which will allow 
>> me to determine how the user can navigate within the file, zoom levels, etc 
>> ?
>> Or perhaps there is a commercial engine provider who would be willing to 
>> make a commercial gesture for this case ? :-D
>>
>
On Monday, 13 May 2013 16:31:28 UTC+2, bob wrote:
>
> Why not just use an image?
>
> Thanks.
>
>
> On Saturday, May 11, 2013 10:33:23 AM UTC-5, Simon Giddings wrote:
>>
>> I have seen that this topic has been raised a number of times over the 
>> last few years.
>> I am surprised that Google has not thought of adding a native API to 
>> "keep up" with the other side (IOS and iPad).
>>
>> I am needing to display PDF files of sheet music within my application
>> - this might be a scanned image
>> - or a real "print" to PDF format, which means mixed text and image
>>
>> Commercial libraries are way over priced for what I could ever hope for 
>> in terms of revenue as this will be distributed in France to 
>> evangelical/protestant churches.
>> So I will not be able to charge high prices for this.
>>
>> Can anyone recommend a good, robust PDF display engine which will allow 
>> me to determine how the user can navigate within the file, zoom levels, etc 
>> ?
>> Or perhaps there is a commercial engine provider who would be willing to 
>> make a commercial gesture for this case ? :-D
>>
>

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

2013-05-13 Thread yogendra G
Dear All,

Please give me some solution for the question posted in below link:
http://stackoverflow.com/questions/16445997/how-to-fetch-text-from-image-properly-in-android

Thanks in advance.

Thanks & Br,
Yogendra G.
+91-9916168647

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

2013-05-13 Thread bob
Yes.  It will be something like this:


*public class MainActivity extends Activity {*
*
*
* public static Handler handler = new Handler();*


In other thread:

   

*MainActivity.handler.post(new Runnable() {*
*
*
* @Override*
* public void run() {*
* tv.setText("test");*
*
*
* }*
* });*


Thanks.


On Sunday, May 12, 2013 1:59:15 AM UTC-5, Piren wrote:
>
> or just use Handlers/postOnUIThread.
>
> On Sunday, May 12, 2013 8:14:27 AM UTC+3, Michael Leung wrote:
>>
>> Ok thanks. Maybe i use subscriber pattern to do that
>>
>> Regards,
>> Michael Leung
>> http://www.itblogs.info
>> On 12/05/2013 8:29 AM, "Jonathan S"  wrote:
>>
>>> No. TextView only be updated in the Main Thread. Why not to pass String?
>>>
>>> On Saturday, May 11, 2013 5:56:00 PM UTC-4, Michael Leung wrote:

 Is it possible to Update a textview from another thread?
 I got a list item in list view from another fragement.

 -- 
 Regards,
 Michael Leung
 http://www.itblogs.info - My IT Blog
 http://diary.skynovel.info - My Blog
 http://www.michaelleung.info - My Homepage
  
>>>  -- 
>>> -- 
>>> 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 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.




Re: [android-developers] Issues Don't know whats that

2013-05-13 Thread Marina Cuello
You just activated some developer options. Go to settings, "Developer
options" and disable "Pointer location" and "Show touches".

Marina


On Mon, May 13, 2013 at 2:10 PM, news.anand11 
wrote:
Hi , I am facing some issue in my phone, I think its because I am
developing something and done something wrong. I don't know whats that I am
sending image with that.

Please find the attached file and please suggest what is that at top of the
> screen. Why I am seeing this on top of the screen.
>
>
> 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.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] VPN connect/disconnect detection on Android 4+

2013-05-13 Thread Martin Heller
Hi,

has anyone any idea on this topic?

I need this functionality for a SIP client to reregister with server
when such network change occurs. Or, possibly, is there any workaround
to avoid being effectively offline until the next regular reregistration?

Thanks,

Martin

On 04/24/2013 10:03 AM, Martin Heller wrote:
> Hi,
> 
> is there a way to detect VPN connection/disconnection on Android 4.0 and
> newer?
> I found
> http://stackoverflow.com/questions/6031821/no-connectivity-change-with-vpn
> and
> http://stackoverflow.com/questions/3461967/get-vpn-connection-status-on-android
> however this only works on Android older than 4.0.
> 
> Thanks
> 
> Martin

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

2013-05-13 Thread news.anand11
Thanks Marina Cuello, That helps.

Thanks again.


On Mon, May 13, 2013 at 10:48 PM, Marina Cuello wrote:

> You just activated some developer options. Go to settings, "Developer
> options" and disable "Pointer location" and "Show touches".
>
> Marina
>
>
>
> On Mon, May 13, 2013 at 2:10 PM, news.anand11 
> wrote:
> Hi , I am facing some issue in my phone, I think its because I am
> developing something and done something wrong. I don't know whats that I am
> sending image with that.
>
> Please find the attached file and please suggest what is that at top of
>> the screen. Why I am seeing this on top of the screen.
>>
>>
>> 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.
>>
>>
>>
>
>  --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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.




[android-developers] setEGLConfigChooser

2013-05-13 Thread bob
Let's say you're setting up a GLSurfaceView.

You want it to look good, so you do this:

this.setEGLConfigChooser(8, 8, 8, 8, 16, 0);

That's probably fine *if* the user can support that video mode.

But what about, if for some reason, the user's device can't support that 
mode?

Is there a graceful way to detect this condition and fall back to a less 
desirable video mode?

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

2013-05-13 Thread Romain Guy
I don't know of any device out there that doesn't support RGB 888 with a 16
bits depth buffer. The Android UI toolkit requires an RGBA 
configuration to work.

By the way, do you need the alpha channel? Unless your window is
translucent you should avoid using it.


On Mon, May 13, 2013 at 12:32 PM, bob  wrote:

> Let's say you're setting up a GLSurfaceView.
>
> You want it to look good, so you do this:
>
> this.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
>
> That's probably fine *if* the user can support that video mode.
>
> But what about, if for some reason, the user's device can't support that
> mode?
>
> Is there a graceful way to detect this condition and fall back to a less
> desirable video mode?
>
> 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
> ---
> 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.
>
>
>



-- 
Romain Guy
Android framework engineer
romain...@android.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] barcode scanner on android emulator

2013-05-13 Thread asma rezgui
hi ,
does anyone know how to add barcode scanner to android emulator.
i want to test this fonctionnality on emulator and i have added the zxing
library to my project but it didn t work, i don't know  if there is another
method to do that.
i have followed many tutorials but without result , please can someone 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] Re: barcode scanner on android emulator

2013-05-13 Thread Lew
ASMA wrote:

> does anyone know how to add barcode scanner to android emulator.
> i [sic] want to test this fonctionnality on emulator and i have added the 
> zxing library to my project but it didn t work, i don't know  if there is 
> another method to do that.
> i have followed many tutorials but without result , please can someone 
> help me
>

After a minute or two with 
http://lmgtfy.com/?q=android+barcode+scanner+on+emulator

this turned up:
http://www.tomgibara.com/android/camera-source

among other links.

-- 
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] Replying to user reviews on Google Play

2013-05-13 Thread Piren
Finally, everyone can stop complaining about this :)
 
http://android-developers.blogspot.co.uk/2013/05/all-google-play-developers-can-now.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 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] Using App Cache - Without Trying to

2013-05-13 Thread Nathan


On Saturday, May 11, 2013 11:57:12 PM UTC-7, Piren wrote:
>
> The custom view does DB/IO while scrolling? 

Asynchronously, in a threadpool, yes. Not blocking the UI.   
 

> the processes that run while bindView/getView is called are what important.


BindView and GetView are not called. It's not a listview. I used the word 
scrolling, though I could have used panning. I used scroll because of the 
name of 

GestureDetector.OnGestureListener.onScroll

Probably similar to mapview, but I am not able to say how similar, not 
having used mapview and not having any source code for mapview.  

P.S - HttpClient does use cache. 
>

Ok, then I guess it would get some activity. I don't know how often I would 
be expected to clean it up. Any known issues with the Droid Razr HD that 
cause it to freeze at random times if the cache has stuff in it? 

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.




Re: [android-developers] VPN connect/disconnect detection on Android 4+

2013-05-13 Thread Robert Greenwalt
I don't think there is a good solution currently.  This is definitely
broken and I hope it's fixed soon.


On Mon, May 13, 2013 at 10:23 AM, Martin Heller wrote:

> Hi,
>
> has anyone any idea on this topic?
>
> I need this functionality for a SIP client to reregister with server
> when such network change occurs. Or, possibly, is there any workaround
> to avoid being effectively offline until the next regular reregistration?
>
> Thanks,
>
> Martin
>
> On 04/24/2013 10:03 AM, Martin Heller wrote:
> > Hi,
> >
> > is there a way to detect VPN connection/disconnection on Android 4.0 and
> > newer?
> > I found
> >
> http://stackoverflow.com/questions/6031821/no-connectivity-change-with-vpn
> > and
> >
> http://stackoverflow.com/questions/3461967/get-vpn-connection-status-on-android
> > however this only works on Android older than 4.0.
> >
> > Thanks
> >
> > Martin
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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.




[android-developers] Sharing SharedPreferences from two different processes

2013-05-13 Thread Gary Blakely
My app originally had an activity and a service running in the same 
process. When I first wrote it I specified sharedPreferences with 
MODE_PRIVATE. The app has grown, and for reasons beyond the scope of this 
post, I now need to run my service in a different process.

I found I can do this by specifying a name starting with a colon in the 
android:process statement in my manifest file.

However now my activity and my service are no longer reading the same 
sharedPreferences. Researching this problem I see many reccommendations to 
use MODE_MULTI_PROCESS. But I cannot figure out how to spedify it.

SharedPreferences myMemory = getSharedPreferences("myMemory", 
MODE_MULTI_PROCESS);

This does not work because Eclipse can't find MODE_MULTI_PROCESS like it 
can find MODE_PRIVATE or MODE_WORLD_READABLE.  I don't know where the ENUM 
for MODE_MULTI_PROCESS is.

So, how can I specify MODE_MULTI_PROCESS ??
thanks, Gary

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

2013-05-13 Thread Jonathan S
Context.MODE_MULTI_PROCESS

That is only available in API 11+ (3.0 and later)

On Monday, May 13, 2013 7:29:37 PM UTC-4, Gary Blakely wrote:
>
> My app originally had an activity and a service running in the same 
> process. When I first wrote it I specified sharedPreferences with 
> MODE_PRIVATE. The app has grown, and for reasons beyond the scope of this 
> post, I now need to run my service in a different process.
>
> I found I can do this by specifying a name starting with a colon in the 
> android:process statement in my manifest file.
>
> However now my activity and my service are no longer reading the same 
> sharedPreferences. Researching this problem I see many reccommendations to 
> use MODE_MULTI_PROCESS. But I cannot figure out how to spedify it.
>
> SharedPreferences myMemory = getSharedPreferences("myMemory", 
> MODE_MULTI_PROCESS);
>
> This does not work because Eclipse can't find MODE_MULTI_PROCESS like it 
> can find MODE_PRIVATE or MODE_WORLD_READABLE.  I don't know where the ENUM 
> for MODE_MULTI_PROCESS is.
>
> So, how can I specify MODE_MULTI_PROCESS ??
> thanks, Gary
>
>

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

2013-05-13 Thread Tony Farag
I'm trying to play a m3u8 file using a VideoView and a MediaController. 
 Here's a code snippet:


view.setVideoURI(Uri.parse(path));

MediaController mediaController = new 
MediaController(getApplicationContext());

mediaController.setMediaPlayer(view);

view.setMediaController(mediaController);

view.setEnabled(true);

view.requestFocus();



The video streams just fine, but no audio.  Interesting enough, the same 
video will play on other devices running 4.x+.  I am getting this in my 
logcat, but can't find anything online about it:


05-13 20:16:11.557: D/MediaPlayer(10525): [DLNA]setDisplay

05-13 20:16:11.747: D/MediaPlayer(10525): [DLNA]contentType = 0

05-13 20:16:11.747: D/MediaPlayer(10525): [DLNA]Streaming path, should 
enable DLNA

05-13 20:16:11.747: D/MediaPlayer(10525): [DLNA]Not audio only content, 
should enable DLNA

05-13 20:16:11.777: D/[MediaPluginDLNA](10525): [DLNA]not in Mirror mode, 
check nearby ready dongle

05-13 20:16:11.777: D/[MediaPluginDLNA](10525): [DLNA]startMirror in

05-13 20:16:11.787: D/[MediaPluginDLNA](10525): [DLNA][startMirror] out no 
ready to use dongle

05-13 20:16:11.787: D/MediaPlayer(10525): [DLNA]start() out


Just looking to be pointed in the right direction here.. It doesn't seem to 
be related to codecs on this device, but not sure.  Any ideas would be 
helpful.

Thanks,
Tony


-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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: Sharing SharedPreferences from two different processes

2013-05-13 Thread Michael Schollmeyer
I do something like this:

prefs = context.getSharedPreferences(context.getPackageName() + 
"_preferences", Context.MODE_PRIVATE | 0x4); // Context.MODE_MULTI_PROCESS

Which also compiles in earlier API levels. The additional flag does no harm 
in pre-level-11 runtimes. 

Also notice that OnSharedPreferenceChangeListener will not trigger across 
processes.

On Tuesday, May 14, 2013 1:29:37 AM UTC+2, Gary Blakely wrote:
>
> My app originally had an activity and a service running in the same 
> process. When I first wrote it I specified sharedPreferences with 
> MODE_PRIVATE. The app has grown, and for reasons beyond the scope of this 
> post, I now need to run my service in a different process.
>
> I found I can do this by specifying a name starting with a colon in the 
> android:process statement in my manifest file.
>
> However now my activity and my service are no longer reading the same 
> sharedPreferences. Researching this problem I see many reccommendations to 
> use MODE_MULTI_PROCESS. But I cannot figure out how to spedify it.
>
> SharedPreferences myMemory = getSharedPreferences("myMemory", 
> MODE_MULTI_PROCESS);
>
> This does not work because Eclipse can't find MODE_MULTI_PROCESS like it 
> can find MODE_PRIVATE or MODE_WORLD_READABLE.  I don't know where the ENUM 
> for MODE_MULTI_PROCESS is.
>
> So, how can I specify MODE_MULTI_PROCESS ??
> thanks, Gary
>
>

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