[android-developers] Extract traffic information from mapview

2012-07-30 Thread VGNU Linux
Hi All,

I am new to android and followed a tutorial to display mapview. (
https://developers.google.com/maps/documentation/android/hello-mapview)
The mapview also displays traffic information using the a method
"mapview.setTraffic(true)".
The map view displays traffic information as lines red,green and yellow.
My question here is it possible to extract this traffic information ?

I am trying to capture this traffic information and then convert it as
audio and relay it to the user.

Regards,
VGNU

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

[android-developers] Creating Tab Control in android

2012-07-30 Thread |-NK-|
Hi
I am developing an application in android, where I need to create a
Tab control containing variable no of tabs.

I need to know how to create tab control dynamically.

I have seen some examples where they have used tabhost as root element
in an xml layout file.
I need to have some controls such as buttons and textviews on screen
and below these controls I need a tab control.

I am confused as I have seen different examples.

Thanks.

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


Re: [android-developers] Re: Goiogle Play - Dev Console not updating since July 25

2012-07-30 Thread Zsolt Vasvari
The OP said he had no stats since the 25th.  I looked at my app had stats 
for 25, not for 26, but had stats again for 27.  That's all I stated.

On Monday, July 30, 2012 4:53:42 AM UTC+8, Fran wrote:
>
> Thats not true, indeed. The original subject was clear about the starting 
> date of the problem.
> El 29/07/2012 08:31, "Zsolt Vasvari"  escribió:
>
>> It skipped one day, the 26th.  Back on 27th.  No big deal, the OP makes 
>> it sounds like it hasn't updated for weeks.
>>
>> On Sunday, July 29, 2012 1:34:53 AM UTC+8, FiltrSoft wrote:
>>>
>>> sorry, meant "hasn't"
>>>
>>> On Saturday, July 28, 2012 12:00:46 PM UTC-4, Kaptkaos wrote:

 I was wondering if anyone else was seeing this. When I check my dev 
 console there are now stats for my apps after July 25. Is there a problem 
 with Google Play or did I miss a memo? 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Goiogle Play - Dev Console not updating since July 25

2012-07-30 Thread Zsolt Vasvari

>
> Since I've been following my apps on GPlay I have never seen it miss a 
> single day. The fact that it did miss 2 full days is remarkable.
>

You must not be following for long.   Up until maybe 8 months ago, it would 
have been remarkable if you did NOT miss 2 full days.  A bit exaggeration, 
but not by much...  The Dev Console was a complete mess.


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

Re: [android-developers] Re: Goiogle Play - Dev Console not updating since July 25

2012-07-30 Thread Zsolt Vasvari
I also got updated stats for the 28th, FWIW, so the problem is not 
universal.  Only missing the 26th.

On Monday, July 30, 2012 4:53:42 AM UTC+8, Fran wrote:
>
> Thats not true, indeed. The original subject was clear about the starting 
> date of the problem.
> El 29/07/2012 08:31, "Zsolt Vasvari"  escribió:
>
>> It skipped one day, the 26th.  Back on 27th.  No big deal, the OP makes 
>> it sounds like it hasn't updated for weeks.
>>
>> On Sunday, July 29, 2012 1:34:53 AM UTC+8, FiltrSoft wrote:
>>>
>>> sorry, meant "hasn't"
>>>
>>> On Saturday, July 28, 2012 12:00:46 PM UTC-4, Kaptkaos wrote:

 I was wondering if anyone else was seeing this. When I check my dev 
 console there are now stats for my apps after July 25. Is there a problem 
 with Google Play or did I miss a memo? 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: htc dream g1

2012-07-30 Thread Eric Wong (hdmp4.com)
Read those threads on XDA and follow it.

Btw, you can upgrade it to Android 2.3 but expect it to run very slowly...

On Sunday, 29 July 2012 11:32:06 UTC+10, isarel wrote:
>
> how do i upgrade from 1.5 to 2.2 with my htc dream g1

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

Re: [android-developers] Re: sensor event and augmented reality

2012-07-30 Thread Raghav Sood
>
> The bit I'm struggling with is displaying anything over a camera preview.
> What is the best practice to display a graphics (that will change depending
> on sensor readings) over a camera preview. Please help, I have neen
> googling and experimenting for days with no joy! If anyone does know how to
> do this could they please post some code? Thank you!
>

What kind of graphic? Drawable? Bitmap? OpenGL? Canvas drawing?

Thanks

-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

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

Re: [android-developers] Re: Idle Actvity

2012-07-30 Thread Rahul Kaushik
Hi,

Am getiing this


[2012-07-30 12:39:21 - ddms] null
java.lang.NullPointerException
at com.android.ddmlib.Client.sendAndConsume(Client.java:573)
at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142)
at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65)
at com.android.ddmlib.Client.getJdwpPacket(Client.java:672)
at
com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)

[2012-07-30 12:39:21 - ddms] null
java.lang.NullPointerException
at com.android.ddmlib.Client.sendAndConsume(Client.java:573)
at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142)
at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65)
at com.android.ddmlib.Client.getJdwpPacket(Client.java:672)
at
com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)

[2012-07-30 12:43:07 - ddms] null
java.lang.NullPointerException
at com.android.ddmlib.Client.sendAndConsume(Client.java:573)
at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142)
at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65)
at com.android.ddmlib.Client.getJdwpPacket(Client.java:672)
at
com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)

[2012-07-30 12:43:07 - ddms] null
java.lang.NullPointerException
at com.android.ddmlib.Client.sendAndConsume(Client.java:573)
at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142)
at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65)
at com.android.ddmlib.Client.getJdwpPacket(Client.java:672)
at
com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)



Thanks
RK

On Mon, Jul 30, 2012 at 12:29 PM, Jonathan S  wrote:

> Look in logcat like red font
>
>
> On Monday, July 30, 2012 2:53:45 AM UTC-4, rahul kaushik wrote:
>>
>> Hi,
>>
>> If my activity stay idle for Sometime, it shows (Activity is not
>> responding and i ahve two option Force Close Wait)
>> how i can avoid this
>>
>> Thanks
>> RK
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Debugging a complex native application (shared libs)

2012-07-30 Thread Fabien R
On 29/07/2012 21:25, Cyril CHAMPIER wrote:
> I really don't know what do to, does anybody already tried this kind of 
> things ?
>
> Thanks
>
>   
Maybe this:
http://lmgtfy.com/?q=android+how+to+debug+jni


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


Re: [android-developers] ANDROID THREADS NOT WORKING

2012-07-30 Thread Fabien R
On 29/07/2012 06:55, Rasika Perera Govinnage wrote:
> Hi I am writing application to get all information from a url. Parser is 
> working well. but it takes some time about 2 sec to decode all.Till it 
> decode and enter into listView Page/View is not shown. 
> What i want is show the page loading icon(progress bar) before call url, 
> and then hide it after loaded from url.
>
>   
Your post is mis-titled. There are no threads in your code.
Your problem stands between your chair and your keyboard ;-)
You should use an AsyncTask.
-
Fabien

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


[android-developers] Binding service from Simple Java Class

2012-07-30 Thread MMM
HI,

I am developing an android application. In this application, I want to
bind a service from a java class which is not derived from any android
component. Is it possible?

I tried but its giving error.

Thanks.

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


[android-developers] Multiple e-mail attachments of arbitrary files.

2012-07-30 Thread Put_tiMe
Surprisingly, this topic seems to be still in it's infancy. There are very 
few posts, and those who have given it a shot have given up since it didn't 
work.

I need to attach multiple files of different types in a single e-mail. File 
types could be image, audio, video, zip, doc, and so on.
I did give it a shot. 


// List filePaths;

Intent emailIntent = new 
Intent(android.content.Intent.ACTION_SEND_MULTIPLE);

// I tried both the following lines
emailIntent.setType("*/*"); 
emailIntent.setType("vnd.android.cursor.dir/email");

// has to be an ArrayList
ArrayList uris = new ArrayList();
//convert from paths to Android friendly Parcelable Uri's
for (String file : filePaths)
{
 File fileIn = new File(file);
 Uri u = Uri.fromFile(fileIn);
 uris.add(u);
}

emailIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
context.startActivity(Intent.createChooser(emailIntent, "blah blah"));


Overall, it looks like it's working. The 'createChooser' gives me a list of 
available e-mail apps.
 If I choose "GMail" app from the list, in the 'compose' activity, I can 
see the attachments also. I then hit 'send'.
But when I receive the mail, I find no attachments.

If I see the "sent" folders of Gmail, this email doesn't have attachments.

So what do I need to do?


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

Re: [android-developers] Please help

2012-07-30 Thread Jadranko Bodiroga
maybee you need some permissions in ManifestWhat you app is doing?

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

Re: [android-developers] Binding service from Simple Java Class

2012-07-30 Thread fahad mullaji
Hi *Moni*,

Bind a service? Please elaborate the question.
If you want to use Java packages then surely you can use them without any
compile error.
It does not have to inherit any android component.

What is the error that you are getting?

*Thanks*
Fahad Mullaji

On Mon, Jul 30, 2012 at 1:46 PM, MMM  wrote:

> HI,
>
> I am developing an android application. In this application, I want to
> bind a service from a java class which is not derived from any android
> component. Is it possible?
>
>

> I tried but its giving error.
>
> 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
>



-- 
Regards
Fahad Mullaji

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

Re: [android-developers] Please help

2012-07-30 Thread Rocky
Right Click Project -> properties -> Android ->Below is library (unckeck
that one)


On Sat, Jul 28, 2012 at 9:11 PM, Abhikool  wrote:

> Hi Guys, I am new to Android apps development..
>
> please help me. I am facing an error whenever i am trying to run a project
> from eclipse as android application. it is giving  me an error
> stating "Android Library Projects cannot be lunch."
>
>  I have started android apps development very recently, please forgive me
> for my ignorance or total unawareness about the topic.
> Would appreciate if any one direct me to any tutorial or any material
> related to Android apps development containing the latest
> trends and use of tools/SDK etc.
>
> Regards
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks & Regards

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

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

[android-developers] Re: HTTP Post works only on port 80 when on mobile network (Galaxy Nexus)

2012-07-30 Thread Zoran Smilevski
I have done even more research. Solution is to use Proxy.NO_PROXY:

HttpURLConnection conn = (HttpURLConnection)mUrl.openConnection(Proxy.
NO_PROXY);

On Monday, July 23, 2012 10:02:02 AM UTC+2, Zoran Smilevski wrote:
>
> Oh yes, thanks. I don't see on Desire APN settings, but when I removed a 
> proxy from APN on Nexus, response got through.
>
> Thanks again, you saved me :)
>
> On Monday, July 23, 2012 9:45:53 AM UTC+2, Johan Appelgren wrote:
>>
>> Works fine using 3g on my Galaxy Nexus (stock, Android 4.1.1). 
>>
>> Are you testing using the same carrier and APN settings on the Desire and 
>> Galaxy Nexus? I've had some issues with a bad carrier proxy that garbled 
>> non-port 80 traffic, fixed by removing the proxy from APN. 
>>
>> On Sunday, July 15, 2012 12:10:02 PM UTC+2, Zoran Smilevski wrote:
>>>
>>> Hello!
>>>
>>> I have a problem with posting data when using mobile data network on a 
>>> port different than 80. This happens only on Galaxy Nexus. I have also 
>>> reported a bug with detailed description (
>>> http://code.google.com/p/android/issues/detail?id=34769). There is also 
>>> a demo app so anyone can test this.
>>>
>>> I was also trying to send a post using a socket, like it's described on 
>>> http://www.exampledepot.com/egs/java.net/PostSocket.html. In this case 
>>> everything works fine.
>>>
>>> I hope that someone will see this and tell me what the hell am I doing 
>>> wrong or confirm that bug :)
>>>
>>

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

Re: [android-developers] Please help

2012-07-30 Thread fahad mullaji
Hi *Abhijit,

*
http://stackoverflow.com/questions/4282552/android-library-projects-cannot-be-launched

Check above shared link.Don't know this works or not.Give it shot.

*Thanks
*Fahad Mullaji


On Sat, Jul 28, 2012 at 9:11 PM, Abhikool  wrote:

> Hi Guys, I am new to Android apps development..
>
> please help me. I am facing an error whenever i am trying to run a project
> from eclipse as android application. it is giving  me an error
> stating "Android Library Projects cannot be lunch."
>
>  I have started android apps development very recently, please forgive me
> for my ignorance or total unawareness about the topic.
> Would appreciate if any one direct me to any tutorial or any material
> related to Android apps development containing the latest
> trends and use of tools/SDK etc.
>
> Regards
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Regards
Fahad Mullaji

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

