[android-developers] Position the bottom bar on side?

2012-09-11 Thread limtc
Hi,

I noticed that some apps in Nexus 7 - when in landscape mode - keep the 
bottom bar on side (as if it is still in portrait mode). 

How to keep the bottom bar on side so that I can increase the vertical 
space in landscape mode? Thanks!

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

[android-developers] Re: Android & Google play -- (official/unofficial) position on external (bluetooth/usb) based sensors

2012-09-11 Thread falcon74


On Tuesday, September 11, 2012 11:37:22 AM UTC+5:30, RichardC wrote:
>
> Does  with require=false, cover your use-case?
>
> http://developer.android.com/guide/topics/manifest/uses-feature-element.html 
>
 
Yes, "android.hardware.location.gps" for instance.
 

> On Tuesday, September 11, 2012 6:56:40 AM UTC+1, falcon74 wrote:
>>
>> Wondering if anyone has come across an official (or unofficial) 
>> statement/stand regarding Android (SDK) and Google-Play, regarding apps 
>> using external sensors, e.g. bluetooth or USB based ones.
>>
>> My experience based on attempt at installing several apps, that require 
>> GPS, is that Google-play refuses the apps to be installed on devices, that 
>> it recognizes as not having in-built GPS. I faced the similar problem with 
>> magnetic field-strength sensor apps, when device doesn't have the 
>> capability. However, I see lot of practical situations where such 
>> capabilities can be brought by external sensors. 
>>
>>
>>

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

2012-09-11 Thread Swap
I am also looking for same solution..
Thank you for information.
can you please share your working code .please 
thank you

On Sunday, 20 June 2010 05:34:19 UTC+2, Gabriel Simões wrote:
>
> Thanks, 
> Works as expected! 
>
> On 16 jun, 05:31, a2ronus  wrote: 
> > 1. Register a BroadcastReceiver that listens for a specific Intent. 
> > 2. When the user clicks on the Notification, the PendingIntent will be 
> > launched. You can put extra's in this Intent. You can use the extra's 
> > to determine which method will be launched in the Service. 
> > 
> > Good luck, a2ronus 
> > 
> > On Jun 16, 1:12 am, Gabriel Simões  wrote: 
> > 
> > 
> > 
> > > any ideas on this one? 
> > 
> > > tnx 
> > 
> > > On 14 jun, 21:33, Gabriel Simões  wrote: 
> > 
> > > > I need to send it to a service. 
> > 
> > > > How can a notification message start an specific action (method) on 
> a 
> > > > service? is that possible (for example ... a service downloading a 
> > > > file would stop the download as the user clicks on the 
> > > > notification)? 
> > 
> > > > tnx 
> > 
> > > > On 14 jun, 00:21, Kumar Bibek  wrote: 
> > 
> > > > > Broadcast will only work if your activity is in the foreground. If 
> > > > > your activity is not yet started, you can however start it with 
> > > > > specific data passed via bundle and in the onCreate() do specific 
> > > > > task. 
> > 
> > > > > If your activity is currently in the foreground, you need to 
> listen to 
> > > > > broadcasts. 
> > 
> > > > > Thanks and Regards, 
> > > > > Kumar Bibek 
> > 
> > > > > On Jun 14, 6:17 am, Gabriel Simões  wrote: 
> > 
> > > > > > Hello, 
> > 
> > > > > > I´ve been searching a way to implement an intent so when a user 
> clicks 
> > > > > > on a notification, an specific method from an activity is 
> executed (or 
> > > > > > an specific behavior happens). 
> > > > > > Right now I´m thinking about using broadcast but I don´t know if 
> this 
> > > > > > is the best way to implement this functionality. 
> > > > > > How would you implement it? 
> > 
> > > > > > Thanks, 
> > > > > > Gabriel

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Unknown application a large number of SMS messages are being sent. Select "OK" to continue, or "Cancel" to stop sending

2012-09-11 Thread Mark Murphy
Replying to the group,, where this belongs.

On Mon, Sep 10, 2012 at 11:03 PM, Corby Campbell  wrote:
> It's likely none of you read this thread anymore... but I tried googling
> setting up a server gateway to send bulk SMS, and all I could find is paid
> services.

I am not aware that it is possible to just set up a server gateway. I
presume that the paid services have direct hooks into the telco
networks in order to deliver the SMSes.

> I'm in charge of sending out notifications of activities to a group of 150
> people. I've started using apps on my T-Mobile Nexus S, but I get the
> Deny/Allow box this thread started with mentioning. Looks like I might have
> to root my phone to get around it, but I'd rather not if I can help it. If
> setting up a server gateway is some sort of free possibility I'd rather do
> that, since it would mean I could allow others to send notifications too.
> Any suggestions of where to look? Note I finished a Bachelors of Computer
> Science so I can understand technical stuff if pointed in the right
> direction, I just don't have any personal experience in this area as of yet
> :)

Send out 75. Wait an hour. Send out 75.

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

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

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


[android-developers] Save Sms in Custom Inbox

2012-09-11 Thread Ehsan Sadeghi


I have a broadcastreceiver and after receive sms, I abort the receiver so 
the sms doesn't go to inbox. I want to have a custom inbox in my app to 
users can see last 20 received sms in it. I use adapter to view inbox but 
only saved smss are shown and my app sms are lost. How can I handle those?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 & Google play -- (official/unofficial) position on external (bluetooth/usb) based sensors

2012-09-11 Thread Mark Murphy
On Tue, Sep 11, 2012 at 1:56 AM, falcon74  wrote:
> Wondering if anyone has come across an official (or unofficial)
> statement/stand regarding Android (SDK) and Google-Play, regarding apps
> using external sensors, e.g. bluetooth or USB based ones.

AFAIK, Android does not support external sensors. While it may be
possible at the ADK level to cook up your own support for them, you
cannot deliver the results through the standard SDK mechanisms, so no
apps using such sensors would be able to use that data. Hence, the
Play Store filtering is based on what SDK apps would be expecting --
it is less of an issue of "does the device have a magnetic field
sensor" and one of "does the device have a magnetic field sensor that
works with SensorManager"?

Now, if in some future era, Android supports external sensors, Play
Store filtering will hopefully change to match.

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

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

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


[android-developers] Need License related information...

2012-09-11 Thread Vaibhav Singh
Hi All,

