Re: [android-developers] Re: OEM-Official ADB USB Driver support (rant)

2012-07-21 Thread Nikolay Elenkov
Back on topic, the USB driver in the SDK works fine with the N7. Update the
SDK and select the driver folder in device manager.

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

2012-07-21 Thread Mohammed Zarqa
the returned object  is a class (Category) and contains ID as integer, Name 
and description so what should i do to sync  the category class defined in 
both web service and the android app.

regards

On Thursday, July 19, 2012 9:22:29 PM UTC+3, TreKing wrote:
>
> On Wed, Jul 18, 2012 at 9:15 AM, Mohammed Zarqa  wrote:
>
>> the error comes from this line C.CategoryId = 
>>  Integer.parseInt(response.getProperty(0).toString());
>> and the error is java.lang.NumberFormatException: unable to parse 
>> 'anyType{CategoryId=10055; Name=my name;Description=my Desc;}' as integer
>>
>
> The error pretty much tells you exactly what the problem is. You can't 
> parse this "anyType" to an Integer. So don't do that.
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>
>

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

2012-07-21 Thread Narendra Singh Rathore
On Thu, Jul 19, 2012 at 3:49 PM, tj  wrote:

> I am new to android development. I have worked before on java and .NET but
> am a bit confused with android programming. Can you plz suggest some ideas
> as to on what basic application should I start working on. I made basic
> TicTacToe game so I know the basic programming stuff. Thanks..


Thats good. Try to make the *calculator with the converter* app, which
contains the calculator - simple and scientific, with the converter to
convert currencies, measurements and so on.

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

2012-07-21 Thread Gautam Khatri
first install eclipse juno for xp then install sdk 


On Mon, Jul 16, 2012 at 10:44 AM, Arun Prasad  wrote:

> Hi,
>
> I have tried to install android sdk in windows xp 64 bit. But when i try
> to install eclipse and adt plugin is not updating.
>
> When i search the net, i have seen lot of issues for installing windows xp
> 64bit, can any one guide me to install the same and get it work
>
> Thanks
> Arun Prasad 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

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

2012-07-21 Thread Justlovejoy
i did, had to get proper version of java think it's java 1.6.20 or
something but not just 1.6 plain. also had to remove current java

On Fri, Jul 20, 2012 at 3:09 PM, pratik.prajap...@gmail.com <
pratik.prajap...@gmail.com> wrote:

> Any one fixed this?
>
>
> On Sunday, April 8, 2012 5:11:38 AM UTC-7, justlove joyous wrote:
>>
>> any clues?
>>
>>
>> On Thursday, April 5, 2012 4:27:31 AM UTC-4, kcobra wrote:
>>>
>>> The error is as following:
>>>
>>>
>>> UNEXPECTED TOP-LEVEL ERROR:
>>> Exception in thread "main" java.lang.OutOfMemoryError: GC overhead
>>> limit exceeded
>>> make: *** [out/target/common/obj/JAVA_**LIBRARIES/
>>> framework_intermediates/**noproguard.classes-with-local.**dex] Error 1
>>>
>>>
>>> I make ICS on Ubuntu 10.10 with jdk 1.6.Does anyone know the reason?
>>> Thanks in advance!
>>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Jelly Bean and Strict Mode

2012-07-21 Thread Ievgenii Nazaruk
I've just created one:  
http://code.google.com/p/android/issues/detail?id=35298

On Friday, July 20, 2012 4:12:26 PM UTC+3, BoD wrote:
>
> :( 
> Did anybody open an issue? 
>
> -- 
> BoD 
>
> On 07/20/2012 11:25 AM, b0b wrote: 
> > 
> > Exactly. StrictMode thread policy (and it seems only thread policy) is 
> > restored to the default settings by the framewrok after onCreate() is 
> > called. 
>
>

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

Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-21 Thread Ievgenii Nazaruk
Hm, I've had an impression that permissions are granted or denied on each 
fresh start of application. But after doing some experiments and looking 
through logs, it seems that they are only granted or denied during 
installation. Which explains the behavior of inherently granted READ_LOGS 
permission. 

On Friday, July 20, 2012 9:29:26 PM UTC+3, Ran wrote:
>
> you're right.
>
> - Ran
>
>
> On Fri, Jul 20, 2012 at 5:49 PM, vt  wrote:
>
>> On Friday, July 20, 2012 2:50:19 AM UTC-7, Ran wrote:
>>>
>>> I just got the OTA for JellyBean on my Nexus S.
>>> READ_LOGS apps seem to work as before.. I can see all the logs in 
>>> alogcat.
>>>
>>> is this a bug?
>>>
>>
>> It looks like previously installed applications have inherited 
>> permissions that were given at installation time.
>>
>> --vt
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] app crashes when a map view is added

2012-07-21 Thread Ralph Bergmann | the4thFloor.eu
Hello,


on all my Android 4.x devices the app crashes when I restart the app via
Eclipse and the MapView is visible.

You can find a example app here:
https://github.com/the4thfloor/AndroidMapViewCrashTest

Import this project and press play in Eclipse.

In the app press the buttons until the MapView is visible.

Then restart the app with Eclipse and the app crashes with the following
error:

FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to instantiate application
android.app.Application: java.lang.NullPointerException
at android.app.LoadedApk.makeApplication(LoadedApk.java:482)
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:3938)
at android.app.ActivityThread.access$1300(ActivityThread.java:123)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at
android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:362)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:305)
at android.app.LoadedApk.makeApplication(LoadedApk.java:474)
... 11 more


What's going wrong?



Ralph

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

2012-07-21 Thread Jim Graham
On Fri, Jul 20, 2012 at 12:10:04PM -0700, bob wrote:

> float width = display.getWidth();
> float height = display.getHeight();

Correction:  display.getWidth() and display.getHeight() both return int,
not float.

Later,
   --jim

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

  "'Wrong' is one of those concepts that depends on witnesses."
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

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

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


[android-developers] Re: per account settings in Jelly Beans

2012-07-21 Thread Marten Gajda
I've created an email account in the emulator to see how they handle
this. I don't like the new concept (although it's not completely new
since the email client in 4.0.3 already has its own account selector
activity)

Why do we need two account selectors?

Anyway, I've implemented my own selector activity today. It works just
like the email app, i.e. when you're in the account list you tap on
"Account Settings" just to get another account list (with the same
accounts). When you tap on an account you get the account settings just
like before.

In my opinion the better way would be to show the account specific
settings in the actual account view, just like before. That would be
much more user friendly and intuitive.

Btw. you still can remove accounts, you have to enter the account (in
the accounts list for an authenticator) and open the menu.

Also, I didn't add any SDK dependent code. I just created a copy of the
account_preferences.xml in res/xml-v16 that points to the new account
selector activity instead of the actual account preferences editor
activity. So Android 2.x, 3.x and 4.0.x user will still get the old
behaviour and 4.1.x users get the new account settings.

cheers

Marten

Am 21.07.2012 15:11, schrieb yvolk:
> Hi Marten, I've noticed this also.
> Account management abilities of Jelly Bean are far less that in
> previous versions:
> - no per account settings as you mentioned;
> - now a User can add but can not Remove an Account.
>
> Very sad degradation of features without any reasoning/explanation :-(
> I guess this may be seen as not well thought out decision / unfinished
> implementation (i.e. a bug).
>
> I looked up into
> the com.android.email.activity.setup.AccountSettings.java and compared
> it with previous version: now they have to use applications's own
> "Account Selector" activity to select account.
>
> So I' implementing something close in my AnsStatus application also.
> Plus I had to add SDK Version specific code in order to maintain
> compatibility with previous SDK versions. Please see my implementation
> in 
> https://github.com/andstatus/andstatus/blob/master/src/org/andstatus/app/account/AccountSettings.java
>  
>
>

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

2012-07-21 Thread Mark Carter
One year on, now we have xhdpi devices and tvdpi (or whatever it is called 
for the Nexus 7), what is the recommended screenshot size to use?

One thing I don't like with the Galaxy Nexus screenshots, is that they 
include the soft (back, home, multitasking) buttons - so the user ends up 
seeing those in the screenshot and again the real soft buttons on their 
screen.

On Tuesday, 28 June 2011 18:54:07 UTC+8, MarcoAndroid wrote:
>
> Yup it's now a day later, images are looking fine now on my N1 in the 
> market. So 320x480 seems the way to go. 
>
> On 27 jun, 21:12, MarcoAndroid  wrote: 
> > Actually, just noticed that my screenshots of uploaded 480x800 format 
> > look in my phone'smarketexactly the same as the previews in the dev 
> > console, cropped with left say 20pixels cut off. Seems you can use 
> > that as a real indication on how they will look like... 
> > 
> > BTW just uploaded a 320x480 and indeed in the preview it now is fully 
> > shown, no cropping. Let's see what themarketshows now on my phone 
> > (N1). Nothing yet, waiting for the update of the images to appear... 
> > 
> > On 27 jun, 20:33, MarcoAndroid  wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > Reading this onehttp://
> groups.google.com/group/android-developers/browse_thread/threa... 
> > > it seems 320x480 is the size to go for, forget the others... 
> > 
> > > On 21 jun, 17:07, Santiago Lema  wrote: 
> > 
> > > > Hello, 
> > 
> > > >  I just published my first Android port (from my iOS app) and I am 
> > > > really puzzled as to how I should handle screenshots? 
> > 
> > > > Letting aside that the jpeg quality is awful and the inability to 
> > > > provide localized screenshots, I'll ask just one simple question. 
> > 
> > > > - What is the recommended size to upload screenshots so they look 
> nice 
> > > > on all devices? 
> > 
> > > > I uploaded 800x480 PNG 24 bits screenshots, hoping a higher quality 
> > > > source would yield decent results but I was sorely disappointed. Not 
> > > > only the jpeg quality setting is awful but the androidmarketseems 
> tocropmy screenshots to a 1.5 ratio (like 320x480) at what seems to be 
> > > > random positions? 
> > 
> > > > If I upload screenshots in several formats will themarketuse the 
> > > > appropriate ones for each phone ? Or will it scale each one 
> miserably 
> > > > just like it does for the ones I uploaded and display them in their 
> > > > full ugliness on all devices ? 
> > 
> > > > PS: If anyone cares, I have just written a long rant about issues 
> when 
> > > > publishing to the AndroidMarketissues which details thescreenshot 
> > > > issues too:http://www.smallte.ch/blog-read_en_15001.html

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

Re: [android-developers] Re: OEM-Official ADB USB Driver support (rant)

2012-07-21 Thread JP


On Saturday, July 21, 2012 1:13:27 AM UTC-7, Nikolay Elenkov wrote:
>
> Back on topic, the USB driver in the SDK works fine with the N7. Update 
> the SDK and select the driver folder in device manager.
>  
Not for me, not. (USB debugging enabled)
Oh well.

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

2012-07-21 Thread matt
hello,

is it possible to somehow redirect the outputs of adb pull not to a file 
but to some place in memory?

specifically i am writing a java program, that executes

adb pull /dev/graphics/fb0

and in the same program i want to process the result.

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

2012-07-21 Thread Dianne Hackborn
Not sure what you are answering...?  That is not a use case, that is just
retrieving the values.  Which, again, I recommend not using for anything.

On Fri, Jul 20, 2012 at 12:10 PM, bob  wrote:

> Or like so:
>
> Display display =
> ((WindowManager).getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
> float width = display.getWidth();
> float height = display.getHeight();
>
>
> On Friday, July 20, 2012 1:06:36 PM UTC-5, Dianne Hackborn wrote:
>>
>> I recommend never using them.  The real correct size will be given to you
>> through the view hierarchy.
>>
>> On Thu, Jul 19, 2012 at 7:32 PM, Agus  wrote:
>>
>>> What are the uses cases in which width and height values of
>>> DisplayMetrics used ?
>>>
>>> Is it just for games ?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@**
>>> googlegroups.com 
>>> To unsubscribe from this group, send email to
>>> android-developers+**unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en
>>
>>
>>
>>
>> --
>> Dianne Hackborn
>> Android framework engineer
>> hack...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time to
>> provide private support, and so won't reply to such e-mails.  All such
>> questions should be posted on public forums, where I and others can see and
>> answer them.
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Re: OEM-Official ADB USB Driver support (rant)

2012-07-21 Thread Nikolay Elenkov
On Jul 22, 2012 12:05 AM, "JP"  wrote:
>
>
>
> On Saturday, July 21, 2012 1:13:27 AM UTC-7, Nikolay Elenkov wrote:
>>
>> Back on topic, the USB driver in the SDK works fine with the N7. Update
the SDK and select the driver folder in device manager.
>
> Not for me, not. (USB debugging enabled)
> Oh well.

What exactly is the problem? That driver is pretty generic and works with
pretty much everything, all you need to do is add the manufacturer and
device ids to the ini file. The entries for N7 are already there in the
latest version.

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

[android-developers] Looking for a developer for a simple widget

2012-07-21 Thread Richard Pickett
I'm looking for a developer that will write a simple app. I'm basically
wanting a branded version of "1 VPN" - a widget that sits on the home
screen that toggles a VPN on and off and indicates whether it's currently
connected or not.

I'm open to the terms, whether it's a single payment for the app or if they
want a share of each monthly subscriber that uses the app.

I work in the Internet security industry and won't have any problems
marketing it. I just need the app written.

If you're interested or need more info, just reply and we can start the
dialog.


Thanks,

Richard W. Pickett, Jr.

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

2012-07-21 Thread TreKing
On Sat, Jul 21, 2012 at 3:25 AM, Mohammed Zarqa  wrote:

> the returned object  is a class (Category) and contains ID as integer,
> Name and description so what should i do to sync  the category class
> defined in both web service and the android app.


Parse the data you get to retrieve the individual properties of your custom
object class, then create an instance of that class and set the properties.

-
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] app crashes when a map view is added

2012-07-21 Thread TreKing
On Sat, Jul 21, 2012 at 6:42 AM, Ralph Bergmann | the4thFloor.eu <
ra...@the4thfloor.eu> wrote:

> What's going wrong?


As the stacktrace explicitly tells you, you have a NullPointer at line 482
of LoadedApk.java. Use your debugger to determine what is null, then make
it not null.

-
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] Looking for a developer for a simple widget

2012-07-21 Thread Mark Murphy
On Sat, Jul 21, 2012 at 1:18 PM, Richard Pickett
 wrote:
> I'm looking for a developer that will write a simple app. I'm basically
> wanting a branded version of "1 VPN" - a widget that sits on the home screen
> that toggles a VPN on and off and indicates whether it's currently connected
> or not.

There is no documented and supported API to do this. Whatever
technique they had been using presumably no longer works as of Android
4.0, based on their product description.

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

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

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


Re: [android-developers] app crashes when a map view is added

2012-07-21 Thread Ralph Bergmann | the4thFloor.eu
Am 21.07.12 19:31, schrieb TreKing:
> As the stacktrace explicitly tells you, you have a NullPointer at line
> 482 of LoadedApk.java. Use your debugger to determine what is null, then
> make it not null.

The LoadedApk.java is from the system not from me.

And when you look at the example project the you can see that I only
show a MapView.

There is nothing what I can make wrong.

And the app crashes only if the MapView is the 3rd view. If the MapView
is the 2nd view all works fine.


Ralph

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

2012-07-21 Thread Richard Pickett
>
> On Sat, Jul 21, 2012 at 12:41 PM, Mark Murphy wrote:


> There is no documented and supported API to do this. Whatever
> technique they had been using presumably no longer works as of Android
> 4.0, based on their product description.
>

If I understand it correctly, there wasn't a documented method back when
they released it either. Yet they did it.

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

Re: [android-developers] Looking for a developer for a simple widget

2012-07-21 Thread Mark Murphy
On Sat, Jul 21, 2012 at 2:05 PM, Richard Pickett
 wrote:
> If I understand it correctly, there wasn't a documented method back when
> they released it either. Yet they did it.

Which is why I have some time budgeted to figure out how they did it
and make sure that the Android Security team is aware of the
technique. My guess is that they are, and that they blocked it with
Android 4.0.

I don't have a problem with SDK apps having the ability to toggle VPNs
on/off, but only via a documented/supported API and a dedicated
permission, and none of that presently exists AFAICT. Perhaps it will
be added in some future release.

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

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

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


Re: [android-developers] app crashes when a map view is added

2012-07-21 Thread Kostya Vasilyev
I see it happen all the time... and without a MapView. It's some side
effect of an application relaunch. Only happens during development. I
already filed bug a few months ago.
21.07.2012 15:45 пользователь "Ralph Bergmann | the4thFloor.eu" <
ra...@the4thfloor.eu> написал:

> Hello,
>
>
> on all my Android 4.x devices the app crashes when I restart the app via
> Eclipse and the MapView is visible.
>
> You can find a example app here:
> https://github.com/the4thfloor/AndroidMapViewCrashTest
>
> Import this project and press play in Eclipse.
>
> In the app press the buttons until the MapView is visible.
>
> Then restart the app with Eclipse and the app crashes with the following
> error:
>
> FATAL EXCEPTION: main
> java.lang.RuntimeException: Unable to instantiate application
> android.app.Application: java.lang.NullPointerException
> at android.app.LoadedApk.makeApplication(LoadedApk.java:482)
> at
> android.app.ActivityThread.handleBindApplication(ActivityThread.java:3938)
> at android.app.ActivityThread.access$1300(ActivityThread.java:123)
> at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
> at android.os.Handler.dispatchMessage(Handler.java:99)
> at android.os.Looper.loop(Looper.java:137)
> at android.app.ActivityThread.main(ActivityThread.java:4424)
> at java.lang.reflect.Method.invokeNative(Native Method)
> at java.lang.reflect.Method.invoke(Method.java:511)
> at
>
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
> at dalvik.system.NativeStart.main(Native Method)
> Caused by: java.lang.NullPointerException
> at
> android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:362)
> at android.app.LoadedApk.getClassLoader(LoadedApk.java:305)
> at android.app.LoadedApk.makeApplication(LoadedApk.java:474)
> ... 11 more
>
>
> What's going wrong?
>
>
>
> Ralph
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] app crashes when a map view is added

2012-07-21 Thread Kostya Vasilyev
2012/7/21 Kostya Vasilyev 

> I see it happen all the time... and without a MapView.
>

Correction - used to see it all the time with 4.0.2/4.0.4. Appears to be
fixed in 4.1.1 (although I haven't used it enough to say for sure).

-- K


> It's some side effect of an application relaunch. Only happens during
> development. I already filed bug a few months ago.
> 21.07.2012 15:45 пользователь "Ralph Bergmann | the4thFloor.eu" <
> ra...@the4thfloor.eu> написал:
>
> Hello,
>>
>>
>> on all my Android 4.x devices the app crashes when I restart the app via
>> Eclipse and the MapView is visible.
>>
>> You can find a example app here:
>> https://github.com/the4thfloor/AndroidMapViewCrashTest
>>
>> Import this project and press play in Eclipse.
>>
>> In the app press the buttons until the MapView is visible.
>>
>> Then restart the app with Eclipse and the app crashes with the following
>> error:
>>
>> FATAL EXCEPTION: main
>> java.lang.RuntimeException: Unable to instantiate application
>> android.app.Application: java.lang.NullPointerException
>> at android.app.LoadedApk.makeApplication(LoadedApk.java:482)
>> at
>> android.app.ActivityThread.handleBindApplication(ActivityThread.java:3938)
>> at android.app.ActivityThread.access$1300(ActivityThread.java:123)
>> at
>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
>> at android.os.Handler.dispatchMessage(Handler.java:99)
>> at android.os.Looper.loop(Looper.java:137)
>> at android.app.ActivityThread.main(ActivityThread.java:4424)
>> at java.lang.reflect.Method.invokeNative(Native Method)
>> at java.lang.reflect.Method.invoke(Method.java:511)
>> at
>>
>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
>> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
>> at dalvik.system.NativeStart.main(Native Method)
>> Caused by: java.lang.NullPointerException
>> at
>> android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:362)
>> at android.app.LoadedApk.getClassLoader(LoadedApk.java:305)
>> at android.app.LoadedApk.makeApplication(LoadedApk.java:474)
>> ... 11 more
>>
>>
>> What's going wrong?
>>
>>
>>
>> Ralph
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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: Jelly bean swiping task away from task list kills service

2012-07-21 Thread Andy dev
Ok, I've found out a little more information. It seems that the crash 
doesn't happen when the task is swiped away, it's when one of the broadcast 
receivers tries to fire after the app has been swiped away. It works find 
beforehand, but it's cleared from the task list I'm also seeing this in the 
logs:
 
 
07-21 23:57:40.286: E/JavaBinder(309): !!! FAILED BINDER TRANSACTION !!!
07-21 23:57:40.286: W/BroadcastQueue(309): Exception when sending broadcast 
to 
ComponentInfo{com.example.android.app/com.example.android.app.receiver.SmsReceiver}
07-21 23:57:40.286: W/BroadcastQueue(309): 
android.os.TransactionTooLargeException
07-21 23:57:40.286: W/BroadcastQueue(309):  at 
android.os.BinderProxy.transact(Native Method)
07-21 23:57:40.286: W/BroadcastQueue(309):  at 
android.app.ApplicationThreadProxy.scheduleReceiver(ApplicationThreadNative.java:767)
07-21 23:57:40.286: W/BroadcastQueue(309):  at 
com.android.server.am.BroadcastQueue.processCurBroadcastLocked(BroadcastQueue.java:220)
07-21 23:57:40.286: W/BroadcastQueue(309):  at 
com.android.server.am.BroadcastQueue.processNextBroadcast(BroadcastQueue.java:750)
07-21 23:57:40.286: W/BroadcastQueue(309):  at 
com.android.server.am.ActivityManagerService.finishReceiver(ActivityManagerService.java:13281)
07-21 23:57:40.286: W/BroadcastQueue(309):  at 
android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:346)
07-21 23:57:40.286: W/BroadcastQueue(309):  at 
com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1611)
07-21 23:57:40.286: W/BroadcastQueue(309):  at 
android.os.Binder.execTransact(Binder.java:367)
07-21 23:57:40.286: W/BroadcastQueue(309):  at 
dalvik.system.NativeStart.run(Native Method)
07-21 23:57:40.286: W/ActivityManager(309): Scheduling restart of crashed 
service com.example.android.app/.service.MainRunningService in 5000ms
 
To be honest, I've tried to read about the TransactionTooLargeException, 
but I don't feel any wiser!
 
 

On Friday, July 20, 2012 11:23:11 PM UTC+1, Andy dev wrote:

> Thanks. I'll keep looking for a solution then!
>  
>
> On Friday, July 20, 2012 11:04:13 PM UTC+1, Kostya Vasilyev wrote:
>
>> Yep, I can confirm this with my own foreground service on 4.1.1 (Galaxy 
>> Nexus).
>>
>> -- K
>>
>> 2012/7/21 Andy dev 
>>
>>> Anyone at least confirm what I'm doing looks ok - even if you don't know 
>>> the reason why. Just as a sanity check?
>>>
>>> On Thursday, July 19, 2012 10:19:22 PM UTC+1, Andy dev wrote:
>>>
 I've got a service running (an accessibility service called 
 MainRunningService) and also use an alarmmanager within my app.
  
 On ICS when a user pulled up the task list and swiped the app away the 
 service kept running, but the user interface was cleared from the stack.
  
 On jelly bean I'm finding this to be a little different. It seems like 
 it kills off the service and then restarts it even if I've got an icon in 
 the notification bar and I've got the app set to run in the foreground. 
 This is killing off all my current app state and causing it to stop 
 working.
  
 I'm seeing this in the logs
  
 07-19 21:47:42.213: I/ActivityManager(307): Killing 
 834:com.example.android.**appname/u0a72: remove task
 07-19 21:47:42.236: W/AudioService(307):   AudioFocus   audio focus 
 client died
 07-19 21:47:42.236: I/AudioService(307):  AudioFocus  
 abandonAudioFocus(): removing entry for android.media.AudioManager@**
 41a42020com.example.android.**appname.service.**
 MainRunningService$1@41963ec0
 07-19 21:47:42.244: W/ActivityManager(307): Scheduling restart of 
 crashed service 
 com.rageconsulting.android.**appname/.service.**MainRunningService 
 in 5000ms
  
 For the persistent Icon I'm doing the following:
 Notification foregroundNotification;
 foregroundNotification = new Notification(R.drawable.iconx,**"Example 
 starting notification",System.**currentTimeMillis());
 Intent i=new Intent(this, MainUIActivity.class);
 i.setFlags(Intent.FLAG_**ACTIVITY_CLEAR_TOP|Intent.**
 FLAG_ACTIVITY_SINGLE_TOP);
 foregroundNotification.flags|=**Notification.FLAG_NO_CLEAR;
 startForeground(9642, foregroundNotification);

  

 Is there something I'm doing wrong? I've never had a problem in the 
 past with this code, but it's not very good on jelly bean.

  

>>>  -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-21 Thread Zsolt Vasvari
No, that's npt the case.  After my OTA JB update, CatLog worked fine with 
all logs showing, but then, the next day, it did not.  I didn't uninstall 
CatLog or anything.  It just stopped working.  

PS:  I also didn't reboot my phone.

On Friday, July 20, 2012 9:49:50 PM UTC+7, vt wrote:
>
> On Friday, July 20, 2012 2:50:19 AM UTC-7, Ran wrote:
>>
>> I just got the OTA for JellyBean on my Nexus S.
>> READ_LOGS apps seem to work as before.. I can see all the logs in alogcat
>> .
>>
>> is this a bug?
>>
>
> It looks like previously installed applications have inherited permissions 
> that were given at installation time.
>
> --vt
>

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

2012-07-21 Thread Ubuntu guy
  Hello,

   I'm developing couple of applications which uses a java library
(.jar). Both applications run fine in their own dalvik and things are
fine.
However, the library (although is being shared) is being linked into
the byte code (generated by the compiler) and there by increasing the
memory usage in the device.

   Is there anyway to actually share this library across applications
(dalvik vms)?

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

2012-07-21 Thread Chris Stratton
On Jul 21, 12:37 pm, matt  wrote:
> specifically i am writing a java program, that executes
>
> adb pull /dev/graphics/fb0

Don't do that.  While it works on some devices, it won't work on
others.  There's an executable program called screencap or something
like that, which is what adbd uses to provide screenshots to ddms.

You really should look at the ddms sources and figure out how they are
doing it; otherwise you can try running that program from the shell
and capturing the data it dumps to stdout (though the path back might
not be binary clean?)

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


[android-developers] Re: How to stop terminate the Android application when using the native code

2012-07-21 Thread Chris Stratton
On Jul 20, 11:07 am, Justin Anderson  wrote:
> > I know, i can disable it, so it will work, but i'd like to let the app can
> > run many times again. So i disable the exit(), but when call the second
> > times, it generates errors.
>
> > Could you help?
>
> Debug your code, find the cause of the errors, and fix them...

This is most likely legacy code written with the idea that a process
equals an instance, something that isn't true on android.

Fixing it could require fairly substantial rework.

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

2012-07-21 Thread Ubuntu guy
To be more specific, this is a platform library provided by the OEM
(as an sdk add-on),

   So is the platform library ACTUALLY shared across applications?

On Jul 21, 5:29 pm, Ubuntu guy  wrote:
>   Hello,
>
>    I'm developing couple of applications which uses a java library
> (.jar). Both applications run fine in their own dalvik and things are
> fine.
> However, the library (although is being shared) is being linked into
> the byte code (generated by the compiler) and there by increasing the
> memory usage in the device.
>
>    Is there anyway to actually share this library across applications
> (dalvik vms)?

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

2012-07-21 Thread Jim Graham
On Sat, Jul 21, 2012 at 09:57:34AM -0700, Dianne Hackborn wrote:
> Not sure what you are answering...?  That is not a use case, that is just
> retrieving the values.  Which, again, I recommend not using for anything.

I'm not sure I understand  Are you saying that display.getWidth and
display.getHeight don't return valid numbers?  Or did I miss something?

And if that's the case, why even have them in the developers guide?

Thanks,
   --jim

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

  "'Wrong' is one of those concepts that depends on witnesses."
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

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

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


[android-developers] Jelly Bean conversational TTS?

2012-07-21 Thread Josh Burton
Hi,

The whats new in Jelly Bean page (http://www.android.com/about/jelly-bean/) 
states "Jelly Bean introduces a new conversational text-to-speech voice in 
US English, available as both a network engine and an embedded engine via 
the TTS API."

I get the conversation voice in Google Now, but doing "Listen to example" 
in the Android voice settings, and using the Google TTS engine in my own 
apps just gives me the same voice as in ICS.

How do we access the new Conversational TTS engine?

Thanks
Josh

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

2012-07-21 Thread Vance Turnewitsch
I am using the following code to dynamically hide the TitleBar:

  ViewGroup ob = (ViewGroup) 
findViewById(android.R.id.title).getParent();
  ((View)ob).setVisibility(View.INVISIBLE);
  ob.setLayoutParams(new LinearLayout.LayoutParams(0, 0));
  getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
  
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
  findViewById(android.R.id.content).getRootView().requestLayout();

I am then using the following code to dynamically show the TitleBar:

  ViewGroup ob = (ViewGroup) 
findViewById(android.R.id.title).getParent();
  ((View) ob).setLayoutParams(new 
LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, 
LayoutParams.WRAP_CONTENT));
  ((View)ob).setVisibility(View.VISIBLE);
  
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
  
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
  findViewById(android.R.id.content).getRootView().requestLayout();

This code works on the emulator (using 2.2 and 4.0.3) as well as on a 
device (Motorola Droid running Cyanogenmod 7) with no problems. 
I'm nervous though about using the android.R.id.title in such a way since 
there is no documentation on the title field in android.R.id. Also, all the 
questions/answers/blog posts I found on the internet say that there is now 
way to dynamically remove the title bar after setContentView is called; so 
I'm assuming the method I'm using above is incorrect in some way. 
Is what I am doing safe?

Thanks,
Vance

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

2012-07-21 Thread Harsh Vardhan
My eclipse info:

Eclipse SDK


Version: 3.7.2

Build id: M20120208-0800

So you resorted to some other IDE for android development..which one if
answer is yes?

Kris can you tell me what according you is the problem here..just making
sure that we are on the same page!!

Because I am sure that I haven't leveraged some security loophole here.

On Thu, Jul 19, 2012 at 7:23 PM, Kristopher Micinski  wrote:

> On Thu, Jul 19, 2012 at 6:41 AM, Harsh Vardhan 
> wrote:
> > Well either its a revolutionary break-through or you haven't got what the
> > problem is because its working now.
> >
>
> I would assume you've made a revolutionary breakthrough that has
> evaded security experts in the Android community, this should be
> immediately reported on android-platform, as they should be informed
> of the security hole now.
>
> > The crashing problem was with the eclipse IDE..it was crashing If I put a
> > break point anywhere in my threads.
> >
>
> Ah, annoying,
>
> > There is some stupid problem which vanishes if you remove "Unused
> Imports"
> > from your code. And this happens on arbitrary basis, I have implemented
> and
> > debugged my code earlier with loads of "Unused Imports".
> >
>
> This isn't the topic of this list, but which version of Eclipse are
> you using?  I've found Eclipse to be buggy in general, which is too
> bad, but really, there is a large developer community there, and if
> you'd like to help out you can make sure you're running a version of
> Eclipse that is supposed to work for you, and then capture stack
> traces for them...
>
> kris
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards
Harsh Vardhan

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

2012-07-21 Thread Nikolay Elenkov
On Sun, Jul 22, 2012 at 11:56 AM, Ubuntu guy  wrote:
> To be more specific, this is a platform library provided by the OEM
> (as an sdk add-on),
>
>So is the platform library ACTUALLY shared across applications?
>

Unless you are building your own ROM and add it to the system libraries,
not really.

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

2012-07-21 Thread Scorpio92
I try to compile JB and get this error:
target thumb C: libhardware_legacy <= 
hardware/libhardware_legacy/power/power.c
arm-linux-androideabi-gcc: error: ": No such file or directory
make: *** 
[out/target/product/swift/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o]
 
Error 1


arm-linux-androideabi-gcc: error: ": No such file or directory - what does 
it mean??? File hardware/libhardware_legacy/power/power.c is available...
I very need in help! Thanks for any help!

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

Re: [android-developers] Re: Adding functions dynamically from application to Jar

2012-07-21 Thread Kristopher Micinski
Personally I use emacs for android development...

My comment as to your finding a security loophole was merely sarcasm...

Kris
On Jul 21, 2012 11:35 PM, "Harsh Vardhan"  wrote:

> My eclipse info:
>
> Eclipse SDK
>
>
> Version: 3.7.2
>
> Build id: M20120208-0800
>
> So you resorted to some other IDE for android development..which one if
> answer is yes?
>
> Kris can you tell me what according you is the problem here..just making
> sure that we are on the same page!!
>
> Because I am sure that I haven't leveraged some security loophole here.
>
> On Thu, Jul 19, 2012 at 7:23 PM, Kristopher Micinski <
> krismicin...@gmail.com> wrote:
>
>> On Thu, Jul 19, 2012 at 6:41 AM, Harsh Vardhan 
>> wrote:
>> > Well either its a revolutionary break-through or you haven't got what
>> the
>> > problem is because its working now.
>> >
>>
>> I would assume you've made a revolutionary breakthrough that has
>> evaded security experts in the Android community, this should be
>> immediately reported on android-platform, as they should be informed
>> of the security hole now.
>>
>> > The crashing problem was with the eclipse IDE..it was crashing If I put
>> a
>> > break point anywhere in my threads.
>> >
>>
>> Ah, annoying,
>>
>> > There is some stupid problem which vanishes if you remove "Unused
>> Imports"
>> > from your code. And this happens on arbitrary basis, I have implemented
>> and
>> > debugged my code earlier with loads of "Unused Imports".
>> >
>>
>> This isn't the topic of this list, but which version of Eclipse are
>> you using?  I've found Eclipse to be buggy in general, which is too
>> bad, but really, there is a large developer community there, and if
>> you'd like to help out you can make sure you're running a version of
>> Eclipse that is supposed to work for you, and then capture stack
>> traces for them...
>>
>> kris
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Regards
> Harsh Vardhan
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Usage of DisplayMetrics

2012-07-21 Thread Agus
You missed something which is that :

"use cases" are different than "how to use".

On Sat, Jul 21, 2012 at 8:02 PM, Jim Graham  wrote:

> On Sat, Jul 21, 2012 at 09:57:34AM -0700, Dianne Hackborn wrote:
> > Not sure what you are answering...?  That is not a use case, that is just
> > retrieving the values.  Which, again, I recommend not using for anything.
>
> I'm not sure I understand  Are you saying that display.getWidth and
> display.getHeight don't return valid numbers?  Or did I miss something?
>
> And if that's the case, why even have them in the developers guide?
>
> Thanks,
>--jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)MiSTie #49997  < Running Mac OS X Lion >
> spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W
>
>   "'Wrong' is one of those concepts that depends on witnesses."
>  --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)
>
> Android Apps Listing at http://www.jstrack.org/barcodes.html
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: sharing jars across applications

2012-07-21 Thread Ubuntu guy
>> add it to the system libraries

 Do you mean framework.jar?

On Jul 21, 8:55 pm, Nikolay Elenkov  wrote:
> On Sun, Jul 22, 2012 at 11:56 AM, Ubuntu guy  wrote:
> > To be more specific, this is a platform library provided by the OEM
> > (as an sdk add-on),
>
> >    So is the platform library ACTUALLY shared across applications?
>
> Unless you are building your own ROM and add it to the system libraries,
> not really.

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

2012-07-21 Thread Nikolay Elenkov
On Sun, Jul 22, 2012 at 3:20 PM, Ubuntu guy  wrote:
>>> add it to the system libraries
>
>  Do you mean framework.jar?

Not necessarily, but same idea. System libraries (including framework.jar)
are preloaded by the OS and shared by all applications.

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