Re: [android-developers] Please help

2012-07-30 Thread Rocky
It will work and do 1 more things while running app -

1. Clean apps
2. right click on project ->Android Tools ->Click on Fix project
3. then build and run the apps.


Best of Luck

On Mon, Jul 30, 2012 at 2:19 PM, fahad mullaji wrote:

> Hi *Abhijit,
>
> *
> http://stackoverflow.com/questions/4282552/android-library-projects-cannot-be-launched
>
> Check above shared link.Don't know this works or not.Give it shot.
>
> *Thanks
> *Fahad Mullaji
>
>
> On Sat, Jul 28, 2012 at 9:11 PM, Abhikool  wrote:
>
>> Hi Guys, I am new to Android apps development..
>>
>> please help me. I am facing an error whenever i am trying to run a
>> project from eclipse as android application. it is giving  me an error
>> stating "Android Library Projects cannot be lunch."
>>
>>  I have started android apps development very recently, please forgive me
>> for my ignorance or total unawareness about the topic.
>> Would appreciate if any one direct me to any tutorial or any material
>> related to Android apps development containing the latest
>> trends and use of tools/SDK etc.
>>
>> Regards
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Regards
> Fahad Mullaji
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Thanks & Regards

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

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

Re: [android-developers] Debugging a complex native application (shared libs)

2012-07-30 Thread fahad mullaji
Lols...good one...

On Mon, Jul 30, 2012 at 1:11 PM, Fabien R  wrote:

> On 29/07/2012 21:25, Cyril CHAMPIER wrote:
> > I really don't know what do to, does anybody already tried this kind of
> > things ?
> >
> > Thanks
> >
> >
> Maybe this:
> http://lmgtfy.com/?q=android+how+to+debug+jni
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards
Fahad Mullaji

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

Re: [android-developers] Re: Idle Actvity

2012-07-30 Thread fahad mullaji
Hi *Rahul*,

Have you created any runnable or handler objects projects in any of the
function that you are calling?
What is exactly your code is trying to do?

*Thanks*
Fahad Mullaji



On Mon, Jul 30, 2012 at 12:56 PM, Rahul Kaushik wrote:

> Hi,
>
> Am getiing this
>
>
> [2012-07-30 12:39:21 - ddms] null
> java.lang.NullPointerException
> at com.android.ddmlib.Client.sendAndConsume(Client.java:573)
>  at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142)
> at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65)
>  at com.android.ddmlib.Client.getJdwpPacket(Client.java:672)
> at
> com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
>  at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)
>
> [2012-07-30 12:39:21 - ddms] null
> java.lang.NullPointerException
>  at com.android.ddmlib.Client.sendAndConsume(Client.java:573)
> at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142)
>  at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65)
> at com.android.ddmlib.Client.getJdwpPacket(Client.java:672)
>  at
> com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
> at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)
>
> [2012-07-30 12:43:07 - ddms] null
> java.lang.NullPointerException
> at com.android.ddmlib.Client.sendAndConsume(Client.java:573)
>  at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142)
> at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65)
>  at com.android.ddmlib.Client.getJdwpPacket(Client.java:672)
> at
> com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
>  at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)
>
> [2012-07-30 12:43:07 - ddms] null
> java.lang.NullPointerException
>  at com.android.ddmlib.Client.sendAndConsume(Client.java:573)
> at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142)
>  at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65)
> at com.android.ddmlib.Client.getJdwpPacket(Client.java:672)
>  at
> com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317)
> at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)
>
>
>
> Thanks
> RK
>
> On Mon, Jul 30, 2012 at 12:29 PM, Jonathan S  wrote:
>
>> Look in logcat like red font
>>
>>
>> On Monday, July 30, 2012 2:53:45 AM UTC-4, rahul kaushik wrote:
>>>
>>> Hi,
>>>
>>> If my activity stay idle for Sometime, it shows (Activity is not
>>> responding and i ahve two option Force Close Wait)
>>> how i can avoid this
>>>
>>> Thanks
>>> RK
>>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards
Fahad Mullaji

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

[android-developers] Re: How to change orientation sensor polling period in Android?

2012-07-30 Thread Goodwin
why do you want to change the orientation sensor polling period? how do you 
get the current polling period. is there some function ?

在 2012年7月29日星期日UTC+8上午5时19分14秒,Prem写道:
>
> I just want to change the orientation sensor polling period in android. 
> The current polling period is 40ms.

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

Re: [android-developers] Debugging a complex native application (shared libs)

2012-07-30 Thread Cyril CHAMPIER
Thank you for your great help.

I indeed forgot to mention that I already read most of the tutorials on the 
net, and none of them speak about a complex project
with 1 java project using 1 jni project using 5 external pure c++ libs.


On Monday, July 30, 2012 9:41:09 AM UTC+2, the_edge123 wrote:
>
> On 29/07/2012 21:25, Cyril CHAMPIER wrote: 
> > I really don't know what do to, does anybody already tried this kind of 
> > things ? 
> > 
> > Thanks 
> > 
> >   
> Maybe this: 
> http://lmgtfy.com/?q=android+how+to+debug+jni 
>
>
>

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

Re: [android-developers] Re: Idle Actvity

2012-07-30 Thread Asheesh Arya
try using thread in your source code!!!

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

Re: [android-developers] Re: htc dream g1

2012-07-30 Thread fahad mullaji
Hi *Andre*,

Simple link from Cyanogen-mod Developers : cm.get/

You need to find out root and mod file for your device.They have given
their own names for each device on which they work.

*Thanks*
Fahad Mullaji.


On Mon, Jul 30, 2012 at 12:47 PM, Eric Wong (hdmp4.com) <
ericwon...@gmail.com> wrote:

> Read those threads on XDA and follow it.
>
> Btw, you can upgrade it to Android 2.3 but expect it to run very slowly...
>
>
> On Sunday, 29 July 2012 11:32:06 UTC+10, isarel wrote:
>>
>> how do i upgrade from 1.5 to 2.2 with my htc dream g1
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards
Fahad Mullaji

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

Re: [android-developers] Re: htc dream g1

2012-07-30 Thread fahad mullaji
Sorry its get.cm/


On Mon, Jul 30, 2012 at 2:40 PM, fahad mullaji wrote:

> Hi *Andre*,
>
> Simple link from Cyanogen-mod Developers : cm.get/
>
> You need to find out root and mod file for your device.They have given
> their own names for each device on which they work.
>
> *Thanks*
> Fahad Mullaji.
>
>
>
> On Mon, Jul 30, 2012 at 12:47 PM, Eric Wong (hdmp4.com) <
> ericwon...@gmail.com> wrote:
>
>> Read those threads on XDA and follow it.
>>
>> Btw, you can upgrade it to Android 2.3 but expect it to run very slowly...
>>
>>
>> On Sunday, 29 July 2012 11:32:06 UTC+10, isarel wrote:
>>>
>>> how do i upgrade from 1.5 to 2.2 with my htc dream g1
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Regards
> Fahad Mullaji
>
>
>


-- 
Regards
Fahad Mullaji

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

Re: [android-developers] Creating Tab Control in android

2012-07-30 Thread fahad mullaji
*Nirvan*,

Call function in which create new reference of tab-host. Try to position it
by assigning it properties.
Have not tried by myself but this should work according to me.
But again assigning layouts for different tabs will be bit tricky.You need
to dig this topic.
Good Luck

*Thanks*
Fahad Mullaji

On Mon, Jul 30, 2012 at 12:37 PM, |-NK-|  wrote:

> Hi
> I am developing an application in android, where I need to create a
> Tab control containing variable no of tabs.
>
> I need to know how to create tab control dynamically.
>
> I have seen some examples where they have used tabhost as root element
> in an xml layout file.
> I need to have some controls such as buttons and textviews on screen
> and below these controls I need a tab control.
>
> I am confused as I have seen different examples.
>
> 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
>



-- 
Regards
Fahad Mullaji

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

[android-developers] Re: Binding service from Simple Java Class

2012-07-30 Thread MMM
I have a simple Java class. Through this class, I am calling bindService() 
mehod for binding my service.
If I call bindService() method, its giving me error as bindService() method 
is not defined.
 
So, my question is that, do I need any class which is extended from a 
component like Activity/Service to bind my service or can I bind the 
service directly from simple Java class? 

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

[android-developers] number wheel

2012-07-30 Thread ala hammad
hello all,
i want to ask how to make number wheel like iphone in android ..
i found this library . https://github.com/chemalarrea/Android-wheel
but my problem is number show to 9 after that number repeat like 11 22 ...

any body have idea how to solve it ..

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

Re: [android-developers] Debugging a complex native application (shared libs)

2012-07-30 Thread Jim Graham
On Mon, Jul 30, 2012 at 02:05:48AM -0700, Cyril CHAMPIER wrote:
> Thank you for your great help.
> 
> I indeed forgot to mention that I already read most of the tutorials on the 
> net, and none of them speak about a complex project
> with 1 java project using 1 jni project using 5 external pure c++ libs.