I am working on one messaging  type application, I am using MMS application 
source code available at Github website (
https://github.com/android/platform_packages_apps_mms) as a base code and I 
am enhancing some feature in this existing source code, for this I would 
like to know that is there any licensing issue with this or I can use this 
code without any issue and also distribute it's applications.


Thanks & Regards
Vaibhav Singh

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

2012-09-11 Thread piyush gupta
Hi BabaSaheb,

I want to do similar kind of work with my Android ICS 4.0 tablet.

I want to make a Hit on a HTTP server(not on HTTPS) server , and I want the 
server to authenticate my device with a client Authentication certificate 
installed on it. The certificate must be installed on client device and 
only then the server should allow the user to browse further or else the 
server should not fulfill the request.

I have generated my own CSR and made it signed by a CA authority and have a 
CA certificate and a client certificate but I am not able to use these 
certificates to make a successful hit on my server .

Any piece of advice or solution will of great help to me . I have searched 
a lot on google and find nothing useful to my requirements.


On Tuesday, February 23, 2010 12:35:18 PM UTC+5:30, Babasaheb wrote:
>
> Hi,
>
> I want to connect to a server using ssl/https connection. During
> handshake between client and the server, I want to have server
> certificate authentication as well as client certificate
> authentication. The server certificate authentication is successful.
> But I don't know how to send client certificate to server for
> authentication, during the handshake.
> Can anybody please provide some tutorial for the same?
>
> Thanks,
> Babasaheb
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Fwd: I had android doubt please go to link and give your suggestions.

2012-09-11 Thread Siva Kumar
-- Forwarded message --
From: Siva Kumar 
Date: Tue, Sep 11, 2012 at 5:23 PM
Subject: I had android doubt please go to link and give your suggestions.
To: SIVA FAMILY MEMBERS , KARNATAKA
SANGHA SCHOOL FRIENDS ,
SRM FRIENDS , sairam friends <
sairam_frie...@googlegroups.com>, SURESH KUMAR-TRACE TECHNOLOGY FRIEND <
sureshmeno...@gmail.com>, saravanan mohan - trace technology friend <
sara5...@gmail.com>, RAMKUMAR RTBI , THAMARAI KANNI
- RTBI FRIEND , ayan - rtbi friend <
ayyandur...@gmail.com>, ANNAI - RTBI FRIEND ,
SARAVANA RTBI FRIEND , ANISHA - RTBI FIEND <
stephenmeg...@gmail.com>, SARAVANAN RTBI ,
VIJI - INVICTUS FRIEND 


Dear All,

I had android doubt please go2 link and give ur ideas

http://stackoverflow.com/q/12369062/385138

-- 
*Thanks & Regards,
Sivakumar.J*




-- 
*Thanks & Regards,
Sivakumar.J*

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Difference between teh service manager and system server!

2012-09-11 Thread s.rawat
Hi ,
Can some one Plz throw clear light on the difference between the
system server and the service manager in the Android Framework.
Thanks and Rgds,
Softy

-- 
"..pain is temporary.quitting lasts forever."
 My Blog "

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Difference between teh service manager and system server!

2012-09-11 Thread Parthi K
never think huh

On Tue, Sep 11, 2012 at 5:33 PM, s.rawat  wrote:

> Hi ,
> Can some one Plz throw clear light on the difference between the
> system server and the service manager in the Android Framework.
> Thanks and Rgds,
> Softy
>
> --
> "..pain is temporary.quitting lasts forever."
>  My Blog "
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Hardkeyboard Alt & Shift cursor indicators

2012-09-11 Thread SG
Hi,

This is regarding Input Method Service with Hard keyboard.

Initially I used get Cursor indicators in the editor field based on Alt on/ 
off/ lock and Shift on/ off/ lock states on 2.3.3 SDK. Later when I 
executed the same piece of code on 4.0.3 SDK, I am not able to get Cursor 
indicators.

Can anyone know how to get cursor indicators in 4.0.3 SDK or Does the 
Android framework has removed the cursor indicators in 4.0.3 ?

Thanks,
SG

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

2012-09-11 Thread pharaoh
Try this solution :
(...)
int age = 22;
Log.d(MY_TAG, new Integer(age).toString());
(...)

Segunda-feira, 10 de Setembro de 2012 13:22:47 UTC+1, mohammed Nuhail 
escreveu:
>
> How to print integer value in LogCat ?
>

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

2012-09-11 Thread gaurav jain
I am working on Contact aggregation part of Contact provider. I am a 
beginner, so facing some simple problems in understanding aggregation. Can 
someone cite an example where raw contacts are aggregated (please don't 
give the description regarding the similarity of raw contacts etc). I just 
want a concrete example (like how 2 different google and facebook accounts 
are aggregated based on similarity of data, and how can I do the same on 
phone). 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: print integer value in logcat.

2012-09-11 Thread Jan Burse

Raghav Sood schrieb:

Why would you use that when you have a perfectly working LogCat class?

What's wrong with Log.i("value =" + intName);?

Raghav Sood
Sent from my Galaxy Nexus



Nothing wrong, except that it will not compile.

I guess you would need to put:

Log.i(TAG, "value =" + intName);

Bye

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

2012-09-11 Thread Edvinas Kilbauskas
Oh my gosh! Thank you! You just made my day. Now I finally understand it! 
:))) Thanks thanks thanks! I can't say how much I thank you my smart man :)

2012 m. rugsėjis 10 d., pirmadienis 12:03:54 UTC+3, jb rašė:
>
> Harri Sm�tt schrieb: 
> > That's not true. Android supports basic Java Threads and there's no 
> > reason for not to use them when appropriate. But the thing is, you can 
> > not alter UI components outside of UI Thread. In your case it would be 
> > updating the textual contents of TextView. See method named 
> > runOnUiThread , it gives easy access for executing UI code from Threads. 
>
> Thanks, I guess runOnUiThread() corresponds to the 
> SwingUtilities invokeLater(), plus some smarts to bypass 
> posting if already in UiThread (*). 
>
> I guess there are situations where the smarts is not needed 
> and where one wants a invokeAndWait(). I built myself 
> AndroidUtilties which provide the later. The code reads 
> as follows: 
>
> public class AndroidUtilities { 
>
>  public static void invokeLater(View v, Runnable r) { 
>  if (!v.post(r)) 
>  throw new RuntimeException("looper missing"); 
>  } 
>
>  public static void invokeAndWait(View v, Runnable r) 
>  throws InterruptedException { 
>  WaitAdapter wa = new WaitAdapter(r); 
>  AndroidUtilities.invokeLater(v, wa); 
>  wa.doneJob(); 
>  } 
>
> } 
>
> class WaitAdapter implements Runnable { 
>  private Runnable job; 
>  private volatile boolean donejob; 
>  private final Object donelock = new Object(); 
>
>  WaitAdapter(Runnable j) { 
>  job = j; 
>  } 
>
>  public void run() { 
>  job.run(); 
>  synchronized (donelock) { 
>  donejob = true; 
>  donelock.notifyAll(); 
>  } 
>  } 
>
>  void doneJob() throws InterruptedException { 
>  synchronized (donelock) { 
>  while (!donejob) 
>  donelock.wait(); 
>  } 
>  } 
>
> } 
>
> The annoying thing is that one has to remember and/or 
> pass around a view all the time. The above code could 
> of course also be adapted so that it takes an activity 
> parameter instead of a view parameter, but still the 
> annoyance will be there. 
>
> Bye 
>
> (*) 
> http://stackoverflow.com/a/9350672/502187 
>
>
>
>
>

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

2012-09-11 Thread Andrew Gregory
On 11 September 2012 20:44, pharaoh  wrote:

> Try this solution :
> (...)
> int age = 22;
> Log.d(MY_TAG, new Integer(age).toString());
> (...)
>
>
That's a wasted allocation when there's a static toString:

Log.d(MY_TAG, Integer.toString(age));

-- 
Andrew

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

2012-09-11 Thread Rajan
hi,

I am trying to use multiple activity into a single TabWidget, 

but when i moved from activity : 1 --> 2 --> 3 and again 3 --> 2 -->1 
(after performing this scenario two to three times)

i got the error like *StackOverflowError*, please help me what can i do??

i didn't understand how can i resolve it.

here i put my logcat entry.


09-11 20:10:32.066: E/AndroidRuntime(1020): FATAL EXCEPTION: main
09-11 20:10:32.066: E/AndroidRuntime(1020): java.lang.StackOverflowError
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.text.BoringLayout.draw(BoringLayout.java:365)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.widget.TextView.onDraw(TextView.java:4050)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.View.draw(View.java:6740)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.View.draw(View.java:6743)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.widget.FrameLayout.draw(FrameLayout.java:352)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.View.draw(View.java:6743)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.widget.FrameLayout.draw(FrameLayout.java:352)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.View.draw(View.java:6743)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.widget.FrameLayout.draw(FrameLayout.java:352)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.View.draw(View.java:6743)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.widget.FrameLayout.draw(FrameLayout.java:352)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.View.draw(View.java:6743)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.widget.FrameLayout.draw(FrameLayout.java:352)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.View.draw(View.java:6743)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.widget.FrameLayout.draw(FrameLayout.java:352)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1640)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1638)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.view.View.draw(View.java:6743)
09-11 20:10:32.066: E/AndroidRuntime(1020): at 
android.widget.FrameLayout.draw(FrameLayout.java:352)
09-11 20:1

Re: [android-developers] About Monkey Scripting option

2012-09-11 Thread nagaraj attimani
Dear Pradeep,

Can you please share your user script.

On 1/4/10, pradeep  wrote:
> Hi
>
> I would like to tell every body that it is possible to simulate a
> sequence of events on emulator using monkey scripting option "-f" .
>
> It is successful on android 2.0 sdk
>
>
> Regards,
> Pradeep
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en


-- 
Warm Regards,
Nagaraj

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

2012-09-11 Thread adroidanky
I want to Show a popup window from main activity class on Click of a button 
and popup window contains a form and a submit button...now the problem is 
that when i click on that submit button form data is not pass to async 
class...