Just FYI, you are FAR more likely to get real help on this if you ask in
the correct group (this isn't it).  That would be the android-ndk group.
Stack Overflow is another.  But this group is about developing apps for
Android using the Android SDK, which does not include native//jni.

Later,
   --jim

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

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

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


[android-developers] Re: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility

2012-07-30 Thread Pent
I've setup a new accessibility service with the BIND permission:







I can see that this service is being used since the name in Android
accessibility settings is correct.

However, I'm still getting the problem described here:

http://code.google.com/p/android/issues/detail?id=33934

Don't see any security exceptions in the log. Are others still getting
this 'must turn accessibility off and on after a reboot' problem with
the BIND permission specified ?

Pent

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


Re: [android-developers] Extract traffic information from mapview

2012-07-30 Thread Mark Murphy
On Mon, Jul 30, 2012 at 3:03 AM, VGNU Linux  wrote:
> I am new to android and followed a tutorial to display mapview.
> (https://developers.google.com/maps/documentation/android/hello-mapview)
> The mapview also displays traffic information using the a method
> "mapview.setTraffic(true)".
> The map view displays traffic information as lines red,green and yellow.
> My question here is it possible to extract this traffic information ?

Not really.

> I am trying to capture this traffic information and then convert it as audio
> and relay it to the user.

Then pay for some service that gives you traffic data via an API.

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

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

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


Re: [android-developers] How to put ads in live wallpapers?

2012-07-30 Thread MobileVisuals
I see, we plan to implement the same solution that Fireflies uses with a 
transparent banner. Or do you think live wallpapers without ads will have 
better chances at getting lots of downloads and being selected for the 
"best new free apps" section?

I just wonder, because our live wallpapers have performed much better on 
SlideME than on Google play. One of our apps have been the most downloaded 
live wallpaper on SlideME, but not of them have ever reached the top40 most 
downloaded live wallpapers on Google Play, only the top100:(

Den måndagen den 30:e juli 2012 kl. 01:17:50 UTC+2 skrev FiltrSoft:
>
> lol, I can just see the headlines now, "Google says apps with ads are bad 
> idea".
>
> I take back what I said about not building a business around live 
> wallpapers.  I didn't think people could make money with blogs when they 
> first started and a couple people got rich starting some highly successful 
> blogs, so anything is possible in this industry.
>
> MobileVisuals, it does sound like you answered your own question, though.
>
> On Sunday, July 29, 2012 2:56:14 PM UTC-4, Dianne Hackborn wrote:
>>
>> This isn't Google's opinion, it is my opinion.
>>
>> If other people have found ways to do ads that work, then great.  As I 
>> said, I am not morally opposed to it, this just isn't a design goal for 
>> them.
>>
>> And it sounds like you see ways to do things that you think are 
>> acceptable, so what are you looking for in your original question...?
>>
>> On Sun, Jul 29, 2012 at 10:05 AM, MobileVisuals > > wrote:
>>
>>> Thanks for explaining Google's opinion on this! The free version of 
>>> Fireflies live wallpaper seems to have an ad solution, which works well.
>>> A transparent banner is shown at the top of the main screen for the live 
>>> wallpaper. The reviews for the app are good and I don't see any complaints 
>>> about the ad. I think it has been among the top40 most downloaded live 
>>> wallapers.
>>>
>>> SlideME is the other big android appstore. The purchase to download rate 
>>> here is almost 0%, so ad based free versions are the only solution for this 
>>> appstore. One option is to have one free version without ads for Google 
>>> play and and one version with ads for SlideME,but this would be time 
>>> consuming.
>>>
>>> A purchase to download rate of 1% can be realistic on Google play. A 
>>> company would get about 1$ if we the price is 1,5$. 100 000 free downloads 
>>> each month on Google play would then be required to earn 1000$. Much less 
>>> downloads would be required to
>>> get as much revenue if the free versions has ads.
>>>
>>> Could really a business model of only purchases generate as much revenue 
>>> as purchases+ads? Maybe if removing the ads generated much more downloads. 
>>> But there are a lot of live wallpapers with ads, which are getting lots of 
>>> downloads, like Fireflies live wallpaper.
>>>
>>>
>>>
>>> Den fredagen den 27:e juli 2012 kl. 23:39:20 UTC+2 skrev FiltrSoft:
>>>
 Yea, I don't think live wallpapers were meant as a thing to build a 
 business around, unless you can sell a whole lot of them for $.99, which 
 you might on iOS (if they had the functionality).

 www.filtrsoft.com

 On Friday, July 27, 2012 6:22:39 AM UTC-4, MobileVisuals wrote:
>
> Could you please explain why you think it is a terrible idea to mix 
> live wallpapers with advertising? 
>
> I have talked to several mobile advertising companies now and now one 
> has any other advertising solution for live wallpapers than push 
> notifications. Is any one else here developing live wallpapers? If so, 
> how 
> are you managing the advertising in the live wallpapers?
>
> Den onsdagen den 25:e juli 2012 kl. 19:10:12 UTC+2 skrev Dianne 
> Hackborn:
>>
>> Mixing live wallpapers with attempts at advertising seems like a 
>> terrible idea to me.  Have you considering instead trying something like 
>> in-app billing to allow users to unlock features in your app?
>>
>> On Wed, Jul 25, 2012 at 6:12 AM, MobileVisuals <
>> eyv...@astralvisuals.com> wrote:
>>
>>> Is there any other way to advertise in live wallpapers than push 
>>> notifications? My company is using push notifications. This pays off 
>>> well, 
>>> but it also results in some bad reviews.I got this suggestion from 
>>> another 
>>> company:
>>>
>>> o Create a welcome page (name of the company, some app’s information)
>>>
>>> o Call for a Full screen ad with go and skip button
>>>
>>> o The go button will generate a click and transfer the user to the 
>>> add
>>>
>>> o The skip button will transfer the user to your app to continue the 
>>> app experience.
>>>
>>> Would this really work when the wallpaper is set as the current live 
>>> wallpaper? The user doesn't want to press a button every time the 
>>> screen is 
>>> woken up?
>>>
>

[android-developers] Re: FileObserver not returning file changes within subfolders?

2012-07-30 Thread Alik Elzin
See an open bug:
http://code.google.com/p/android/issues/detail?id=12479

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

Re: [android-developers] Extract traffic information from mapview

2012-07-30 Thread VGNU Linux
On Mon, Jul 30, 2012 at 4:07 PM, Mark Murphy wrote:

> On Mon, Jul 30, 2012 at 3:03 AM, VGNU Linux  wrote:
> > I am new to android and followed a tutorial to display mapview.
> > (https://developers.google.com/maps/documentation/android/hello-mapview)
> > The mapview also displays traffic information using the a method
> > "mapview.setTraffic(true)".
> > The map view displays traffic information as lines red,green and yellow.
> > My question here is it possible to extract this traffic information ?
>
> Not really.
>



>
> > I am trying to capture this traffic information and then convert it as
> audio
> > and relay it to the user.
>
> Then pay for some service that gives you traffic data via an API.
>

Along with relaying this information as audio to the end user I also want
to show a map with their location on it.
Do you think google provides this services ? If not which other companies
or organization provides such services ?



> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.8 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

Regards,
VGNU

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

Re: [android-developers] Re: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility

2012-07-30 Thread Andrew Moore
I find it works, but only if declaring the settings in xml and not in code.
On 30 Jul 2012 10:57, "Pent"  wrote:

> I've setup a new accessibility service with the BIND permission:
>
>  android:label="Tasker - JB"
> android:name=".MyAccessibilityService"
> android:enabled="@bool/is_jellybean_or_higher"
>android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
> >
> 
>  android:name="android.accessibilityservice.AccessibilityService" />
> 
> 
>
> I can see that this service is being used since the name in Android
> accessibility settings is correct.
>
> However, I'm still getting the problem described here:
>
> http://code.google.com/p/android/issues/detail?id=33934
>
> Don't see any security exceptions in the log. Are others still getting
> this 'must turn accessibility off and on after a reboot' problem with
> the BIND permission specified ?
>
> Pent
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility

2012-07-30 Thread Pent
> I find it works, but only if declaring the settings in xml and not in code.

Oh no... the user needs to be able to specify the settings...

Thanks for the info in any case.

Pent

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


[android-developers] is it possible to make tab on top and bottom of screen

2012-07-30 Thread Rocky
all,

is it possible to create Tab Bar on top and Bottom of screen, by any how ?

-- 
Thanks & Regards

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

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

Re: [android-developers] is it possible to make tab on top and bottom of screen

2012-07-30 Thread abhijeet tomar
i think ,it is not 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

Re: [android-developers] is it possible to make tab on top and bottom of screen

2012-07-30 Thread Rocky
If we play with TabHost ? that is responsible for hosting tab either bottom
or top :)

I hope that it is possible, i'm trying and doing R&D. If any one
know/hints, most welcome

On Mon, Jul 30, 2012 at 5:14 PM, abhijeet tomar wrote:

> i think ,it is not 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




-- 
Thanks & Regards

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

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

Re: [android-developers] Debugging a complex native application (shared libs)

2012-07-30 Thread Fabien R
On 30/07/2012 11:05, Cyril CHAMPIER wrote:
> Thank you for your great help.
>
> I indeed forgot to mention that I already read most of the tutorials on the 
> net, and none of them speak about a complex project
> with 1 java project using 1 jni project using 5 external pure c++ libs.
>   
Did you already manage to debug a simple jni printing "Hello world" ?

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


[android-developers] Re: Finishing ActivityGroup which combine Top and Bottom tabs together in same activity ??

2012-07-30 Thread RKJ (Android developer)
Can u post source code or send it to me. I'm also trying to create 4 tabs 
at Top and 4 tabs at bottom, but not able to do it.


On Thursday, 2 February 2012 06:18:32 UTC+5:30, AndroidGirl8 wrote:
>
>
>
> I made ActivityGroup which combined two activities one activity for 
> TOP tab and second one for BOTTOM tab and it works fine BUT when I 
> click in any activity on tab both tabs (top and bottom) still there 
> however this activity don't have them. 
>
> My question now how I finish this ActivityGroup how I get rid of it 
> when I click on any activity in this tabs i tried using finish() but i 
> throws exception . may be this a stupid question but i still beginner 
> in android and really appreciate any help 
>
> Here is my code : 
>
>  public class Multi extends ActivityGroup{ 
> LinearLayout layout; 
> LinearLayout layout_s1; 
> LinearLayout layout_s2; 
>
>
> @Override 
> protected void onCreate(Bundle savedInstanceState) { 
> // TODO Auto-generated method stub 
> super.onCreate(savedInstanceState); 
>
> setContentView(R.layout.multiview); 
>
> layout = (LinearLayout) findViewById(R.id.multiview_layout); 
> layout_s1 = (LinearLayout) findViewById(R.id.my_view_1); 
> layout_s2 = (LinearLayout) findViewById(R.id.my_view_2); 
>
> LocalActivityManager mgr = getLocalActivityManager(); 
>
> layout_s1.addView((mgr.startActivity("MyOtherActivityInstance1", 
> new Intent(this, Tab1.class))).getDecorView()); 
> layout_s2.addView((mgr.startActivity("MyOtherActivityInstance2", 
> new Intent(this, Tab2.class))).getDecorView()); 
>
>
> } 
>}

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

Re: [android-developers] Timeout

2012-07-30 Thread Francisco Marzoa
Hi,

Could you paste the exact error message?

Regards,
El 29/07/2012 21:44, "Karlos Aizpurua"  escribió:

> Hello!
>
> I'm a beginner so forgive me for my lack of knowledge.
>
> I've done a simple App in Eclipse: However, when I run it both on the
> smulator and my phone I get timeout errors. I've changed de ADB connection
> timeout (up to 300seconds) nothing improves though.
>
> What can I do?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Beginner

2012-07-30 Thread Luiz Fernando Rodrigues
Hi Rithanya,

You should try the online documentation first:
http://developer.android.com/training/index.html

The Busy Coder's Guide to Android Develpment is also a good source.
http://commonsware.com/Android/

There several question to this group on this subject. You can search the
group for other sources.

cheers,
Luiz


2012/7/29 Rithanya <1988ritha...@gmail.com>

> Hey Everyone!
> I have Samsung Nexus which uses Android 4.1.1 (Jelly Beans). I'd like to
> develop my own applications but I'm new to this and I absolutely have no
> idea.. I've installed the SDK and I've also configured Eclipse.. Please let
> me know how to code.. I'm a beginner and I need a lot of help.. Thanks in
> advance! :)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] APKs different with the same source code

2012-07-30 Thread Francisco Marzoa
Hi,

You will need to use a different package name for each app version, so you
need to make a few changes in the code in each.

Best way to achieve this is to use a library project to share all then
common code. Read on Android Developers docs about these.

Regards,
El 29/07/2012 21:39, "ansj tw"  escribió:

> I have a doubt, to do to compile for different APKs with the same source?
> Example: the first is named app01 with a particular theme, and the second
> is named app02 with another theme.
> Have researched some thing in the Manifest, but could not solve ...
> Can anyone 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Warning at hello world program

2012-07-30 Thread Francisco Marzoa
If you do not care about l10n, you can just ignore it. Also I think you can
configure lint to not warn on such issues.
El 29/07/2012 21:39, "Edlialbanian"  escribió:

> Hi guys i'm new here and i'm getting a warning i my firt app .
> I get thir error
> [I18N] Hardcoded string "Welcome", should use @string resource
>
> what should i do ??
>
> thanks in advance
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Help please-new android app suck - the target API is empty

2012-07-30 Thread Francisco Marzoa
Send your question to a phonegap forum if any, or contact phonegap support.
El 29/07/2012 21:44, "kaitama3"  escribió:

> Hi,
>
> I start to develope app for android with phonegap.com
> I created a new project and choose "new android application"
> when i fill the app name i also need to choos an terget API,
>
> but i can't becouse its empty, what should i do ?
> i can't click in "next".
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Exception chaos using the FragmentStatePagerAdapter (support package)

2012-07-30 Thread user123
Yes, thanks, I finished doing something similar... returning empty 
parcelable. But I think the problem, in my case, was that I was using 
nested fragments and that seems not to be supported. I changed my code to 
use only 1 level of fragments and had not these exceptions anymore.


On Thursday, July 19, 2012 9:08:39 PM UTC+2, user123 wrote:
>
> I'm using the FragmentStatePagerAdapter in a ViewPager, in order to 
> provide mutable content (FragmentPagerAdapter didn't work, it was not 
> possible to change the content after having set it the first time).
>
> Mainly it works, but it crashes frequently because of 
> IllegalStateExceptions: "Fragment no longer exists" / "No view found for 
> id 0xcf for fragment" / "Fragment is no longer in the fragment manager" 
> (and forgot the 4th one). There's nothing directly related to my code in 
> the stack trace, all I know, is that it's somehow related with saving / 
> restoring state, and trying to access not existing fragments.
>
> The documentation in 
> http://developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter.html
>  doesn't 
> give my any help, the description and example is very basic and don't say 
> anything about having to care about saving / restoring fragment's state. 
> And I don't have time to study all the source.
>
> All the documentation says about requeriments is:
>
> "When using FragmentPagerAdapter the host ViewPager must have a valid ID 
> set.
>
> Subclasses only need to implement 
> getItem(int)
>  and 
> getCount()
>  to 
> have a working adapter."
>
> I'm doing that. 
>
> Can somebody help me out of this, at least giving me a logical background 
> of these problems and what am I supposed to to? 
>

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

Re: [android-developers] Why do I need a MotoDev login to install sdk?

2012-07-30 Thread Francisco Marzoa
Do not install those and problem solved.
El 29/07/2012 21:44, "huygir"  escribió:

> I was wondering the same thing (obviously I was very out of date on SDK
> updates).
>
> This does not really answer the question... why in the world would
> Motorola restrict access to their emulators such that apps cannot be easily
> validated for their phones?  I am not going to create yet another dev
> account just so I can download their stuff - if they want my apps to work
> on their devices then make it publicly accessible.
>
> Just another reason to dislike Droids... go Samsung.
>
> On Monday, January 16, 2012 7:16:23 AM UTC-5, Mark Murphy (a Commons Guy)
> wrote:
>>
>> That should only be needed for the emulator images and such from
>> Motorola Mobility. If you do not have a MOTODEV login and do not wish
>> to obtain one, uncheck those items in the SDK Manager before clicking
>> the "Install packages..." button.
>>
>> On Fri, Jan 13, 2012 at 6:10 PM, JeffH  wrote:
>> > Newbie installing sdk, running the update, I was prompted for my
>> > MOTODEV login and it appears that I had to have it to continue.  What
>> > is up with that?
>> >
>> > Best,
>> >
>> > Jeff
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@**
>> googlegroups.com 
>> > To unsubscribe from this group, send email to
>> > android-developers+**unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/**group/android-developers?hl=en
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training in DC: 
>> http://marakana.com/training/**android/
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Make SlidingDrawer's content always visible?

2012-07-30 Thread user123
I posted a solution in stackoverflow:  
http://stackoverflow.com/questions/11492311/make-slidingdrawers-contents-part-always-visible/11570919#11570919
 

On Friday, July 20, 2012 1:02:14 AM UTC+2, MagouyaWare wrote:
>
> I did look at the image you posted... and it didn't make sense.  Now that 
> you have explained it properly it makes more sense.
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Thu, Jul 19, 2012 at 12:29 AM, user123 wrote:
>
>> Please look at the image I posted. I want to use it like usual 
>> (open/collapse/slide) but with the difference that always a small part is 
>> visible.
>>
>> It's because the drawer is containing a list view and I want that the 
>> first item is always visible.
>>
>>
>> On Monday, July 16, 2012 5:54:10 PM UTC+2, MagouyaWare wrote:
>>>
>>> So, you are using a sliding drawer and you never want it to collapse?
>>>
>>> Thanks,
>>> Justin Anderson
>>> MagouyaWare Developer
>>> http://sites.google.com/site/**magouyaware
>>>
>>>
>>> On Mon, Jul 16, 2012 at 2:56 AM, user123  wrote:
>>>
 Hi golf oo, your answer is empty.


 On Sunday, July 15, 2012 5:02:25 PM UTC+2, user123 wrote:
>
> I'm using android:bottomOffset to make the drawer stick out 100dip 
> from the bottom. That works fine, but my content is not visible. It's 
> only 
> visible when I touch the drawer. How can I make that its always visible 
> (the 100dip show the content)?
>
> I first thought it's a visibility issue, because the visibility of the 
> content is set to GONE in onFinishInflate(), prepareContent(), 
> closeDrawer()... copied the SlidingDrawer and removed these lines, 
> didn't solve it. It seems that it is a position issue, currently I'm 
> playing with the numbers but still don't find how to make the view appear 
> where it should be... and don't have more time for this... any help is 
> greatly 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 post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

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

Re: [android-developers] Re: What is the best way to handle out of memory, because of bitmaps, on devices pre-honeycomb with low memory limit

2012-07-30 Thread user123
Yes, applying these techniques already... bitmap recycling has to be 
improved although. Thanks.

On Monday, July 16, 2012 3:54:15 AM UTC+2, smith wrote:
>
>Is your app needs bitmaps as many as Gallery ?  My way is that,  
>
> 1. re-use all the "Manage Object" which contains the reference of the 
> Bitmaps to avoid gc to collection this structures.
> 2. manually recycle bitmaps when not needed 
> 3. multi-thread decode bitmap and insert 
>
> 2012/7/15 user123 
>
>> I don't understand why it's not just possible to (easily) say, please, 
>> free all the memory in the native heap *now* - I don't care if I have to 
>> wait a bit, for garbage collection and so on. But this is not possible and 
>> I have just to rely on the system and see how my app keeps crashing...
>>
>>
>> On Sunday, July 15, 2012 12:35:44 AM UTC+2, user123 wrote:
>>>
>>> My app has a lot static images (backgrounds, buttons, etc.) and a lot of 
>>> small images, which loads from the web. These images are shown in a list 
>>> view, for example.
>>>
>>> I'm looking for a strategy to avoid out of memory errors. In the devices 
>>> with less than 25 mb it runs out of memory very soon and crashes.
>>>
>>> What I have done:
>>>
>>> - Put the static images with the correct resolution in the correct 
>>> folder (in this specific case it's hdpi).
>>> - Create a singleton class which caches the dynamically loaded images.
>>>
>>> Even if I disable the caching in the singleton class, I'm running out of 
>>> memory. I logged the native usage with Debug.**getNativeHeapAllocatedSize() 
>>> and I know that bitmaps are the cause of the problem.
>>>
>>> I can't lose quality of the images.
>>>
>>> I would take in account slower loading speed, as long as the app doesn't 
>>> crash! But calling System.gc() doesn't seem to be reliable, even less with 
>>> native heap, and recycle manually the bitmaps at the end of each activity 
>>> is a pain, because first, I have to initialize all the backgrounds in code, 
>>> in order to get a reference to the bitmap, then I have to use some data 
>>> structure, to hold all the bitmaps, and at the end of each activity call 
>>> recycle on all, and then I have also to manage, that, in the next activity, 
>>> I don't try to use the same bitmap instances, because I'll get exception 
>>> "trying to use a recycled bitmap".
>>>
>>> So what do I have to do? Please help...
>>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

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

[android-developers] Re: Memory issues in list view with bitmaps

2012-07-30 Thread user123
hm, well, I'm not allowed to change the design of the app here. So this 
will not be applyable. But what I'm doing not, still not perfect, is 
getting how much memory the device has available and load pic with 
different resolution accordingly. The number is limited and the size is 
already not that-big, so these measures are enough for me.

On Sunday, July 15, 2012 5:52:39 PM UTC+2, RichardC wrote:
>
> Some options:
>
>- load thumbnails only and let the user click one to see it large
>- use a scrolling thumbnail image bar which and show its centre image 
>above it as large as possible. On a phone imaging a small bar (full width) 
>at the bottom of the screen with 3 or 5 thumbnails.  You would show the 
>centre thumbnail above the bar filling the rest of the screen and the user 
>would swipe left/right on the thumbnails to change image.
>- only show 1 large image and make the user swipe to scroll to the 
>next.
>
> In all of the above options there is only ever 1 large image loaded at any 
> time. Thumbnails should be re-sampled as they are loaded so as to only use 
> a few KB.
>
> On Sunday, July 15, 2012 11:00:57 AM UTC+1, user123 wrote:
>>
>> I forgot to say, I'm targeting API 7.
>
>

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

[android-developers] Android pics inverted when taking with front camera (started via intent)

2012-07-30 Thread user123


I have the same problem described here: Android Front Facing Camera Taking 
Inverted 
Photos

What's different in my case is that I'm starting the camera app via intent, 
not implementing it myself. So probably no way to use CameraInfo or the 
like. How can I solve this?

In order to summarize: When starting camera via intent and take the picture 
using front camera, the returned bitmap is rotated by 180°.

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

Re: [android-developers] How to put ads in live wallpapers?

2012-07-30 Thread FiltrSoft
That's probably a better question for a marketing forum than a developer 
forum.

On Monday, July 30, 2012 6:48:10 AM UTC-4, MobileVisuals wrote:
>
> I see, we plan to implement the same solution that Fireflies uses with a 
> transparent banner. Or do you think live wallpapers without ads will have 
> better chances at getting lots of downloads and being selected for the 
> "best new free apps" section?
>
> I just wonder, because our live wallpapers have performed much better on 
> SlideME than on Google play. One of our apps have been the most downloaded 
> live wallpaper on SlideME, but not of them have ever reached the top40 most 
> downloaded live wallpapers on Google Play, only the top100:(
>
> Den måndagen den 30:e juli 2012 kl. 01:17:50 UTC+2 skrev FiltrSoft:
>>
>> lol, I can just see the headlines now, "Google says apps with ads are bad 
>> idea".
>>
>> I take back what I said about not building a business around live 
>> wallpapers.  I didn't think people could make money with blogs when they 
>> first started and a couple people got rich starting some highly successful 
>> blogs, so anything is possible in this industry.
>>
>> MobileVisuals, it does sound like you answered your own question, though.
>>
>> On Sunday, July 29, 2012 2:56:14 PM UTC-4, Dianne Hackborn wrote:
>>>
>>> This isn't Google's opinion, it is my opinion.
>>>
>>> If other people have found ways to do ads that work, then great.  As I 
>>> said, I am not morally opposed to it, this just isn't a design goal for 
>>> them.
>>>
>>> And it sounds like you see ways to do things that you think are 
>>> acceptable, so what are you looking for in your original question...?
>>>
>>> On Sun, Jul 29, 2012 at 10:05 AM, MobileVisuals <
>>> eyv...@astralvisuals.com> wrote:
>>>
 Thanks for explaining Google's opinion on this! The free version of 
 Fireflies live wallpaper seems to have an ad solution, which works well.
 A transparent banner is shown at the top of the main screen for the 
 live wallpaper. The reviews for the app are good and I don't see any 
 complaints about the ad. I think it has been among the top40 most 
 downloaded live wallapers.

 SlideME is the other big android appstore. The purchase to download 
 rate here is almost 0%, so ad based free versions are the only solution 
 for 
 this appstore. One option is to have one free version without ads for 
 Google play and and one version with ads for SlideME,but this would be 
 time 
 consuming.

 A purchase to download rate of 1% can be realistic on Google play. A 
 company would get about 1$ if we the price is 1,5$. 100 000 free downloads 
 each month on Google play would then be required to earn 1000$. Much less 
 downloads would be required to
 get as much revenue if the free versions has ads.

 Could really a business model of only purchases generate as much 
 revenue as purchases+ads? Maybe if removing the ads generated much more 
 downloads. But there are a lot of live wallpapers with ads, which are 
 getting lots of downloads, like Fireflies live wallpaper.



 Den fredagen den 27:e juli 2012 kl. 23:39:20 UTC+2 skrev FiltrSoft:

> Yea, I don't think live wallpapers were meant as a thing to build a 
> business around, unless you can sell a whole lot of them for $.99, which 
> you might on iOS (if they had the functionality).
>
> www.filtrsoft.com
>
> On Friday, July 27, 2012 6:22:39 AM UTC-4, MobileVisuals wrote:
>>
>> Could you please explain why you think it is a terrible idea to mix 
>> live wallpapers with advertising? 
>>
>> I have talked to several mobile advertising companies now and now one 
>> has any other advertising solution for live wallpapers than push 
>> notifications. Is any one else here developing live wallpapers? If so, 
>> how 
>> are you managing the advertising in the live wallpapers?
>>
>> Den onsdagen den 25:e juli 2012 kl. 19:10:12 UTC+2 skrev Dianne 
>> Hackborn:
>>>
>>> Mixing live wallpapers with attempts at advertising seems like a 
>>> terrible idea to me.  Have you considering instead trying something 
>>> like 
>>> in-app billing to allow users to unlock features in your app?
>>>
>>> On Wed, Jul 25, 2012 at 6:12 AM, MobileVisuals <
>>> eyv...@astralvisuals.com> wrote:
>>>
 Is there any other way to advertise in live wallpapers than push 
 notifications? My company is using push notifications. This pays off 
 well, 
 but it also results in some bad reviews.I got this suggestion from 
 another 
 company:

 o Create a welcome page (name of the company, some app’s 
 information)

 o Call for a Full screen ad with go and skip button

 o The go button will generate a click and transfer the user to the 
 add
>>

[android-developers] how to run a task in background,eventhough i am out of the application

2012-07-30 Thread Vijay Krishnan
Hi all,
 I want to run a task in background,eventhough i am out of the
application.

Thanks,
vijay.k

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

[android-developers] Re: how to run a task in background,eventhough i am out of the application

2012-07-30 Thread bob
 

I would try creating a Service instead of an Activity.

On Monday, July 30, 2012 8:38:37 AM UTC-5, Vijay Krishnan wrote:
>
> Hi all,
>  I want to run a task in background,eventhough i am out of the 
> application.
>
> Thanks,
> vijay.k
>

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

Re: [android-developers] Re: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility

2012-07-30 Thread Andrew Moore
I know it's not ideal for my app either and means there's lots of
additional activity taking place because I can't restrict the package
monitoring as much as i would like.
On 30 Jul 2012 12:30, "Pent"  wrote:

> > I find it works, but only if declaring the settings in xml and not in
> code.
>
> Oh no... the user needs to be able to specify the settings...
>
> Thanks for the info in any case.
>
> Pent
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: Android pics inverted when taking with front camera (started via intent)

2012-07-30 Thread bob
 

Rotated 180 degrees or flipped horizontally?  The latter seems more 
probable.

On Monday, July 30, 2012 7:59:02 AM UTC-5, user123 wrote:
>
> I have the same problem described here: Android Front Facing Camera 
> Taking Inverted 
> Photos
>
> What's different in my case is that I'm starting the camera app via 
> intent, not implementing it myself. So probably no way to use CameraInfo or 
> the like. How can I solve this?
>
> In order to summarize: When starting camera via intent and take the 
> picture using front camera, the returned bitmap is rotated by 180°.
>

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

[android-developers] Re: Memory issues in list view with bitmaps

2012-07-30 Thread bob
Are you positive it's crashing with an OutOfMemoryError?

Sounds like it could be something else.



On Sunday, July 15, 2012 4:59:27 AM UTC-5, user123 wrote:
>
> What is the best way to handle a very long list view with bitmaps in a low 
> memory device? I'm getting crashes after I scroll a bit... I don't want to 
> loose image quality... I was thinking about loading only the number of 
> items which is possible for the available memory, but this is obviously a 
> bad solution. Do I have to recycle manually the bitmaps, in getView(), 
> according to the position...? Is this the way to handle this?
>
> Thanks in advance.
>

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

[android-developers] Re: Help please-new android app suck - the target API is empty

2012-07-30 Thread bob
 

Sounds like you need to install the Android SDK and tell phone gap where 
you put it.



On Friday, July 27, 2012 7:54:29 PM UTC-5, kaitama3 wrote:
>
> Hi,
>
> I start to develope app for android with phonegap.com
> I created a new project and choose "new android application"
> when i fill the app name i also need to choos an terget API,
>
> but i can't becouse its empty, what should i do ?
> i can't click in "next".
>

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

[android-developers] Re: Android pics inverted when taking with front camera (started via intent)

2012-07-30 Thread user123
Uhm... don't remember. Is there a solution for any of the cases? I'll check 
it again.


On Monday, July 30, 2012 3:50:52 PM UTC+2, bob wrote:
>
> Rotated 180 degrees or flipped horizontally?  The latter seems more 
> probable.
>
> On Monday, July 30, 2012 7:59:02 AM UTC-5, user123 wrote:
>>
>> I have the same problem described here: Android Front Facing Camera 
>> Taking Inverted 
>> Photos
>>
>> What's different in my case is that I'm starting the camera app via 
>> intent, not implementing it myself. So probably no way to use CameraInfo or 
>> the like. How can I solve this?
>>
>> In order to summarize: When starting camera via intent and take the 
>> picture using front camera, the returned bitmap is rotated by 180°.
>>
>

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

Re: [android-developers] is it possible to make tab on top and bottom of screen

2012-07-30 Thread Larry Meadors
It is possible. Not perfect, but adequate.


http://schemas.android.com/apk/res/android";
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">






Larry

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


Re: [android-developers] is it possible to make tab on top and bottom of screen

2012-07-30 Thread Larry Meadors
Aw crap - sorry misread your question - that's JUST at the bottom. :-/

Larry


On Mon, Jul 30, 2012 at 8:20 AM, Larry Meadors  wrote:
> It is possible. Not perfect, but adequate.
>
> 
>  xmlns:android="http://schemas.android.com/apk/res/android";
> android:id="@android:id/tabhost"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent">
>  android:orientation="vertical"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:padding="5dp">
>  android:id="@android:id/tabcontent"
> android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:padding="3dp"
> android:layout_weight="1"/>
>  android:id="@android:id/tabs"
> android:layout_width="fill_parent"
> android:layout_height="45dp"
> android:layout_weight="0"
> android:layout_gravity="bottom"/>
> 
> 
>
> Larry

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


[android-developers] Re: Zooming on a custom overlay

2012-07-30 Thread Todd Bennett
Hey Igor,
 
I am trying to subclass the Overlay class so that I can pull tiles 
(generated from MapTiler) from a website and put them on top of Google Maps 
that are showing.  I am tryng to do this in Android.  Could you provide 
some sample code that might help?
 
Any and all help is appreciated.
 
Thanks,
 
Todd

On Wednesday, November 17, 2010 2:16:22 PM UTC-5, Igor Prilepov wrote:

> I used the Overlay class for this purpose. 
> Here is the main part of the MyOverlay::Draw() method: 
> // convert bitmap's bounding box into pixels 
> Point top_left = new Point(); 
> mapView.getProjection().toPixels(min, top_left); 
> Point bottom_right = new Point(); 
> mapView.getProjection().toPixels(max, bottom_right); 
>
> // Prepare two rectangles (pixels) 
> Rect src = new Rect( 0,0,bmp.getWidth() - 1, bmp.getHeight() - 1 
> ); 
> Rect dst = new Rect( top_left.x, bottom_right.y, 
> bottom_right.x,top_left.y ); 
>
> // draw bitmap 
> canvas.drawBitmap( bmp, src, dst, null); 
>
> Since it uses current mapView then zooming and panning are supported 
> automatically. 
>
> Obviously you need to now left top (GeoPoint min in the code above) 
> and right bottom (GeoPoint max) coordinates for your picture (I used 
> Google Earth for this purpose). 
>
> Good luck. 
> Igor 
>
> On Nov 17, 7:52 am, Allan Valeriano  wrote: 
> > Hi all, 
> > 
> > does anybody knows if it is possible to zoom in and out on a custom 
> > overlay and enlarge the image? 
> > I'd like to do something like that:
> http://geoserver.nima.puc-rio.br/puc-rio/ 
> > 
> > If you zoom in, you'll notice that the image gets bigger.

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

[android-developers] Re: Regarding Application is not installed alert

2012-07-30 Thread Dan
Don't do the permission check in the child application manifest. Use:

http://developer.android.com/reference/android/app/Activity.html#startActivityForResult%28android.content.Intent,%20int%29

from your launcher, and in the child apps use:

http://developer.android.com/reference/android/app/Activity.html#getCallingActivity%28%29

or

http://developer.android.com/reference/android/app/Activity.html#getCallingPackage%28%29

Do some application/package manager gyrations to get the UID/PID of the 
calling app and look for your permission with:

http://developer.android.com/reference/android/content/ContextWrapper.html#checkPermission%28java.lang.String,%20int,%20int%29

If there is no permission, or getCallingActivity returns null, put up your 
"use my launcher" screen (or even better, just
launch your launcher if it was called by somebody else and let them start 
from there), otherwise, do your stuff.  

 Dan S.


On Thursday, July 26, 2012 12:31:32 AM UTC-4, Bunty syed wrote:
>
>  
> Hi All,
>
> Actually I have one launcher with some child apps.
>
> I have given permission in all child apps so that only my launcher can 
> launch them as follows
>  android:name="android.permission.LAUNCH_KONY_POLICYINJECTED_APPS" 
> android:protectionLevel="signature"/>
>
> Tat is working fine. So with above, if any other application not signed 
> with same keystore of child apps & not having required permission will get 
> Permission denial exception while trying to launch the child apps .
>
> Now my doubt is when I click any of  installed child Apps in the phone 
> application menu, I am getting Alert saying that "Application is not 
> installed.."
>  Tat is a expected behavior.
> But is there any way to customize that Alert message instead I want to 
> display my alert message like "Plz launch from my launcher app".
>
>
>
>
>

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

[android-developers] Set bounds for one layer of LayerDrawable?

2012-07-30 Thread Jonathan Koren
I'm creating a custom View that looks like a horizontal ProgressBar but 
doesn't always have to touch the left edge. My approach is to use a 
LayerDrawable in which one layer uses different bounds (computed at run 
time). The attachement shows expected (top) versus actual (bottom) results.

>From what I can tell, setting the bounds for one layer also sets the bounds 
for the entire LayerDrawable. The code in the custom View is essentially 
this:

int left, top, right, bottom;
/*... do some math ... */
Drawable d = mDrawable.findDrawableByLayerId(R.id.custom_layer_id);
d.setBounds(left, top, right, bottom);


Meanwhile, the xml for the drawable is this:

http://schemas.android.com/apk/res/android"; >













 


Can I set bounds for an individual layer without affecting the other 
layers? If not, what can I do to get around this issue?

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

Re: [android-developers] Byte [] image

2012-07-30 Thread Jim Graham
On Mon, Jul 30, 2012 at 07:12:52AM -0700, Numair Qadir wrote:
> I'm working on an app, in which i convert the byte[] image to bitmap, but 
> it showed me some weird image, (in attachment), here is my code

No need to look at the attached image...I can already see the errors.


>   int width = parameters.getPreviewSize (). width;
>   int height = parameters.getPreviewSize (). height;

Ok, why are you bothering with the preview size?  You aren't dealing with
the preview here---you're dealing with the PHOTO image now.  But that's
not important, as you don't even NEED the width or height here.  So
remove the above two lines.

>   ByteArrayOutputStream outStr = new ByteArrayOutputStream ();
>   Rect rect = new Rect (0, 0, width, height); 
>   YuvImage yuvimage = new YuvImage (arg0, ImageFormat.NV21, width,
>  height, null);
>   yuvimage.compressToJpeg (rect, 100, outStr);

Ok, what's all this junk for?  Toss it all into the bin

>   Bitmap bmp = BitmapFactory.decodeByteArray (outstr.toByteArray (), 0,
>outstr.size ());

Ok, now we're where we should be...except what you have about should look
more like this:

public void onPictureTaken(final byte[] data, final Camera camera) {
   .
   Bitmap bmp = BitmapFactory.decodeByteArray(data, 0, data.length, options);
   .
}

And then you have your bitmap.  Be careful, however...anything over about
3 MP is going to cause an Out Of Memory Error when you exceed the amount
of heap the Java side allows you to use (which may be higher for devices
with higher-resolution cameras).  I suggest using try/catch to avoid
locking the camera and forcing the user to reboot to reset the camera.
Then you can at least exit gracefully.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running Mac OS X Lion >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

   Saw something on TV about Psych-os.
 H, Psych OS.  Perhaps the next freeware OS   --me

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

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


Re: [android-developers] Re: Binding service from Simple Java Class

2012-07-30 Thread TreKing
On Mon, Jul 30, 2012 at 4:43 AM, MMM  wrote:

> If I call bindService() method, its giving me error as bindService()
> method is not defined.
>

It is defined, but in the Context class. If you don't understand why you
can't arbitrarily call a method defined in another class from another
unrelated class, you need to spend some more time learning Java.


>  So, my question is that, do I need any class which is extended from a
> component like Activity/Service to bind my service or can I bind the
> service directly from simple Java class?
>

You either extend Activity, Service or another Context-derived class
yourself or you pass an instance of a Context to this simple Java class.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-30 Thread bob
 

*“640K ought to be enough for anyone”*

On Monday, July 30, 2012 1:30:46 AM UTC-5, Dianne Hackborn wrote:
>
> On Sun, Jul 29, 2012 at 5:45 PM, bob  wrote:
>
>> Worried about memory?  Try this:
>> 
>>
>
> No.
>
> First of all, this only helps you on higher-end devices that have lots of 
> memory to give you.  So you still need to look at the memory available and 
> make sure you don't exceed it, and the limit may not be any more than you 
> have now.  So this actually requires that you do *more* work on memory 
> management.
>
> Second, let's look at the documentation: 
> http://developer.android.com/guide/topics/manifest/application-element.html#largeHeap
>  
>
> In particular: "Most apps should not need this and should instead focus on 
> reducing their overall memory usage for improved performance."
>
> And if you follow the link to getLargeMemoryClass(): 
> http://developer.android.com/reference/android/app/ActivityManager.html#getLargeMemoryClass()
>
> We'll further emphasize this: "This is the space available for 
> memory-intensive applications; most applications should not need this 
> amount of memory, and should instead stay with the getMemoryClass() limit."
>
> This API does not "solve" your memory problems.  You are programming for a 
> mobile, battery-powered, memory-constrained device.  Part of that is tight 
> memory management.  You don't get to shove an attribute in your manifest 
> and abdicate on that responsibility.
>
> -- 
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to 
> provide private support, and so won't reply to such e-mails.  All such 
> questions should be posted on public forums, where I and others can see and 
> answer them.
>
>

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

[android-developers] SlidingDrawer backgrounds

2012-07-30 Thread Ken H
This may be a stupid question (I just started getting into SlidingDrawers), 
but I have some buttons at the bottom of my drawer in a LinearLayout, and I 
want to set the background area around the buttons to a solid color -- the 
draw slides over a map and I can see the map behind the buttons...I don't 
want to see the map behind the buttons.

I know this should be simple, but simple things elude me.

Ken

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

[android-developers] Receive sms

2012-07-30 Thread Ehsan Sadeghi
I write this code in manifest file :



















   


 
and this code in ReceiveSms : 
*

package
*

ir.smspeik.sms;

**
*

import
*

android.content.BroadcastReceiver;
**
*

import
*

android.content.Context;
**
*

import
*

android.content.Intent;
**
*

import
*

android.os.Bundle;
**
*

import
*

android.telephony.SmsMessage;
**
*

import
*

android.widget.Toast;

**
*

public
*

*class* ReceiveSms *extends* BroadcastReceiver{

@Override

*public* *void* onReceive(Context context, Intent intent)

{

//---get the SMS message passed in---

Bundle bundle = intent.getExtras();

SmsMessage[] msgs = 

*null*;

String str = 

"";

*if* (bundle != *null*)

{

//---retrieve the SMS message received---

Object[] pdus = (Object[]) bundle.get(

"pdus");

msgs = 

*new* SmsMessage[pdus.length];

*for* (*int* i=0; ihttp://groups.google.com/group/android-developers?hl=en

[android-developers] Landscape

2012-07-30 Thread Ehsan Sadeghi
I have layout and layout-land in my app and in both have a file is named 
realstate.xml, in portrait everything is ok, but in landscape application 
stops by following error :
07-30 18:29:51.186: D/gralloc_goldfish(659): Emulator without GPU emulation 
detected.
07-30 18:29:53.757: D/InputEventConsistencyVerifier(659): KeyEvent: 
ACTION_UP but key was not down.
07-30 18:29:53.757: D/InputEventConsistencyVerifier(659):   in 
android.view.ViewRootImpl@4121ca30
07-30 18:29:53.757: D/InputEventConsistencyVerifier(659):   0: sent at 
13800500, KeyEvent { action=ACTION_UP, keyCode=KEYCODE_DPAD_CENTER, 
scanCode=232, metaState=0, flags=0x8, repeatCount=0, eventTime=138005, 
downTime=137916, deviceId=0, source=0x301 }
07-30 18:30:11.055: D/dalvikvm(659): GC_CONCURRENT freed 163K, 4% free 
8251K/8519K, paused 46ms+5ms, total 280ms
07-30 18:30:12.105: I/Choreographer(659): Skipped 48 frames!  The 
application may be doing too much work on its main thread.
07-30 18:30:16.055: I/Choreographer(659): Skipped 44 frames!  The 
application may be doing too much work on its main thread.
07-30 18:30:36.579: I/Choreographer(659): Skipped 41 frames!  The 
application may be doing too much work on its main thread.
07-30 18:30:42.605: I/Choreographer(659): Skipped 30 frames!  The 
application may be doing too much work on its main thread.
07-30 18:30:55.867: I/Choreographer(659): Skipped 39 frames!  The 
application may be doing too much work on its main thread.
07-30 18:31:15.974: I/Choreographer(659): Skipped 41 frames!  The 
application may be doing too much work on its main thread.
07-30 18:31:20.456: I/Choreographer(659): Skipped 51 frames!  The 
application may be doing too much work on its main thread.
07-30 18:32:11.687: D/AndroidRuntime(659): Shutting down VM
07-30 18:32:11.687: W/dalvikvm(659): threadid=1: thread exiting with 
uncaught exception (group=0x40a13300)
07-30 18:32:11.716: E/AndroidRuntime(659): FATAL EXCEPTION: main
07-30 18:32:11.716: E/AndroidRuntime(659): java.lang.RuntimeException: 
Unable to start activity 
ComponentInfo{ir.smspeik.sms/ir.smspeik.sms.Realstate}: 
java.lang.NullPointerException
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3512)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
android.app.ActivityThread.access$700(ActivityThread.java:130)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
android.os.Handler.dispatchMessage(Handler.java:99)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
android.os.Looper.loop(Looper.java:137)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
android.app.ActivityThread.main(ActivityThread.java:4745)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
java.lang.reflect.Method.invokeNative(Native Method)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
java.lang.reflect.Method.invoke(Method.java:511)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
dalvik.system.NativeStart.main(Native Method)
07-30 18:32:11.716: E/AndroidRuntime(659): Caused by: 
java.lang.NullPointerException
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
ir.smspeik.sms.Realstate.onCreate(Realstate.java:24)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
android.app.Activity.performCreate(Activity.java:5008)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
07-30 18:32:11.716: E/AndroidRuntime(659):  ... 12 more
07-30 18:32:16.056: D/gralloc_goldfish(688): Emulator without GPU emulation 
detected.

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

[android-developers] Re: Landscape

2012-07-30 Thread RichardC
07-30 18:32:11.716: E/AndroidRuntime(659): Caused by: 
java.lang.NullPointerException
07-30 18:32:11.716: E/AndroidRuntime(659):  at 
ir.smspeik.sms.Realstate.onCreate(Realstate.java:24) 
Put a breakpoint here and look at your code

On Monday, July 30, 2012 7:48:00 PM UTC+1, Ehsan Sadeghi wrote:
>
> I have layout and layout-land in my app and in both have a file is named 
> realstate.xml, in portrait everything is ok, but in landscape application 
> stops by following error :
> 07-30 18:29:51.186: D/gralloc_goldfish(659): Emulator without GPU 
> emulation detected.
> 07-30 18:29:53.757: D/InputEventConsistencyVerifier(659): KeyEvent: 
> ACTION_UP but key was not down.
> 07-30 18:29:53.757: D/InputEventConsistencyVerifier(659):   in 
> android.view.ViewRootImpl@4121ca30
> 07-30 18:29:53.757: D/InputEventConsistencyVerifier(659):   0: sent at 
> 13800500, KeyEvent { action=ACTION_UP, keyCode=KEYCODE_DPAD_CENTER, 
> scanCode=232, metaState=0, flags=0x8, repeatCount=0, eventTime=138005, 
> downTime=137916, deviceId=0, source=0x301 }
> 07-30 18:30:11.055: D/dalvikvm(659): GC_CONCURRENT freed 163K, 4% free 
> 8251K/8519K, paused 46ms+5ms, total 280ms
> 07-30 18:30:12.105: I/Choreographer(659): Skipped 48 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:30:16.055: I/Choreographer(659): Skipped 44 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:30:36.579: I/Choreographer(659): Skipped 41 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:30:42.605: I/Choreographer(659): Skipped 30 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:30:55.867: I/Choreographer(659): Skipped 39 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:31:15.974: I/Choreographer(659): Skipped 41 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:31:20.456: I/Choreographer(659): Skipped 51 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:32:11.687: D/AndroidRuntime(659): Shutting down VM
> 07-30 18:32:11.687: W/dalvikvm(659): threadid=1: thread exiting with 
> uncaught exception (group=0x40a13300)
> 07-30 18:32:11.716: E/AndroidRuntime(659): FATAL EXCEPTION: main
> 07-30 18:32:11.716: E/AndroidRuntime(659): java.lang.RuntimeException: 
> Unable to start activity 
> ComponentInfo{ir.smspeik.sms/ir.smspeik.sms.Realstate}: 
> java.lang.NullPointerException
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3512)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread.access$700(ActivityThread.java:130)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.os.Handler.dispatchMessage(Handler.java:99)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.os.Looper.loop(Looper.java:137)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> java.lang.reflect.Method.invokeNative(Native Method)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> java.lang.reflect.Method.invoke(Method.java:511)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> dalvik.system.NativeStart.main(Native Method)
> 07-30 18:32:11.716: E/AndroidRuntime(659): Caused by: 
> java.lang.NullPointerException
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> ir.smspeik.sms.Realstate.onCreate(Realstate.java:24)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.Activity.performCreate(Activity.java:5008)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  ... 12 more
> 07-30 18:32:16.056: D/gralloc_goldfish(688): Emulator without GPU 
> emulation detected.
>

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

[android-developers] Is it possible to reduce the variability of camera shutter lag time?

2012-07-30 Thread greg
Given a known periodic motion (e.g., walking), I'd like to take a full 
resolution snapshot at the same point in the motion (i.e., the same time 
offset within different periods). However on the Nexus S (currently running 
OS 4.1.1 but the same was true of previous OS versions), I'm seeing so much 
variability in the shutter lag that I cannot accurately plan the timing of 
the snapshot. Is there anything I can do in the application to reduce this 
shutter lag variability? (In this application, the mean lag can be any 
duration but the standard deviation must be small ... much smaller than the 
0.5 s standard deviation I am seeing.) I'm hoping someone has a clever 
suggestion. If I don't get any suggestions, I'll post a feature request in 
the Android bug tracker.

I've posted the same question (and showing a histogram of camera shutter 
lag times) at

http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag

Thanks! -- Greg

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

[android-developers] Native stack trace on ICS?

2012-07-30 Thread Kevin Kowalewski
Hi all,

It looks like there is no way to get the native stack trace on ICS...? I 
have 4 phones here all running ICS and enabling log.redirect-stdio does not 
output a native stack trace like I did on GB...

How can this be possible, Google can't be serious. How are we supposed to 
debug native applications without having GDB connected continuously. 

Thanks,
Kevin

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

[android-developers] In App Billing -implementation to sell subscriptions

2012-07-30 Thread David Toledo
Hi All

Exist some way from making testing with android.test.purchased for
Consts.ITEM_TYPE_SUBSCRIPTION.

The result is "Item not found"

When I using the right "productId", all is good.
When I using "android.test.purchased" for Consts.ITEM_TYPE_INAPP, all good,
too

Best Regards
David

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

[android-developers] Re: Is it possible to reduce the variability of camera shutter lag time?

2012-07-30 Thread RichardC
Could it be related to auto-focus? Try turning it off.

On Monday, July 30, 2012 7:55:52 PM UTC+1, greg wrote:
>
> Given a known periodic motion (e.g., walking), I'd like to take a full 
> resolution snapshot at the same point in the motion (i.e., the same time 
> offset within different periods). However on the Nexus S (currently running 
> OS 4.1.1 but the same was true of previous OS versions), I'm seeing so much 
> variability in the shutter lag that I cannot accurately plan the timing of 
> the snapshot. Is there anything I can do in the application to reduce this 
> shutter lag variability? (In this application, the mean lag can be any 
> duration but the standard deviation must be small ... much smaller than the 
> 0.5 s standard deviation I am seeing.) I'm hoping someone has a clever 
> suggestion. If I don't get any suggestions, I'll post a feature request in 
> the Android bug tracker.
>
> I've posted the same question (and showing a histogram of camera shutter 
> lag times) at
>
>
> http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag
>
> Thanks! -- Greg
>

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

[android-developers] Re: Android pics inverted when taking with front camera (started via intent)

2012-07-30 Thread bob
 

I believe I have seen it flipped horizontally in the camera app on my Ice 
Cream Sandwich.


If I was coding, I would just flip it again horizontally to get it back to 
normal.


Or, I would just ignore it as most people are taking pictures of their 
faces, which are usually somewhat symmetric.



On Monday, July 30, 2012 9:12:47 AM UTC-5, user123 wrote:
>
> Uhm... don't remember. Is there a solution for any of the cases? I'll 
> check it again.
>
>
> On Monday, July 30, 2012 3:50:52 PM UTC+2, bob wrote:
>>
>> Rotated 180 degrees or flipped horizontally?  The latter seems more 
>> probable.
>>
>> On Monday, July 30, 2012 7:59:02 AM UTC-5, user123 wrote:
>>>
>>> I have the same problem described here: Android Front Facing Camera 
>>> Taking Inverted 
>>> Photos
>>>
>>> What's different in my case is that I'm starting the camera app via 
>>> intent, not implementing it myself. So probably no way to use CameraInfo or 
>>> the like. How can I solve this?
>>>
>>> In order to summarize: When starting camera via intent and take the 
>>> picture using front camera, the returned bitmap is rotated by 180°.
>>>
>>

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

[android-developers] Camera and Voice Search not working after install ICS 4.0.3 to XOOM

2012-07-30 Thread fan zhang
All:


I compiled  ICS 4.0.3 and installed ICS platform to XOOM  (wingray).

I found that camera does not work (Camera error CAn't connect to the
camera) .

Also Voice Search does not work.


Does anyone experience  same problems and how to resolve those issues?


Thanks


Fan

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

Re: [android-developers] Warning at hello world program

2012-07-30 Thread Rafael Maas
is good practice to set the strings inside the file string.xml.
http://developer.android.com/guide/topics/resources/string-resource.html

2012/7/30 Francisco Marzoa 

> If you do not care about l10n, you can just ignore it. Also I think you
> can configure lint to not warn on such issues.
> El 29/07/2012 21:39, "Edlialbanian"  escribió:
>
> Hi guys i'm new here and i'm getting a warning i my firt app .
>> I get thir error
>> [I18N] Hardcoded string "Welcome", should use @string resource
>>
>> what should i do ??
>>
>> thanks in advance
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: Landscape

2012-07-30 Thread bob
 

Sounds like you probably named a widget differently in the landscape, so 
your findViewById is returning null.

On Monday, July 30, 2012 1:48:00 PM UTC-5, Ehsan Sadeghi wrote:
>
> I have layout and layout-land in my app and in both have a file is named 
> realstate.xml, in portrait everything is ok, but in landscape application 
> stops by following error :
> 07-30 18:29:51.186: D/gralloc_goldfish(659): Emulator without GPU 
> emulation detected.
> 07-30 18:29:53.757: D/InputEventConsistencyVerifier(659): KeyEvent: 
> ACTION_UP but key was not down.
> 07-30 18:29:53.757: D/InputEventConsistencyVerifier(659):   in 
> android.view.ViewRootImpl@4121ca30
> 07-30 18:29:53.757: D/InputEventConsistencyVerifier(659):   0: sent at 
> 13800500, KeyEvent { action=ACTION_UP, keyCode=KEYCODE_DPAD_CENTER, 
> scanCode=232, metaState=0, flags=0x8, repeatCount=0, eventTime=138005, 
> downTime=137916, deviceId=0, source=0x301 }
> 07-30 18:30:11.055: D/dalvikvm(659): GC_CONCURRENT freed 163K, 4% free 
> 8251K/8519K, paused 46ms+5ms, total 280ms
> 07-30 18:30:12.105: I/Choreographer(659): Skipped 48 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:30:16.055: I/Choreographer(659): Skipped 44 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:30:36.579: I/Choreographer(659): Skipped 41 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:30:42.605: I/Choreographer(659): Skipped 30 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:30:55.867: I/Choreographer(659): Skipped 39 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:31:15.974: I/Choreographer(659): Skipped 41 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:31:20.456: I/Choreographer(659): Skipped 51 frames!  The 
> application may be doing too much work on its main thread.
> 07-30 18:32:11.687: D/AndroidRuntime(659): Shutting down VM
> 07-30 18:32:11.687: W/dalvikvm(659): threadid=1: thread exiting with 
> uncaught exception (group=0x40a13300)
> 07-30 18:32:11.716: E/AndroidRuntime(659): FATAL EXCEPTION: main
> 07-30 18:32:11.716: E/AndroidRuntime(659): java.lang.RuntimeException: 
> Unable to start activity 
> ComponentInfo{ir.smspeik.sms/ir.smspeik.sms.Realstate}: 
> java.lang.NullPointerException
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3512)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread.access$700(ActivityThread.java:130)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.os.Handler.dispatchMessage(Handler.java:99)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.os.Looper.loop(Looper.java:137)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> java.lang.reflect.Method.invokeNative(Native Method)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> java.lang.reflect.Method.invoke(Method.java:511)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> dalvik.system.NativeStart.main(Native Method)
> 07-30 18:32:11.716: E/AndroidRuntime(659): Caused by: 
> java.lang.NullPointerException
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> ir.smspeik.sms.Realstate.onCreate(Realstate.java:24)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.Activity.performCreate(Activity.java:5008)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  at 
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
> 07-30 18:32:11.716: E/AndroidRuntime(659):  ... 12 more
> 07-30 18:32:16.056: D/gralloc_goldfish(688): Emulator without GPU 
> emulation detected.
>

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

[android-developers] Re: Is it possible to reduce the variability of camera shutter lag time?

2012-07-30 Thread greg
Thanks Richard. Setting the focus to Camera.Parameters.FOCUS_MODE_INFINITY 
helped as shown in the added histogram at 
http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag

At the risk of sounding like an ingrate, do you have any ideas on how to 
reduce the variability even more? (A range of 0.2 s still covers a large 
portion of the periodic motion.)

-- Greg

On Monday, July 30, 2012 3:05:50 PM UTC-4, RichardC wrote:
>
> Could it be related to auto-focus? Try turning it off.
>
> On Monday, July 30, 2012 7:55:52 PM UTC+1, greg wrote:
>>
>> Given a known periodic motion (e.g., walking), I'd like to take a full 
>> resolution snapshot at the same point in the motion (i.e., the same time 
>> offset within different periods). However on the Nexus S (currently running 
>> OS 4.1.1 but the same was true of previous OS versions), I'm seeing so much 
>> variability in the shutter lag that I cannot accurately plan the timing of 
>> the snapshot. Is there anything I can do in the application to reduce this 
>> shutter lag variability? (In this application, the mean lag can be any 
>> duration but the standard deviation must be small ... much smaller than the 
>> 0.5 s standard deviation I am seeing.) I'm hoping someone has a clever 
>> suggestion. If I don't get any suggestions, I'll post a feature request in 
>> the Android bug tracker.
>>
>> I've posted the same question (and showing a histogram of camera shutter 
>> lag times) at
>>
>>
>> http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag
>>
>> Thanks! -- Greg
>>
>

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