login =(Button)findViewById(R.id.login);
 login.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v) 
{  
   
LayoutInflater layoutInflater 
 = (LayoutInflater)getBaseContext()
  .getSystemService(LAYOUT_INFLATER_SERVICE);  
View popupView1 = layoutInflater.inflate(R.layout.login, null);  
  popupWindow1 = new PopupWindow(
   popupView1, 
   LayoutParams.WRAP_CONTENT,  
 LayoutParams.WRAP_CONTENT,true);

  u=(EditText)popupView1.findViewById(R.id.username);
   
 u1=(EditText)popupView1.findViewById(R.id.pass);
   

 
 Button btnDismiss1 = 
(Button)popupView1.findViewById(R.id.login1);

 btnDismiss1.setOnClickListener(new Button.OnClickListener(){

 public void onClick(View v) {
  // TODO Auto-generated method stub
 uname=u.getText().toString();
 password=u1.getText().toString();
 lol(uname,password);
 //Toast.makeText(HomeActivity.this, uname+","+password, 
Toast.LENGTH_LONG).show();
 
  popupWindow1.dismiss();

  (new login()).execute(uname,password);*Not workin this line*


 }});
 popupWindow1.setHeight(500);
 popupWindow1.setWidth(500);
 popupWindow1.setFocusable(true);
 
 
 popupWindow1.showAtLocation(v, Gravity.CENTER, 0, 0);
 
  

} });
 


 public class login extends AsyncTask {
  
   
 protected String doInBackground(String... args) { 
   uname1= args[0];
  password1=args[1];
  
 
return null;
}
 protected void onPostExecute(String objResult) {
try  {  
 // Toast.makeText(a, uname+","+pass, Toast.LENGTH_LONG).show();
  Toast.makeText(HomeActivity.this,"hello", Toast.LENGTH_LONG).show();
/*  Toast.makeText(HomeActivity.this, "session created", 
Toast.LENGTH_LONG).show();  
  Intent intent = new Intent(HomeActivity.this, Welcomepage.class);
   
 startActivity(intent);
  */  
   
  }
  catch(Exception e){
  
 // Toast.makeText(HomeActivity.this, e.toString(), 
Toast.LENGTH_LONG).show();
e.printStackTrace();
}
}
  
  
}

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

2012-09-11 Thread bob
 

Why not pass the data to the constructor of login and store it in member 
variables?



On Tuesday, September 11, 2012 10:41:41 AM UTC-5, adroidanky wrote:
>
> I want to Show a popup window from main activity class on Click of a 
> button and popup window contains a form and a submit button...now the 
> problem is that when i click on that submit button form data is not pass to 
> async class...
>
>
>
> login =(Button)findViewById(R.id.login);
>  login.setOnClickListener(new View.OnClickListener()
> {
> public void onClick(View v) 
> {  
>
> LayoutInflater layoutInflater 
>  = (LayoutInflater)getBaseContext()
>   .getSystemService(LAYOUT_INFLATER_SERVICE);  
> View popupView1 = layoutInflater.inflate(R.layout.login, null);  
>   popupWindow1 = new PopupWindow(
>popupView1, 
>LayoutParams.WRAP_CONTENT,  
>  LayoutParams.WRAP_CONTENT,true);
> 
>   u=(EditText)popupView1.findViewById(R.id.username);
>
>  u1=(EditText)popupView1.findViewById(R.id.pass);
>
> 
>  
>  Button btnDismiss1 = 
> (Button)popupView1.findViewById(R.id.login1);
> 
>  btnDismiss1.setOnClickListener(new Button.OnClickListener(){
>
>  public void onClick(View v) {
>   // TODO Auto-generated method stub
>  uname=u.getText().toString();
>  password=u1.getText().toString();
>  lol(uname,password);
>  //Toast.makeText(HomeActivity.this, uname+","+password, 
> Toast.LENGTH_LONG).show();
>  
>   popupWindow1.dismiss();
>
>   (new login()).execute(uname,password);*Not workin this line*
>
>
>  }});
>  popupWindow1.setHeight(500);
>  popupWindow1.setWidth(500);
>  popupWindow1.setFocusable(true);
>  
>  
>  popupWindow1.showAtLocation(v, Gravity.CENTER, 0, 0);
>  
>   
> 
> } });
>  
>
>
>  public class login extends AsyncTask {
>   
>
>  protected String doInBackground(String... args) { 
>uname1= args[0];
>   password1=args[1];
>   
>  
> return null;
> }
>  protected void onPostExecute(String objResult) {
> try  {  
>  // Toast.makeText(a, uname+","+pass, Toast.LENGTH_LONG).show();
>   Toast.makeText(HomeActivity.this,"hello", Toast.LENGTH_LONG).show();
> /*  Toast.makeText(HomeActivity.this, "session created", 
> Toast.LENGTH_LONG).show();  
>   Intent intent = new Intent(HomeActivity.this, Welcomepage.class);
>
>  startActivity(intent);
>   */  
>
>   }
>   catch(Exception e){
>   
>  // Toast.makeText(HomeActivity.this, e.toString(), 
> Toast.LENGTH_LONG).show();
> e.printStackTrace();
> }
> }
>   
>   
> }
>
>

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

2012-09-11 Thread Raghav Sood
My mistake. Sorry. I was typing on a mobile, and the tag slipped my mind.

Raghav Sood
Sent from my Nexus 7
On Sep 11, 2012 6:26 PM, "Jan Burse"  wrote:

> Raghav Sood schrieb:
>
>> Why would you use that when you have a perfectly working LogCat class?
>>
>> What's wrong with Log.i("value =" + intName);?
>>
>> Raghav Sood
>> Sent from my Galaxy Nexus
>>
>>
> Nothing wrong, except that it will not compile.
>
> I guess you would need to put:
>
> Log.i(TAG, "value =" + intName);
>
> Bye
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to 
> android-developers@**googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+**unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/**group/android-developers?hl=en
>

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

Re: [android-developers] Need License related information...

2012-09-11 Thread Raghav Sood
Ask a lawyer.

Raghav Sood
Sent from my Nexus 7
On Sep 11, 2012 4:48 PM, "Vaibhav Singh"  wrote:

> Hi All,
>
> I am working on one messaging  type application, I am using MMS
> application source code available at Github website (
> https://github.com/android/platform_packages_apps_mms) as a base code and
> I am enhancing some feature in this existing source code, for this I would
> like to know that is there any licensing issue with this or I can use this
> code without any issue and also distribute it's applications.
>
>
> Thanks & Regards
> Vaibhav Singh
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 & Google play -- (official/unofficial) position on external (bluetooth/usb) based sensors

2012-09-11 Thread lbendlin
Our app uses GPS. We don't have   specified, but even tablets 
that don't have built in GPS can load it from the Play store.  Now, 
admittedly, CM9 etc have an option to get GPS data from external receivers, 
so maybe that option is fooling the Play Store into thinking the device has 
GPS capability.

On Tuesday, September 11, 2012 4:55:14 AM UTC-4, falcon74 wrote:
>
>
>
> On Tuesday, September 11, 2012 11:37:22 AM UTC+5:30, RichardC wrote:
>>
>> Does  with require=false, cover your use-case?
>>
>> http://developer.android.com/guide/topics/manifest/uses-feature-element.html 
>>
>  
> Yes, "android.hardware.location.gps" for instance.
>  
>
>> On Tuesday, September 11, 2012 6:56:40 AM UTC+1, falcon74 wrote:
>>>
>>> Wondering if anyone has come across an official (or unofficial) 
>>> statement/stand regarding Android (SDK) and Google-Play, regarding apps 
>>> using external sensors, e.g. bluetooth or USB based ones.
>>>
>>> My experience based on attempt at installing several apps, that require 
>>> GPS, is that Google-play refuses the apps to be installed on devices, that 
>>> it recognizes as not having in-built GPS. I faced the similar problem with 
>>> magnetic field-strength sensor apps, when device doesn't have the 
>>> capability. However, I see lot of practical situations where such 
>>> capabilities can be brought by external sensors. 
>>>
>>>
>>>

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

2012-09-11 Thread lbendlin
I think you are overengineering this.  Of course the code will be re-used. 
Either by the user re-installing your app, or by the one or two other 
people that install it.


On Monday, September 10, 2012 4:35:00 PM UTC-4, drstikko wrote:
>
> Ok, that is a pity, because the app would contain code that will never be 
> used again.
> I know it is probably not much space, but not neat to my opinion.
>
> On Mon, Sep 10, 2012 at 10:29 PM, lbendlin 
> > wrote:
>
>> not to my knowledge.
>>
>>
>> On Monday, September 10, 2012 4:12:33 PM UTC-4, drstikko wrote:
>>
>>> In linux for example you can use an install script 
>>> that is part of the install package or organize it
>>> in such a way that the distro 'knows' where to place it.
>>>
>>> I don't like it that the app itself has to do install tasks
>>>
>>> Is there such an approach?
>>>
>>> On Mon, Sep 10, 2012 at 10:04 PM, lbendlin  wrote:
>>>
 Not sure what you mean. This is all very pedestrian. use standard file 
 management routines. Inputstream, outputstream etc. Here is an example to 
 copy a database from the package to a usable location

 InputStream myInput = myContext.getAssets().open(DB_**NAME);
 // Path to the just created empty db
 String outFileName = DB_PATH + DB_NAME;
 // Open the empty db as the output stream
 OutputStream myOutput = new FileOutputStream(outFileName);
 // transfer bytes from the inputfile to the outputfile
 byte[] buffer = new byte[1024];
 int length;
 while ((length = myInput.read(buffer)) > 0) {
 myOutput.write(buffer, 0, length);
 }

 // Close the streams
 myOutput.flush();
 myOutput.close();
 myInput.close();
 buffer = null;




 On Monday, September 10, 2012 5:27:25 AM UTC-4, drstikko wrote:
>
> Ok, but how do I do that? 
> Is there a standard scriptname that contains these commands?
>
> Dave
>
> Op zaterdag 8 september 2012 14:30:48 UTC+2 schreef lbendlin het 
> volgende:
>>
>> During the initial run of your application you can copy the required 
>> files from the package to the sd card.Bonus points if you use the 
>> standard 
>> folder ( 
>> /data/Android/your.app.name/**fi**les  
>> or some such)
>>
>> On Friday, September 7, 2012 7:53:45 AM UTC-4, drstikko wrote:
>>
>>> Hello, 
>>>
>>> as far as I know only audio that is located in /mnt/sdcard is played 
>>> by the webview class.
>>> No my question is: "how do I let the installation apk install the in 
>>> a folder on /mnt/sdcard?"
>>> Or if people think it is possible to play them from the res or 
>>> assets folder :  "how do I do that?"
>>>
>>> regards,
>>>
>>> Dave
>>>
>>  -- 
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to android-d...@**googlegroups.com

 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=en

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

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

Re: [android-developers] Re: Is it possible to use MonkeyRunner from java

2012-09-11 Thread mallikarjun gudisagar
Thanks for your reply actually i am testing testing the APK without source
code.

Thanks
Arjun

On Tue, Sep 11, 2012 at 11:39 AM, Lew  wrote:

> Arjun wrote:
>>
>> can you pla tel me the example how to use it in case if get
>> ArrayList view= solo.getviews(); is comming  0 i mean
>> in this case what is the solution can u give me a example
>>
>> You should introduce new questions as new topics, but here goes. From a
> code fragment it's
> impossible to be certain. I've seen timing issues, where Views aren't
> rendered yet at the time
> 'solo' is looking. If you can peg a specific view, say by resource ID
> ('R.id.foobar'), you can
> wait for a view with something like
>
>  boolean gotView = solo.waitForView(solo.getView(R.id.foobar));
>
> 'getViews()' returns "an ArrayList of all the View objects located in the
> focused Activity or Dialog."
>
> Perhaps your focused 'Activity' or 'Dialog' didn't have any 'View's.
>
> Show us a complete example that illustrates your issue.
>
> http://sscce.org/
>
> --
> Lew
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2012-09-11 Thread Lew
How do you write a test without source code?

Arjun wrote:
>
> Thanks for your reply actually i [sic] am testing testing the APK without 
> source code.
>
> Lew wrote:
>
>> Arjun wrote:
>>>
>>> can you pla tel me the example how to use it in case if get 
>>> ArrayList view= solo.getviews(); is comming  0 i mean 
>>> in this case what is the solution can u give me a example
>>>
>>> You should introduce new questions as new topics, but here goes. From a 
>> code fragment it's 
>> impossible to be certain. I've seen timing issues, where Views aren't 
>> rendered yet at the time 
>> 'solo' is looking. If you can peg a specific view, say by resource ID 
>> ('R.id.foobar'), you can 
>> wait for a view with something like 
>>
>>  boolean gotView = solo.waitForView(solo.getView(R.id.foobar));
>>
>> 'getViews()' returns "an ArrayList of all the View objects located in the 
>> focused Activity or Dialog."
>>
>> Perhaps your focused 'Activity' or 'Dialog' didn't have any 'View's.
>>
>> Show us a complete example that illustrates your issue.
>>
>> http://sscce.org/
>>
>  

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

2012-09-11 Thread Lew
pharaoh wrote:
>
> Try this solution :
> (...)
> int age = 22;
> Log.d(MY_TAG, new Integer(age).toString());
> (...)
>

Really? Not 'String.valueOf(age)'? Not even 
'Integer.valueOf(age).toString()'?

We're talking basic Java here.

-- 
Lew
 

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

[android-developers] Translation and rotation matricies 2D on Canvas

2012-09-11 Thread NikDmit
Hello.

Since it's very possible to apply rotation and translation to the entire 
canvas and Bitmap's object, I have a question, is it possible, without 
using OpenGL, to apply rotation and translation only for one element on the 
canvas? Let's say, I draw line and circle and I want to apply translation 
only for the line, not for the entire view. With concat method of the 
Canvas the entire view will be changed(translated or rotated).

Thank you for your answers beforehand.

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

2012-09-11 Thread bob
 

Use this to reset the canvas after drawing your one rotated/scaled/whatever 
object:


canvas.setMatrix(new Matrix());

On Tuesday, September 11, 2012 1:18:53 PM UTC-5, NikDmit wrote:
>
> Hello.
>
> Since it's very possible to apply rotation and translation to the entire 
> canvas and Bitmap's object, I have a question, is it possible, without 
> using OpenGL, to apply rotation and translation only for one element on the 
> canvas? Let's say, I draw line and circle and I want to apply translation 
> only for the line, not for the entire view. With concat method of the 
> Canvas the entire view will be changed(translated or rotated).
>
> Thank you for your answers beforehand.
>

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

2012-09-11 Thread bob
 

This way he only has to specify one parameter.



On Monday, September 10, 2012 8:22:08 AM UTC-5, Raghav Sood wrote:
>
> Why would you use that when you have a perfectly working LogCat class? 
>
> What's wrong with Log.i("value =" + intName);? 
>
> Raghav Sood 
> Sent from my Galaxy Nexus 
> On Sep 10, 2012 6:48 PM, "Jan Burse" > 
> wrote:
>
>> Most simple approach:
>>
>> int x;
>> System.err.println("x="+x);
>>
>> Will show in LogCat.
>>
>> mohammed Nuhail schrieb:
>>
>>> How to print integer value in LogCat ?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to 
>>> android-d...@**googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+**unsubscr...@googlegroups.com 
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en
>>>
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> android-d...@**googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+**unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/**group/android-developers?hl=en
>>
>

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

Re: [android-developers] Re: Is it possible to use MonkeyRunner from java

2012-09-11 Thread mallikarjun gudisagar
In robotium its possible to test the Preinstalled application
http://code.google.com/p/robotium/wiki/RobotiumForPreInstalledApps

On Tue, Sep 11, 2012 at 11:41 PM, Lew  wrote:

> How do you write a test without source code?
>
> Arjun wrote:
>>
>> Thanks for your reply actually i [sic] am testing testing the APK without
>> source code.
>>
>> Lew wrote:
>>
>> Arjun wrote:

 can you pla tel me the example how to use it in case if get
 ArrayList view= solo.getviews(); is comming  0 i mean
 in this case what is the solution can u give me a example

 You should introduce new questions as new topics, but here goes. From a
>>> code fragment it's
>>> impossible to be certain. I've seen timing issues, where Views aren't
>>> rendered yet at the time
>>> 'solo' is looking. If you can peg a specific view, say by resource ID
>>> ('R.id.foobar'), you can
>>> wait for a view with something like
>>>
>>>  boolean gotView = solo.waitForView(solo.getView(**R.id.foobar));
>>>
>>> 'getViews()' returns "an ArrayList of all the View objects located in
>>> the focused Activity or Dialog."
>>>
>>> Perhaps your focused 'Activity' or 'Dialog' didn't have any 'View's.
>>>
>>> Show us a complete example that illustrates your issue.
>>>
>>> http://sscce.org/
>>>
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Invoking ACRA from within the application

2012-09-11 Thread Ika Balzam
Hi,

Does anyone know if you can invoke ACRA from a button?

i.e. click on a button will open the dialog and send the report instead of
crashing the application in order to get the same result.

Thanks,
Ika

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

2012-09-11 Thread Ika Balzam
Hi,

Does anyone know if you can invoke ACRA from a button?

i.e. click on a button will open the dialog and send the report instead of 
crashing the application in order to get the same result.

Thanks,
Ika

(I've sent this through the mail before, not sure if it worked - sorry if I 
posted it twice)

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

2012-09-11 Thread NikDmit
Thank you! It works. Or, at least, I got an idea what I have to do =)

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

[android-developers] human error

2012-09-11 Thread bob
 

Is there an easy way to convert the errors here:


android.media.MediaPlayer.OnErrorListener


to human-readable strings?


Thanks.


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

[android-developers] Re: Invoking ACRA from within the application

2012-09-11 Thread bob
 

Throw an Exception on the button click?



On Tuesday, September 11, 2012 2:08:03 PM UTC-5, Ika Balzam wrote:
>
> Hi, 
>
> Does anyone know if you can invoke ACRA from a button?
>
> i.e. click on a button will open the dialog and send the report instead of 
> crashing the application in order to get the same result.
>
> Thanks,
> Ika
>

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

2012-09-11 Thread Kristopher Micinski
No, that's not going to generate the right kind of crash report.

What do you want to report, if you click a button, the application has
not yet crashed, what do you want to show has crashed?

kris

On Tue, Sep 11, 2012 at 3:40 PM, bob  wrote:
> Throw an Exception on the button click?
>
>
>
> On Tuesday, September 11, 2012 2:08:03 PM UTC-5, Ika Balzam wrote:
>>
>> Hi,
>>
>> Does anyone know if you can invoke ACRA from a button?
>>
>> i.e. click on a button will open the dialog and send the report instead of
>> crashing the application in order to get the same result.
>>
>> Thanks,
>> Ika
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Invoking ACRA from within the application

2012-09-11 Thread Ika Balzam
Hi,

I want to let the user have an option to send me a report - let's say that
he have received a wrong notification in the application.
I just want to use the same mechanism instead of writing a new one.

And crashing the application in order to activate the acra screen seems
like a bad way to do that.. so I wonder if I can do something like:

ACRA.sendReport();

And it will send me the user logs/message and put it in the google doc.

Thanks,
Ika

On Tue, Sep 11, 2012 at 10:49 PM, Kristopher Micinski <
krismicin...@gmail.com> wrote:

> No, that's not going to generate the right kind of crash report.
>
> What do you want to report, if you click a button, the application has
> not yet crashed, what do you want to show has crashed?
>
> kris
>
> On Tue, Sep 11, 2012 at 3:40 PM, bob  wrote:
> > Throw an Exception on the button click?
> >
> >
> >
> > On Tuesday, September 11, 2012 2:08:03 PM UTC-5, Ika Balzam wrote:
> >>
> >> Hi,
> >>
> >> Does anyone know if you can invoke ACRA from a button?
> >>
> >> i.e. click on a button will open the dialog and send the report instead
> of
> >> crashing the application in order to get the same result.
> >>
> >> Thanks,
> >> Ika
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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
>



-- 
Best Regards,
*Ika Balzam, CTO | Net-Comet Development Studio | T: +972.54.3115117 |
i...@net-comet.com | http://www.net-comet.com*

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

Re: [android-developers] Question about SurfaceView and Threads

2012-09-11 Thread bob
runOnUiThread?

Why have I been using Handler.post this whole time?



On Monday, September 10, 2012 3:41:53 AM UTC-5, Harri Smått wrote:
>
>
> On Sep 10, 2012 12:04 AM, "Edvinas Kilbauskas" 
> > 
> wrote:
> > I heard that android doesn't support plain old Java Threads.
>
> That's not true. Android supports basic Java Threads and there's no reason 
> for not to use them when appropriate. But the thing is, you can not alter 
> UI components outside of UI Thread. In your case it would be updating the 
> textual contents of TextView. See method named runOnUiThread , it gives 
> easy access for executing UI code from Threads.
>
> --
> H
>

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

2012-09-11 Thread Kostya Vasilyev
Because you don't always have an Activity easily accessible?

Besides:

>>

   1. public final void runOnUiThread(Runnable action) {
   2. if (Thread.currentThread() != mUiThread) {
   3. mHandler.post(action);
   4. } else {
   5. action.run();
   6. }
   7. }
   8.

<<

-- K

2012/9/11 bob 

> runOnUiThread?
>
> Why have I been using Handler.post this whole time?
>
>
>
> On Monday, September 10, 2012 3:41:53 AM UTC-5, Harri Smått wrote:
>
>>
>> On Sep 10, 2012 12:04 AM, "Edvinas Kilbauskas" 
>> wrote:
>> > I heard that android doesn't support plain old Java Threads.
>>
>> That's not true. Android supports basic Java Threads and there's no
>> reason for not to use them when appropriate. But the thing is, you can not
>> alter UI components outside of UI Thread. In your case it would be updating
>> the textual contents of TextView. See method named runOnUiThread , it gives
>> easy access for executing UI code from Threads.
>>
>> --
>> H
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Is it possible to use MonkeyRunner from java

2012-09-11 Thread Lew
Yes, but you still have to write source code to do so.

On Tuesday, September 11, 2012 11:52:04 AM UTC-7, Arjun wrote:
>
> In robotium its possible to test the Preinstalled application  
> http://code.google.com/p/robotium/wiki/RobotiumForPreInstalledApps 
>
> On Tue, Sep 11, 2012 at 11:41 PM, Lew >wrote:
>
>> How do you write a test without source code?
>>
>> Arjun wrote:
>>>
>>> Thanks for your reply actually i [sic] am testing testing the APK 
>>> without source code.
>>>
>>> Lew wrote:
>>>
>>> Arjun wrote:
>
> can you pla tel me the example how to use it in case if get 
> ArrayList view= solo.getviews(); is comming  0 i mean 
> in this case what is the solution can u give me a example
>
> You should introduce new questions as new topics, but here goes. From 
 a code fragment it's 
 impossible to be certain. I've seen timing issues, where Views aren't 
 rendered yet at the time 
 'solo' is looking. If you can peg a specific view, say by resource ID 
 ('R.id.foobar'), you can 
 wait for a view with something like 

  boolean gotView = solo.waitForView(solo.getView(**R.id.foobar));

 'getViews()' returns "an ArrayList of all the View objects located in 
 the focused Activity or Dialog."

 Perhaps your focused 'Activity' or 'Dialog' didn't have any 'View's.

 Show us a complete example that illustrates your issue.

 http://sscce.org/

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

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

Re: [android-developers] Re: print integer value in logcat.

2012-09-11 Thread Lew
That is not an advantage, and the concomitant loss of information is a 
disadvantage.

bob wrote:
>
> This way he only has to specify one parameter.
> On Monday, September 10, 2012 8:22:08 AM UTC-5, Raghav Sood wrote:
>>
>> Why would you use that when you have a perfectly working LogCat class? 
>>
>> What's wrong with Log.i("value =" + intName);? 
>>
>>  "Jan Burse" wrote:
>>
>>> Most simple approach:
>>>
>>> int x;
>>> System.err.println("x="+x);
>>>
>>> Will show in LogCat.
>>>
>>> mohammed Nuhail schrieb:
>>>
 How to print integer value in LogCat ?

>>>  

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

2012-09-11 Thread Lew
 jb wrote:
>
> Most simple approach: 
>
> int x; 
> System.err.println("x="+x); 
>
> Will show in LogCat. 
>

Not normally, no, it won't.

"By default, the Android system sends stdout and stderr (System.out and 
System.err) output to /dev/null." 
http://developer.android.com/tools/debugging/debugging-log.html

-- 
Lew

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

[android-developers] Re: print integer value in logcat.

2012-09-11 Thread Jan Burse

Lew schrieb:

That is not an advantage, and the concomitant

> loss of information is a disadvantage.

Oh, you made it from comp.lang.java.programmer to here?
Not enough troll opportunities anymore there?

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

2012-09-11 Thread bob
 

What do you guys use to analyze your ACRA crash data?


Is this worth me buying a copy of MicroSoft Excel?


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

2012-09-11 Thread TreKing
On Tue, Sep 11, 2012 at 2:56 PM, Ika Balzam  wrote:

> And crashing the application in order to activate the acra screen seems
> like a bad way to do that.. so I wonder if I can do something like:
>
> ACRA.sendReport();
>
> And it will send me the user logs/message and put it in the google doc.
>

ACRA-specific questions should probably go to their group or forum or
whatever they have.

That said, Isn't ACRA open source? Find that part that does what you want
then refactor to it do work on the click of a button instead of a crash.
Ideally the functionality would already be self-contained in such a way
that you can just wrap a dialog around a method or something. Doesn't seem
that complicated.

-
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] ACRA analysis

2012-09-11 Thread TreKing
This has nothing to do with this list.

-
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] How Call a asynctask from a popupwindow??? plzzzzzzz help me

2012-09-11 Thread TreKing
On Tue, Sep 11, 2012 at 10:41 AM, adroidanky wrote:

> now the problem is that when i click on that submit button form data is
> not pass to async class...


Why not? What does "not working this line" mean?

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

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

[android-developers] check if pressed within circle

2012-09-11 Thread iQue
I'm using joysticks to controls my game-characters movement and the 
direction he fires, and to keep these joysticks within its bound I use this 
code:

if (touchingPoint.x < (int) (steeringxMesh - 25)) {
touchingPoint.x = (int) (steeringxMesh - 25);
}
if (touchingPoint.x > (int) (steeringxMesh + 25)) {
touchingPoint.x = (int) (steeringxMesh + 25);
}
if (touchingPoint.y < (int) (yMesh - 25)) {
touchingPoint.y = (int) (yMesh - 25);
}
if (touchingPoint.y > (int) (yMesh + 25)) {
touchingPoint.y = (int) (yMesh + 25);
}

this code makes my streering a big pain in the ass, since it basicly makes 
my joystick move within a square.

I want to change this so it checks if Ive pressed within a circle the size 
of my joysticks background-image.

Say the joysticks background image is 50x50, how do I make a circle in 
android with this size in mind, and how do i check if im pressing within it.

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

[android-developers] Re: check if pressed within circle

2012-09-11 Thread iQue
To clerify, the code I pasted only checks for one of my joysticks.  If 
anything I wrote was unclear just tell me and Ill try to explain better.

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

2012-09-11 Thread Alvin
Hi all,

I'm a newbie for Android programming and I'm making a code to control the 
camera by using API.
I'm struggling with the problem to map the screen coordination to camera's 
driver coordination for a long time.

(Development Env: Samsung Galaxy S3 & Eclipse)

I'd like to implement to show the rectangle in the screen when the user 
click the preview.
Actually there is no problem in establishing this but the problem is that
- I got wrong location with the coordination in the preview and the 
coordination in the camera focus area when I get the coordination to use 
getFocusArea

I translate the screen coordination to camera driver coordination by using 
the matrix.
Below is to initiate the matrix:

*

public static void prepareMatrix(Matrix matrix, boolean mirror, 
intdisplayOrientation, 
int viewWidth, int viewHeight) {
*

 // Need mirror for front camera.

 matrix.setScale(mirror ? -1 : 1, 1);

 // This is the value for 
android.hardware.Camera.setDisplayOrientation.

 matrix.postRotate(displayOrientation);

   // Camera driver coordinates range from (-1000, -1000) to (1000, 
1000).

// UI coordinates range from (0, 0) to (width, height).

 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f);

 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f);

}  
I've got this code in the internet.

Below is to convert the coordination:
-

*void* calculateTapArea(*int* focusWidth, *int* focusHeight, 
*float*areaMultiple, 
*int* x, *int* y, *int* previewWidth, *int* previewHeight, Rect rect) {

*int* areaWidth = (*int*) (focusWidth * areaMultiple);

  *int* areaHeight = (*int*) (focusHeight * areaMultiple);

 *int* left = Util.clamp(x - areaWidth / 2, 0, previewWidth - 
areaWidth);

  *int* top = Util.clamp(y - areaHeight / 2, 0, previewHeight - 
areaHeight);

RectF rectF = *new* RectF(left, top, left + areaWidth, top + 
areaHeight);

*this*.gCoordinationConvertMatrix.mapRect(rectF);

   Util.rectFToRect(rectF, rect);

}

And finally below is to call above function. _x & _y is the screen 
coordination:
-

ArrayList mFocusArea = *new* ArrayList();

   mFocusArea.add(*new* Area(*new* Rect(), 1));

   ArrayList mMeteringArea =*new* ArrayList();

  mMeteringArea.add(*new* Area(*new* Rect(), 1));

   calculateTapArea(_100, _100, 1f, _x, _y, 

*this*.gPreview.getWidth(), *this*.gPreview.getHeight(), 
mFocusArea.get(0).rect);

 calculateTapArea(_100, _100, 1.5f, _x, _y, 

* this*.gPreview.getWidth(), *this*.gPreview.getHeight(), 
mMeteringArea.get(0).rect);

.. 
After this code, I just set the Auto Focus by setting the focus & metering 
area by using setFocusArea & setMeteringArea function.

Strange thing is I set the orientation as 'Landscape' in the manifest file 
so when I click the upper right corner when the phone vertically stand up, 
preview coordination returns 0,0 as expected. but after conversion, above 
function also returns 0,0. I think it should be -1000, -1000.

All codes above is from the Internet.
I thinks I'm doing wrong to display the focus area when the user click the 
preview screen.
If you know better idea or any hint then please let me know.

Thank you.

PS: Sorry for my poor English.

Brief Summary:
--
I'd like to get the correct focus area when the user click the preview 
area. But I got wrong focus area after setFocusArea to the camera after 
converting the preview coordination.

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

2012-09-11 Thread Alvin
Hi all,
I'm trying to rotate the imageView by using following function:
---
private void OrientationChanged(int _prev, int _new){
ImageView _imgVw = (ImageView) findViewById(R.id.imageView1);
RotateAnimation r = new RotateAnimation(_prev, _new, 
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
r.setDuration(1000);
r.setFillAfter(true);
_imgVw.startAnimation(r);
}

I implemented the code to get the right degree of the phone when the 
phone's orientation has changed.
And above is working well when the phone's orientation has changed with 
clockwise direction.
But when the phone's orientation has changed to counter clockwise direction 
above module is not working.
I was trying to implement more code to make the minus degree or formula but 
failed.

Do you think I have to use Matrix to establish this?

I don't know for sure how to make a code for counter clockwise rotation.
Please help me with this.

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] check if pressed within circle

2012-09-11 Thread Harri Smått

On Sep 12, 2012, at 1:09 AM, iQue  wrote:
> 
> Say the joysticks background image is 50x50, how do I make a circle in 
> android with this size in mind, and how do i check if im pressing within it.

Use distance,

int dx = imgCenterX - touch.x;
int dy = imgCenterY - touch.y;
float distance = FloatMath.sqrt(dx * dx + dy * dy);

// Out of bounds check.
if (distance > 25) {
touch.x *= 1f / distance;
touch.y *= 1f / distance;
}

Or something like this might work.

--
H

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

2012-09-11 Thread redwolfgang20


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

2012-09-11 Thread Kristopher Micinski
Did you not read the documentation for it?

What were you looking for?

kris

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

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


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

2012-09-11 Thread Shan Ul Haq
thats the point .. if i want to create my own view then i would'nt care for 
customizing the AlertDialog theme. i will just create my own alert dialog. 
I dont want to create my own view. i just want to change the blue line of 
the current alert dialog. If Android Platform does not provides this 
functionality and blue line is Hardcoded in the Alert dialog then they 
should change it.


On Thursday, 6 September 2012 15:14:58 UTC+8, Calin Perebiceanu wrote:
>
> Have you tried  
> http://developer.android.com/reference/android/app/AlertDialog.html#setCustomTitle(android.view.View)
>  
>
> On Thursday, 6 September 2012 05:01:15 UTC+3, Shan Ul Haq wrote:
>>
>> I want to change the color of the blue line, I can change the color of 
>> the title, color of the text, but i am not able to find a way to change the 
>> color of the blue line. i have written following style.
>>
>> 
>>> 
>>> @android:color/transparent
>>> 
>>> @style/myAlertDialogTitleStyle
>>> 
>>> 
>>> 1
>>> true
>>> 
>>> @style/myAlertDialogTitleStyleTextAppearance
>>> 
>>> 
>>> 22sp
>>> #8800
>>> 
>>
>>
>>
>> On Thursday, 6 September 2012 01:36:52 UTC+8, MagouyaWare wrote:
>>>
>>> Change it how?
>>>
>>> Thanks,
>>> Justin Anderson
>>> MagouyaWare Developer
>>> http://sites.google.com/site/magouyaware
>>>
>>>
>>> On Wed, Sep 5, 2012 at 12:00 AM, Shan Ul Haq wrote:
>>>
 Hi, 

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

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

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

[android-developers]

2012-09-11 Thread Redwolf Wolfgang
can you help me how to use the android.bluetooth package.? plsss i need help 
for my thesis.

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

2012-09-11 Thread iQue


Den onsdagen den 12:e september 2012 kl. 00:09:46 UTC+2 skrev iQue:
>
> I'm using joysticks to controls my game-characters movement and the 
> direction he fires, and to keep these joysticks within its bound I use this 
> code:
>
> if (touchingPoint.x < (int) (steeringxMesh - 25)) {
> touchingPoint.x = (int) (steeringxMesh - 25);
> }
> if (touchingPoint.x > (int) (steeringxMesh + 25)) {
> touchingPoint.x = (int) (steeringxMesh + 25);
> }
> if (touchingPoint.y < (int) (yMesh - 25)) {
> touchingPoint.y = (int) (yMesh - 25);
> }
> if (touchingPoint.y > (int) (yMesh + 25)) {
> touchingPoint.y = (int) (yMesh + 25);
> }
>
> this code makes my streering a big pain in the ass, since it basicly makes 
> my joystick move within a square.
>
> I want to change this so it checks if Ive pressed within a circle the size 
> of my joysticks background-image.
>
> Say the joysticks background image is 50x50, how do I make a circle in 
> android with this size in mind, and how do i check if im pressing within it.
>

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

[android-developers] Re: check if pressed within circle

2012-09-11 Thread iQue
changed previous code to this:

int imgCenterX = (int) ((initx - 
joystick.get_joystickBg().getWidth()/2) - 50);
int imgCenterY = (int) ((inity - 
joystick.get_joystickBg().getHeight()/2) - 50);
int dx = imgCenterX - touchingPoint.x;
int dy = imgCenterY - touchingPoint.y;
float distance = FloatMath.sqrt(dx * dx + dy * dy);

// Out of bounds check.
if (distance > 25) {
touchingPoint.x *= 1f / distance;
touchingPoint.y *= 1f / distance;

this gives a weird effect where my "stick" which position is controlled by 
touchingpoint goes to 0,0, 90% of the time. Might help you to know that 
touchingPoint is a "Point", dont know if points are int or float. Thanks!

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

[android-developers] Re: check if pressed within circle

2012-09-11 Thread iQue

changed previous code to this:

int imgCenterX = (int) ((initx - 
joystick.get_joystickBg().getWidth()/2) - 50);
int imgCenterY = (int) ((inity - 
joystick.get_joystickBg().getHeight()/2) - 50);
int dx = imgCenterX - touchingPoint.x;
int dy = imgCenterY - touchingPoint.y;

float distance = FloatMath.sqrt(dx * dx + dy * dy);

// Out of bounds check.
if (distance > 25) {
touchingPoint.x *= 1f / distance;
touchingPoint.y *= 1f / distance;

this gives a weird effect where my "stick" which position is controlled by 
touchingpoint goes to 0,0, 90% of the time. Might help you to know that 
touchingPoint is a "Point", dont know if points are int or float. Thanks!

Might be important to know that this is how I draw the "stick": 
canvas.drawBitmap(joystick.get_joystick(),

  controls.touchingPoint.x, controls.touchingPoint.y,
   
null);

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

[android-developers] Re: check if pressed within circle

2012-09-11 Thread iQue

changed previous code to this:

int imgCenterX = (int) ((initx - joystick.get_joystickBg().
getWidth()/2) - 13);
int imgCenterY = (int) ((inity - 
joystick.get_joystickBg().getHeight()/2) - 13);
int dx = imgCenterX - touchingPoint.x;
int dy = imgCenterY - touchingPoint.y;

float distance = FloatMath.sqrt(dx * dx + dy * dy);

// Out of bounds check.
if (distance > 25) {
touchingPoint.x *= 1f / distance;
touchingPoint.y *= 1f / distance;

this gives a weird effect where my "stick" which position is controlled by 
touchingpoint goes to 0,0, 90% of the time. Might help you to know that 
touchingPoint is a "Point", dont know if points are int or float. Thanks!

Might be important to know that this is how I draw the "stick": 
canvas.drawBitmap(joystick.get_joystick(),

  controls.touchingPoint.x - 13, controls.touchingPoint.y - 13,
   
null);

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

[android-developers] Re: check if pressed within circle

2012-09-11 Thread iQue
change the old code into this:

int imgCenterX = (int) ((initx - 
joystick.get_joystickBg().getWidth()/2) - 50);
int imgCenterY = (int) ((inity - 
joystick.get_joystickBg().getHeight()/2) - 50);
int dx = imgCenterX - touchingPoint.x;
int dy = imgCenterY - touchingPoint.y;
float distance = FloatMath.sqrt(dx * dx + dy * dy);
Log.d(TAG, "destance HERE: " + distance);

// Out of bounds check.
if (distance >  25) {
touchingPoint.x *= 1f / distance;
touchingPoint.y *= 1f / distance;
 }


this gives a weird result where 90% of the time the "stick" will set its 
position to 0,0 when I try to use it. 

Might be important to know that this is how I draw my stick: 
canvas.drawBitmap(joystick.get_joystick(),
   
controls.touchingPoint.x - 13, controls.touchingPoint.y - 13,
   
null);

PS: sorry for all the removed posts, cant find an edit-button :S

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

2012-09-11 Thread mallikarjun gudisagar
Yes, i used this code
package com.android.comera

import com.jayway.android.robotium.solo.Solo;

import android.test.ActivityInstrumentationTestCase2;

@SuppressWarnings("unchecked")
public class Mytest extends ActivityInstrumentationTestCase2 {

private static final String TARGET_PACKAGE_ID =
"com.android.comera";
private static final String LAUNCHER_ACTIVITY_FULL_CLASSNAME =
"com.android.camera.DashboardListActivity";

private static Class launcherActivityClass;
static{
try {
launcherActivityClass =
Class.forName(LAUNCHER_ACTIVITY_FULL_CLASSNAME);
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
}

@SuppressWarnings("unchecked")
public Mytest() throws ClassNotFoundException {
super(TARGET_PACKAGE_ID, launcherActivityClass);
}

private Solo solo;

@Override
protected void setUp() throws Exception {
solo = new Solo(getInstrumentation(), getActivity());
}

public void testCanOpenSettings(){
   solo.sendKey(solo.ENTER)
solo.pressMenuItem(0);

   solo.clickonscreen(743,411)
///For opening the image viewer in camera once the image i entered into the
image viewer
I am "Views are showing 0" and also unable to perfom event
solo.clickonscreen(743,411) (click is not complete error is comming.

}


 @Override
   public void tearDown() throws Exception {
solo.finishOpenedActivities();

  }


}

Not finding the views in camera image viewer ArrayLiet  view
solo.getViews();
i am not getting any views and any button information. If i used
 solo.clickonscreen(x,Y) Getting Error Like " click is incomplete.

Application Source code is not available so i cannot use the resource id .
so what is solution for this . Is there any other solution?


Thanks
Arjun

On Wed, Sep 12, 2012 at 2:54 AM, Lew  wrote:

> Yes, but you still have to write source code to do so.
>
>
> On Tuesday, September 11, 2012 11:52:04 AM UTC-7, Arjun wrote:
>
>> In robotium its possible to test the Preinstalled application
>> http://code.google.com/p/**robotium/wiki/**RobotiumForPreInstalledApps
>>
>>
>> On Tue, Sep 11, 2012 at 11:41 PM, Lew  wrote:
>>
>>> How do you write a test without source code?
>>>
>>> Arjun wrote:

 Thanks for your reply actually i [sic] am testing testing the APK
 without source code.

 Lew wrote:

 Arjun wrote:
>>
>> can you pla tel me the example how to use it in case if get
>> ArrayList view= solo.getviews(); is comming  0 i mean
>> in this case what is the solution can u give me a example
>>
>> You should introduce new questions as new topics, but here goes. From
> a code fragment it's
> impossible to be certain. I've seen timing issues, where Views aren't
> rendered yet at the time
> 'solo' is looking. If you can peg a specific view, say by resource ID
> ('R.id.foobar'), you can
> wait for a view with something like
>
>  boolean gotView = solo.waitForView(solo.getView(R.id.foobar));
>
> 'getViews()' returns "an ArrayList of all the View objects located in
> the focused Activity or Dialog."
>
> Perhaps your focused 'Activity' or 'Dialog' didn't have any 'View's.
>
> Show us a complete example that illustrates your issue.
>
> http://sscce.org/
>

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

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

[android-developers] Scaling WebView disables the Vertical and horizontal Scroll bar

2012-09-11 Thread ravi saini
Hi All,

I tried to scale the webview using setScaleX(float) and setScaleY(flaot). 
It Scaled my webview beyond the viewport. To see the content beyond the 
viewport i need the horizontal and vertical scroll bar which not enabled 
when i use the setScaleX and setScaleY functions. Is there any way to 
enable the horizontal and vertical scroll bars when i do the scaling.

Thanks
Ravi

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

2012-09-11 Thread Google Talk
---

You've been invited by thejaswi s to use Google Talk.

If you already have a Google account, login to Gmail and accept this chat
invitation:
http://mail.google.com/mail/b-42b14cd1ab-07722e1f7d-3bdM4V5DJ86jQV169Nf4ef9iuSQ

To sign up for a Google account and get started with Google Talk, you can
visit:
http://mail.google.com/mail/a-42b14cd1ab-07722e1f7d-3bdM4V5DJ86jQV169Nf4ef9iuSQ?pc=en-rf---a

Learn more at:
http://www.google.com/intl/en/landing/accounts/


Thanks,
The Google Team

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

2012-09-11 Thread Ibrahim Sada
Hello Friends...
Help me out how to create multiple tables in sqllite database (
android).
 Thanx in advance...

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

Re: [android-developers] hi..

2012-09-11 Thread Sanandiya Rajesh
See Attachfile, this is database adapter class file.
you can use this class in your activity.
DatabaseAdapter db = new DatabaseAdapter(context);
than use db for insert update delete .
create method in  DatabaseAdapter for insert update delete.

On Wed, Sep 12, 2012 at 10:37 AM, Ibrahim Sada wrote:

> Hello Friends...
> Help me out how to create multiple tables in sqllite database (
> android).
>  Thanx 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

DatabaseAdapter.java
Description: Binary data


Re: [android-developers] Re: Invoking ACRA from within the application

2012-09-11 Thread Kevin Gaudin
Hi,

ACRA related questions can be best answered on the acra-discuss group.
https://groups.google.com/forum/?fromgroups=#!forum/acra-discuss

Here's what you are looking for:
https://code.google.com/p/acra/wiki/AdvancedUsage#Sending_reports_for_caught_exceptions_or_for_unexpected_applicat

Kevin

On Tuesday, September 11, 2012 11:53:46 PM UTC+2, TreKing wrote:
>
> On Tue, Sep 11, 2012 at 2:56 PM, Ika Balzam 
> > wrote:
>
>> And crashing the application in order to activate the acra screen seems 
>> like a bad way to do that.. so I wonder if I can do something like:
>>
>> ACRA.sendReport();
>>
>> And it will send me the user logs/message and put it in the google doc.
>>
>
> ACRA-specific questions should probably go to their group or forum or 
> whatever they have.
>
> That said, Isn't ACRA open source? Find that part that does what you want 
> then refactor to it do work on the click of a button instead of a crash. 
> Ideally the functionality would already be self-contained in such a way 
> that you can just wrap a dialog around a method or something. Doesn't seem 
> that complicated. 
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>
>

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

[android-developers] Re: UncaughtExceptionHandler

2012-09-11 Thread Kevin Gaudin
Hi,

This is a great answer ;-)

For your information, the code which terminates the application was taken 
from the original android default UncaughtExceptionHandler source code.

Kevin
http://acra.ch

On Monday, September 10, 2012 9:43:16 PM UTC+2, Lew wrote:
>
> bob wrote:
>>
>> Not sure if this is good since he calls System.exit, which I was told 
>> never to call.
>>
>>>

> "I was told ..."
>
> To avoid cargo-cult programming, one should delve into the rationale 
> behind advice.
>
> The rationale to avoid 'System.exit()', which is different advice from 
> never use it, 
> is that it causes a program exit. If you *want* to exit the program and do 
> it abruptly 
> without any opportunity to clean up, then it's just fine.
>
> The question is when you'd want to do such a thing. Perhaps when the 
> program 
> state is horridly fubared already and you have no choice but to crash 
> anyway?
>
> -- 
> Lew
>
>

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

Re: [android-developers] hi..

2012-09-11 Thread Ibrahim Sada
Hey sandhya...
  Where is DBhelper classi want to insert that values from the code
itself...
   Thanx for helping

On 12 September 2012 10:44, Sanandiya Rajesh
wrote:

> See Attachfile, this is database adapter class file.
> you can use this class in your activity.
> DatabaseAdapter db = new DatabaseAdapter(context);
> than use db for insert update delete .
> create method in  DatabaseAdapter for insert update delete.
>
> On Wed, Sep 12, 2012 at 10:37 AM, Ibrahim Sada wrote:
>
>> Hello Friends...
>> Help me out how to create multiple tables in sqllite database (
>> android).
>>  Thanx 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] Android Build

2012-09-11 Thread Prabagaran Thangavel
Hi all,

I have a doubt.

Android version from GB requires 64 bit machine to build. But the target
board(eg.. pandaboard) is 32 bit.
My host is also 32 bit machine. Then why it requires 64 bit machine for
building.

Someone provide me the pointers.

Thanks and Regards,
Prabagaran.

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

2012-09-11 Thread Ika Balzam
Hi Kevin,

I've missed that ;)
That was exactly what I was looking for!

Thank you very much!
Ika

On Wed, Sep 12, 2012 at 8:19 AM, Kevin Gaudin wrote:

> Hi,
>
> ACRA related questions can be best answered on the acra-discuss group.
> https://groups.google.com/forum/?fromgroups=#!forum/acra-discuss
>
> Here's what you are looking for:
>
> https://code.google.com/p/acra/wiki/AdvancedUsage#Sending_reports_for_caught_exceptions_or_for_unexpected_applicat
>
> Kevin
>
> On Tuesday, September 11, 2012 11:53:46 PM UTC+2, TreKing wrote:
>
>> On Tue, Sep 11, 2012 at 2:56 PM, Ika Balzam  wrote:
>>
>>> And crashing the application in order to activate the acra screen seems
>>> like a bad way to do that.. so I wonder if I can do something like:
>>>
>>> ACRA.sendReport();
>>>
>>> And it will send me the user logs/message and put it in the google doc.
>>>
>>
>> ACRA-specific questions should probably go to their group or forum or
>> whatever they have.
>>
>> That said, Isn't ACRA open source? Find that part that does what you want
>> then refactor to it do work on the click of a button instead of a crash.
>> Ideally the functionality would already be self-contained in such a way
>> that you can just wrap a dialog around a method or something. Doesn't seem
>> that complicated.
>>
>> --**--**
>> --**---
>> 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
>



-- 
Best Regards,
*Ika Balzam, CTO | Net-Comet Development Studio | T: +972.54.3115117 |
i...@net-comet.com | http://www.net-comet.com*

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