Re: [android-developers] Receive sms

2012-07-30 Thread Gergely Juhász
Remove exported=false from everywhere.

On 30 July 2012 20:44, Ehsan Sadeghi  wrote:
> I write this code in manifest file :
>  android:minSdkVersion="8"
> android:targetSdkVersion="15" />
>
>  android:icon="@drawable/ic_launcher"
> android:label="@string/app_name"
> android:theme="@style/AppTheme" >
>  android:name=".MainActivity"
> android:label="@string/title_activity_main" >
> 
> 
> 
> 
> 
>  android:name=".Realstate"
> android:exported="false"
>android:label="@string/title_activity_main" >
> 
> 
> 
> 
>  android:exported="false">
> 
>  android:name="android.provider.Telephony.SMS_RECEIVED">
> 
> 
>
> 
> 
>
> and this code in ReceiveSms :
>
> package
>
> ir.smspeik.sms;
>
> import
>
> android.content.BroadcastReceiver;
>
> import
>
> android.content.Context;
>
> import
>
> android.content.Intent;
>
> import
>
> android.os.Bundle;
>
> import
>
> android.telephony.SmsMessage;
>
> import
>
> android.widget.Toast;
>
> public
>
> class ReceiveSms extends BroadcastReceiver{
>
> @Override
>
> public void onReceive(Context context, Intent intent)
>
> {
>
> //---get the SMS message passed in---
>
> Bundle bundle = intent.getExtras();
>
> SmsMessage[] msgs =
>
> null;
>
> String str =
>
> "";
>
> if (bundle != null)
>
> {
>
> //---retrieve the SMS message received---
>
> Object[] pdus = (Object[]) bundle.get(
>
> "pdus");
>
> msgs =
>
> new SmsMessage[pdus.length];
>
> for (int i=0; i
> msgs[i] = SmsMessage.createFromPdu((
>
> byte[])pdus[i]);
>
> str +=
>
> "SMS from " + msgs[i].getOriginatingAddress();
>
> str +=
>
> " :";
>
> str += msgs[i].getMessageBody().toString();
>
> str +=
>
> "\n";
>
> }
>
> //---display the new SMS message---
>
> Toast.makeText(context, str, Toast.
>
> LENGTH_LONG).show();
>
> }
>
> }
>
> }
>
> but when I send sms to emulator the application doesn't receive it and
> builtin messaging get sms.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Phone can't download my app

2012-07-30 Thread Toby

My company has an app out there that clients use.  A co-worker
discovered that his Galaxy SII can't find the app in the play store.
He did put cyanogen mod 9 on it.  Could this cause a problem?

My app only requires android 2.2.  I require these permissions:

Phone calls
Network communication
Hardware Controls
Your personal information
Hardware controls.

I'm sure the SII has the features that it needs, but I wasn't
sure whether these requirements could cause an app not to show
up on certain phones.

Thanks,

Tobiah

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


[android-developers] Re: Native stack trace on ICS?

2012-07-30 Thread bob
 

Why not just have your native code log to a file on the SD card like 
/mnt/sdcard/native.log?



On Monday, July 30, 2012 1:56:58 PM UTC-5, Kevin Kowalewski wrote:
>
> Hi all,
>
> It looks like there is no way to get the native stack trace on ICS...? I 
> have 4 phones here all running ICS and enabling log.redirect-stdio does not 
> output a native stack trace like I did on GB...
>
> How can this be possible, Google can't be serious. How are we supposed to 
> debug native applications without having GDB connected continuously. 
>
> Thanks,
> Kevin
>

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

[android-developers] Re: Phone can't download my app

2012-07-30 Thread Chrystian Vieyra
Perhaps something on the Build.prop that CyanogenMod uses is causing the 
app not being compatible with the phone, why don't you check the build.prop 
file? 

Have you checked the android developer console to see if you have any users 
with a galaxy SII?
 


On Monday, July 30, 2012 4:33:48 PM UTC-5, Tobiah wrote:
>
> My company has an app out there that clients use.  A co-worker 
> discovered that his Galaxy SII can't find the app in the play store. 
> He did put cyanogen mod 9 on it.  Could this cause a problem? 
>
> My app only requires android 2.2.  I require these permissions: 
>
> Phone calls 
> Network communication 
> Hardware Controls 
> Your personal information 
> Hardware controls. 
>
> I'm sure the SII has the features that it needs, but I wasn't 
> sure whether these requirements could cause an app not to show 
> up on certain phones. 
>
> Thanks, 
>
> Tobiah 
>

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

[android-developers] Re: How to change orientation sensor polling period in Android?

2012-07-30 Thread bob
You might want to look at this for the accelerometer sensor:

public boolean registerListener (SensorEventListener listener, Sensor 
sensor, int rate)
Since: API Level 3
Registers a SensorEventListener for the given sensor.
Parameters
listener
A SensorEventListener object.
sensor
The Sensor to register to.
rate
The rate sensor events are delivered at. This is only a hint to the system. 
Events may be received faster or slower than the specified rate. Usually 
events are received faster. The value must be one of SENSOR_DELAY_NORMAL, 
SENSOR_DELAY_UI, SENSOR_DELAY_GAME, or SENSOR_DELAY_FASTEST or, the desired 
delay between events in microsecond.
Returns
true if the sensor is supported and successfully enabled.


You can use SENSOR_DELAY_FASTEST.

On Saturday, July 28, 2012 4:19:14 PM UTC-5, Prem wrote:
>
> I just want to change the orientation sensor polling period in android. 
> The current polling period is 40ms.

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

Re: [android-developers] Re: Native stack trace on ICS?

2012-07-30 Thread Kevin Kowalewski
And just log every single thing the native code does? What happened to the
native stack trace in ICS?

On Mon, Jul 30, 2012 at 5:57 PM, bob  wrote:

> Why not just have your native code log to a file on the SD card like
> /mnt/sdcard/native.log?
>
>
>
> On Monday, July 30, 2012 1:56:58 PM UTC-5, Kevin Kowalewski wrote:
>>
>> Hi all,
>>
>> It looks like there is no way to get the native stack trace on ICS...? I
>> have 4 phones here all running ICS and enabling log.redirect-stdio does not
>> output a native stack trace like I did on GB...
>>
>> How can this be possible, Google can't be serious. How are we supposed to
>> debug native applications without having GDB connected continuously.
>>
>> Thanks,
>> Kevin
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Subscribe

2012-07-30 Thread chanakyabharathi

Sent from my BlackBerry® smartphone from !DEA

-Original Message-
From: Rafael Maas 
Sender: android-developers@googlegroups.com
Date: Mon, 30 Jul 2012 17:13:22 
To: 
Reply-To: android-developers@googlegroups.com
Subject: Re: [android-developers] Warning at hello world program

is good practice to set the strings inside the file string.xml.
http://developer.android.com/guide/topics/resources/string-resource.html

2012/7/30 Francisco Marzoa 

> If you do not care about l10n, you can just ignore it. Also I think you
> can configure lint to not warn on such issues.
> El 29/07/2012 21:39, "Edlialbanian"  escribió:
>
> Hi guys i'm new here and i'm getting a warning i my firt app .
>> I get thir error
>> [I18N] Hardcoded string "Welcome", should use @string resource
>>
>> what should i do ??
>>
>> thanks in advance
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

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

[android-developers] AutoCompleteTextView cursor position.

2012-07-30 Thread Lakshman Bana
Hi Everyone,

I'm having a very simple issue i.e. the cursor goes to the front of
the text when item is selected from my ArrayList in emulator.

here is the sample code:

SimpleAdapter sa = new SimpleAdapter(this, myArrayList,
R.layout.contacts, new String[] { "name", "number" }, new int [] {
R.id.name, R.id.num });
myAutoText.setAdapter(sa);
myAutoText.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView parent, View v, int pos, long id) {
String num = myArrayList.get(pos).get("NUM");
myAutoText.dismissDropDown();
myAutoText.setText(num);
myAutoText.performCompletion();
}
}

And still I see cursor is positioned at start of the text in TextBox
and dropdown is shown with selected item.

Minimum API selected is 9.

Thanks in advance.
Lakshman

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


[android-developers] Re: AutoCompleteTextView cursor position.

2012-07-30 Thread Lakshman Bana
Forgot to mention one more thing: I also added an attribute
"android:imeOptions="actionNext" in xml file.


On Mon, Jul 30, 2012 at 7:04 PM, Lakshman Bana  wrote:
> Hi Everyone,
>
> I'm having a very simple issue i.e. the cursor goes to the front of
> the text when item is selected from my ArrayList in emulator.
>
> here is the sample code:
>
> SimpleAdapter sa = new SimpleAdapter(this, myArrayList,
> R.layout.contacts, new String[] { "name", "number" }, new int [] {
> R.id.name, R.id.num });
> myAutoText.setAdapter(sa);
> myAutoText.setOnItemClickListener(new OnItemClickListener() {
> public void onItemClick(AdapterView parent, View v, int pos, long id) {
> String num = myArrayList.get(pos).get("NUM");
> myAutoText.dismissDropDown();
> myAutoText.setText(num);
> myAutoText.performCompletion();
> }
> }
>
> And still I see cursor is positioned at start of the text in TextBox
> and dropdown is shown with selected item.
>
> Minimum API selected is 9.
>
> Thanks in advance.
> Lakshman

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


[android-developers] how to protect sqllite database source file in android app from Decompilation

2012-07-30 Thread Ahmed Alsayadi
   while intilization sqllite database in android there are some technique
to encrypt the data like sqllitecipher jar ,  but the problem if someone
de-compile my app that have the source database under folder
.../assist/databasename.sqllite, any one have an idea how to solve this
problem?

by the way while iam writing this question i got an idea which is to
initialize the database directly from  my won server , any other solutions
if i attach my database file to the apk file?

-- 
Best Regards!
==
Ahmed M.A. Alsayadi
Tsinghua University,Beijing, China
Tel:0086-13141351535

==

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

Re: [android-developers] how to protect sqllite database source file in android app from Decompilation

2012-07-30 Thread Mark Murphy
You cannot stop a sufficiently dedicated user from accessing any data
in your app.

On Mon, Jul 30, 2012 at 7:21 PM, Ahmed Alsayadi  wrote:
>while intilization sqllite database in android there are some technique
> to encrypt the data like sqllitecipher jar ,  but the problem if someone
> de-compile my app that have the source database under folder
> .../assist/databasename.sqllite, any one have an idea how to solve this
> problem?
>
> by the way while iam writing this question i got an idea which is to
> initialize the database directly from  my won server , any other solutions
> if i attach my database file to the apk file?
>
> --
> Best Regards!
> ==
> Ahmed M.A. Alsayadi
> Tsinghua University,Beijing, China
> Tel:0086-13141351535
>
> ==
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

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

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


Re: [android-developers] how to protect sqllite database source file in android app from Decompilation

2012-07-30 Thread Ahmed Alsayadi
thats very scary in android,  but i think initiate  the database from my
won server with encryption should work fine, i will try it

On Tue, Jul 31, 2012 at 7:30 AM, Mark Murphy wrote:

> You cannot stop a sufficiently dedicated user from accessing any data
> in your app.
>
> On Mon, Jul 30, 2012 at 7:21 PM, Ahmed Alsayadi 
> wrote:
> >while intilization sqllite database in android there are some
> technique
> > to encrypt the data like sqllitecipher jar ,  but the problem if someone
> > de-compile my app that have the source database under folder
> > .../assist/databasename.sqllite, any one have an idea how to solve this
> > problem?
> >
> > by the way while iam writing this question i got an idea which is to
> > initialize the database directly from  my won server , any other
> solutions
> > if i attach my database file to the apk file?
> >
> > --
> > Best Regards!
> > ==
> > Ahmed M.A. Alsayadi
> > Tsinghua University,Beijing, China
> > Tel:0086-13141351535
> >
> > ==
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.8 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Best Regards!
==
Ahmed M.A. Alsayadi
Tsinghua University,Beijing, China
Tel:0086-13141351535

==

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

Re: [android-developers] how to protect sqllite database source file in android app from Decompilation

2012-07-30 Thread Mark Murphy
On Mon, Jul 30, 2012 at 7:36 PM, Ahmed Alsayadi  wrote:
> thats very scary in android

It's pretty much the same for all operating systems.

>  but i think initiate  the database from my won
> server with encryption should work fine, i will try it

Just bear in mind that if your code can decrypt your database, so can
anyone else who wishes to try.

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

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

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


[android-developers] Multicolumn Listview using SimpleAdapter not displaying data

2012-07-30 Thread billb
I am building an "About" dialog that will appear as a PreferenceFragment in 
my application.  I believe I have everything "wired" properly as I'm 
getting a toast comment when I load my About preference fragement, however, 
the data I load in my SimpleAdapter doesn't appear.  Below are my various 
code bits that should help.  
 
I am quite new to Android development, so if you have other ideas about how 
I can go about achieving my goals (a multicolumn listview to display 
information about the application (company, version, etc.), then please let 
me know where I can go to get examples, etc.
 
Thanks in Advance!!! 
B.
 
preference_header.xml
~~




...





 
about_list_view.xml
~~~
 

http://schemas.android.com/apk/res/android"; 
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" > 

 
 

 

 
AboutFragment.java

public class AboutFragment extends PreferenceFragment 
{  
public AboutFragment() 
{ 
} 

@Override 
public void onCreate(Bundle aSavedState) 
{ 
   super.onCreate(aSavedState); 
   Context anAct = getActivity().getApplicationContext(); 
   Toast.makeText(anAct, "About!", Toast.LENGTH_SHORT).show(); 
 } //onCreate 

@Override 
public View onCreateView(LayoutInflater inflater, ViewGroup container, 
Bundle savedInstanceState) 
{ 
   View v = inflater.inflate(R.layout.about_list_view, null); 
   ListView viewAboutList = (ListView)v.findViewById(R.id.ABOUT_LIST); 
   ArrayList> aboutList = new 
ArrayList>();
   HashMap map = new HashMap(); 
   map.put("title", "Version"); 
   map.put("content", "1.0"); 
   aboutList.add(map); 
   map = new HashMap(); 
   map.put("title", "Company"); 
   map.put("content", "Red Wagon Software"); 
   aboutList.add(map); 

   SimpleAdapter aboutAdapter = new 
SimpleAdapter(getActivity().getApplicationContext() , aboutList , 
R.layout.about_row_view, 
   new String[] {"title", "content"}, new int[] {R.id.aboutTitle, 
R.id.aboutContent}); 
   viewAboutList.setAdapter(aboutAdapter); 

   return v; 
} 


} //class AboutFragment

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

Re: [android-developers] Re: Phone can't download my app

2012-07-30 Thread Tobiah

On 7/30/2012 3:13 PM, Chrystian Vieyra wrote:

Perhaps something on the Build.prop that CyanogenMod uses is causing the
app not being compatible with the phone, why don't you check the
build.prop file?

Have you checked the android developer console to see if you have any
users with a galaxy SII?


It sounds like you are giving me sage advice, but I don't follow
you immediately.  Your terms are over my head.  I'll Google them
tomorrow at work, but in the mean time, if you can elaborate on
what a build.prop file is, as well as the 'android developer console',
I'd be appreciative.

Thanks!

Tobiah


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


Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-30 Thread Dianne Hackborn
On Mon, Jul 30, 2012 at 10:59 AM, bob  wrote:

> *“640K ought to be enough for anyone”*
>
Um, no.  There is nothing similar to these two things.

Our limit is: "devices don't have an infinite amount of RAM, applications
must be written to live within the available RAM on the device."

In fact the RAM limit for applications has been steadily increasing over
time, and we don't have an upper limit on it that we think is the maximum
we will ever need.

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

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

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

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-30 Thread Dianne Hackborn
Btw, I love how more and more I see people dragging out this quote every
time they encounter some limit that they have to deal with, as if there
should just not be limits on the resources they can use.

On Mon, Jul 30, 2012 at 5:50 PM, Dianne Hackborn wrote:

> On Mon, Jul 30, 2012 at 10:59 AM, bob  wrote:
>
>> *“640K ought to be enough for anyone”*
>>
> Um, no.  There is nothing similar to these two things.
>
> Our limit is: "devices don't have an infinite amount of RAM, applications
> must be written to live within the available RAM on the device."
>
> In fact the RAM limit for applications has been steadily increasing over
> time, and we don't have an upper limit on it that we think is the maximum
> we will ever need.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>


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

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

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

Re: [android-developers] how to protect sqllite database source file in android app from Decompilation

2012-07-30 Thread lbendlin
Don't bother with the database. Keeping some of the data on the server is 
more useful, especially if your data ages quickly. Ship with a sample data 
set, and then tightly control (and watermark) the data that the users can 
download through the app.

On Monday, July 30, 2012 7:36:17 PM UTC-4, Ahmed wrote:
>
> thats very scary in android,  but i think initiate  the database from my 
> won server with encryption should work fine, i will try it 
>
> On Tue, Jul 31, 2012 at 7:30 AM, Mark Murphy wrote:
>
>> You cannot stop a sufficiently dedicated user from accessing any data
>> in your app.
>>
>> On Mon, Jul 30, 2012 at 7:21 PM, Ahmed Alsayadi  
>> wrote:
>> >while intilization sqllite database in android there are some 
>> technique
>> > to encrypt the data like sqllitecipher jar ,  but the problem if someone
>> > de-compile my app that have the source database under folder
>> > .../assist/databasename.sqllite, any one have an idea how to solve this
>> > problem?
>> >
>> > by the way while iam writing this question i got an idea which is to
>> > initialize the database directly from  my won server , any other 
>> solutions
>> > if i attach my database file to the apk file?
>> >
>> > --
>> > Best Regards!
>> > ==
>> > Ahmed M.A. Alsayadi
>> > Tsinghua University,Beijing, China
>> > Tel:0086-13141351535
>> >
>> > ==
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to 
>> android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> _The Busy Coder's Guide to Android Development_ Version 3.8 Available!
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> -- 
> Best Regards!
> ==
> Ahmed M.A. Alsayadi
> Tsinghua University,Beijing, China 
> Tel:0086-13141351535
>
> ==
>
>  

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

Re: [android-developers] Set bounds for one layer of LayerDrawable?

2012-07-30 Thread Dianne Hackborn
No, the bounds are where the drawable will actually render itself.  If you
want two different bounds, that should technically be two different
drawables.

If you need to have this all in one drawable, the only option I can think
of is to make your own subclass of Drawable that computes the different
bounds as you want them.

On Mon, Jul 30, 2012 at 9:44 AM, Jonathan Koren  wrote:

> I'm creating a custom View that looks like a horizontal ProgressBar but
> doesn't always have to touch the left edge. My approach is to use a
> LayerDrawable in which one layer uses different bounds (computed at run
> time). The attachement shows expected (top) versus actual (bottom) results.
>
> From what I can tell, setting the bounds for one layer also sets the
> bounds for the entire LayerDrawable. The code in the custom View is
> essentially this:
>
> int left, top, right, bottom;
> /*... do some math ... */
> Drawable d = mDrawable.findDrawableByLayerId(R.id.custom_layer_id);
> d.setBounds(left, top, right, bottom);
>
>
> Meanwhile, the xml for the drawable is this:
>
> http://schemas.android.com/apk/res/android"; >
>
>  
>
>  
>
>  
>
>  
>
>  
>
> 
>  android:id="@id/custom_layer_id"
>
>  android:drawable="@drawable/test_gradient"/>
>
> 
>
>
> Can I set bounds for an individual layer without affecting the other
> layers? If not, what can I do to get around this issue?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




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

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

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

  1   2   >