[android-porting] Re: Problem in createOverlay,may cause overlay surface not displayed for long time

2009-05-31 Thread tony
My suggestion is to add following lines to the end of LayerBuffer::OverlaySource::OverlaySource(): mVisibilityChanged = true; mLayer.requestTransaction(); mLayer.mFlinger->signalEvent(); After the above line is added,the black screen problem disappeared when playback a video. --~--~-~--~

[android-porting] Re: Access device files from Java Android Apps

2009-07-05 Thread tony
You can add permission in the file manifest.xml and Android.mk,maybe platform certificate suits your request. On Jul 5, 12:25 pm, Puneet wrote: > Hi everybody, > > I am trying to run Android on my prototype phone. The phone has a > sensor (a device that reports its orientation to the phone) atta

[android-porting] Re: If Java nested class has native method,how to register the class methods?

2009-07-06 Thread tony
> registration.  Are you sure the registration call is returning JNI_OK? > > On Jul 6, 5:54 am, wu tony wrote: > > > > > class A{ > > static { > > System.loadLibrary("test");}; > > > ... > > public B() > > {} > > >  privat

[android-porting] Re: out of memory for Surfaces.

2009-07-07 Thread tony
The issue should be caused by too many surface exist at one time,you can dump service info to check it.Then you can check if so much surface is really needed,if yes I guess you should increase it. On 7月8日, 上午7时20分, ysadhu wrote: > Hi All, > > I am Getting out of Memory for Surfaces, while runnin

[android-porting] Link error when link with 3rd party static library

2009-08-10 Thread tony
I need to link the static library provided by 3rd party to a shared library,and in the Android.mk I use: LOCAL_STATIC_LIBRARIES += vendorlib PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/$(VENDOR_LIB_PATH)/vendorlib.a:obj/lib/vendorlib.a The compile and link works in the previous android release.But

[android-porting] Re: Link error when link with 3rd party static library

2009-08-13 Thread tony
Let's describe more of my case: The static lib vendorlib1.a vendor2.a is located at external/vendor/ My project is located at frameworks/base/test/ Hi RaviY, Thanks for your comments first. When use include $(BUILD_MULTI_PREBUILT) ,the linker will complain all the symbol used is umdefined as if

[android-porting] Re: Link error when link with 3rd party static library

2009-08-13 Thread tony
I have one question for the change: How android know the location of the static library as we don't give the absolute path of the files?I add the path in LOCAL_PREBUILT_LIBS but also get same error. And I got below erorr with your suggested change: make: *** No rule to make target `out/target/pro

[android-porting] Re: Link error when link with 3rd party static library

2009-08-14 Thread tony
Unfortunately,I got same error even if I put the lib in the same directory. --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~--~~~~--~~--~--~---

[android-porting] Re: Link error when link with 3rd party static library

2009-08-18 Thread tony
It works after add new target NOTICE-TARGET-STATIC_LIBRARIES-libvendor1 --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~--~~~~--~~--~--~---

[android-porting] Re: Getting "lock_layer timed out (is the CPU pegged?) "

2009-09-15 Thread tony
Should mean the surfaceflinger work thread is blocked. --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~--~~~~--~~--~--~---

[android-porting] Re: Android build error for superh arch

2010-06-22 Thread tony
You MUST modify your kernel for Android. Just download both BSP and compare the different in kernel. Then add the diff into your kernel. https://oss.renesas.com/modules/download/index.php?cid=66 https://oss.renesas.com/modules/download/index.php?cid=62 Or maybe you can download android kernel her

[android-porting] What type of this .img file?

2011-06-04 Thread Tony
hint what these file are and how can I open or extract(repack) it? Is it a type of file system? Tony -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Fun Time...

2009-03-21 Thread Tony
Hi, Want Funny Jokes, Funny Pics, Funny Vidos ??? Visit www.reallyfunny.co.cc and following links of your desire... --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~

[android-porting] Re: ACCESS_SURFACE_FLINGER permission confusion

2009-05-05 Thread tony
Hi Dianne, Does it mean we can grant permission like ACCESS_SURFACE_FLINGER in the camera application which is part of system? But it also fail to grant permission. B.R Tony On 3月17日, 上午12时51分, Dianne Hackborn wrote: > On Mon, Mar 16, 2009 at 8:28 AM, F H wrote: > > Is it intended

[android-porting] Re: ACCESS_SURFACE_FLINGER permission confusion

2009-05-05 Thread tony
*.apk How can we specify the permission ACCESS_SURFACE_FLINGER? B.R Tony On 5月5日, 下午3时38分, Dianne Hackborn wrote: > You need to be signed with the platform certificate. But the stuff this > permission protects is really not intended to be used directly by > applications -- the win

[android-porting] Re: ACCESS_SURFACE_FLINGER permission confusion

2009-05-05 Thread tony
Hi Dianne, The idea is to use Surface.setFlags() to pass a special flag so that LayerBuffer can decide if it supports orientation change. B.R Tony --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com

[android-porting] Porting to x86 platform

2009-06-29 Thread Tony Hoyle
resly prepared USB stick. Surely there's a prebuilt one? Once it's booted it is just a standard x86 linux system with a framebuffer. There's no even any sound to worry about (not supported by ALSA), and all it needs to do is display stuff and respond to the touch screen... T

[android-porting] If Java nested class has native method,how to register the class methods?

2009-07-06 Thread wu tony
class A{ static { System.loadLibrary("test"); }; ... public B() { } private native static void native_ClassInit(); } When try to register using env->RegisterNatives(env,"com/test/A$B",bMethodssizeof(medthods) /sizeof(medthods[0])); I got the following error: Error info: No implementation found

[android-porting] Battery Use application porting problems

2009-11-05 Thread tony You
ofile.xml and BatteryStatsImpl.java. Is the power information of "Battery Use" accurate enough to represent power consumption in real world? Thanks a lot Tony -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

Re: [android-porting] Battery Use application porting problems

2009-11-08 Thread tony You
y? There are lots of hardware components runing simultaneously and embedded on the board. I could not figure the method of power measuring out. Best Regards, Tony 2009/11/8 Dianne Hackborn > We have generated this information by using a Monsoon attached to a device, > measuring the di

[android-porting] How to add 3rd party library

2009-12-17 Thread tony makkiel
s me error stating the functions defined in the library libgps_com.so could'nt be found. So I have clearly done something wrong in either the first make file or the second one in $(android)/framework/base/ core/jni/Android.mk. But I dont have any idea what is wrong... Somebody help please... Tha

[android-porting] Re: cant compile android tree git://android.git.kernel.org

2010-03-15 Thread Tony Donadio
Does anyone have any feedback on this? I'm seeing the same problem (building on Ubuntu under Virtualbox). On Mar 5, 2:20 pm, genxsol wrote: > Hi Dear, > > i am not able tocompilethe Android tree from git://android.git.kernel.org > > collected 3102 test methods in 225 junit test classes > Exceptio

[android-porting] Can set constant rate into wifi driver of Dev 1?

2010-04-06 Thread tony You
Dear all, Autorate is used in TI wifi driver. How can i set the rate to constant value, say 11Mbps? Best Regards, Tony -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting To unsubscribe, reply using "remove me" as the subject.

[android-porting] who can help me

2010-07-12 Thread 4K^tony
Now i want to modify the source code of CTS,in order to check the hardware,but I can not get any data by get mGpsSatellite.getAzimuth() and mGpsSatellite.getElevation(),i want to use"assertFalse(""+mGpsSatellite.getAzimuth(),mGpsSatellite.getAzimuth() >= 0 && mGpsSatellite.getAzimuth() <= 360);"to

[android-porting] how to get the actual data of GPS?

2010-07-12 Thread 4K^tony
i try to get the data by CTS test ,but fail,who can tell me how to resolve this provblem?Thanks! My code and results are as follows: package android.location.cts; import dalvik.annotation.TestLevel; import dalvik.annotation.TestTargetClass; import dalvik.annotation.TestTargetNew; import dalvik.an

[android-porting] who can help me to solve the probl em how to check gps engine by cts?

2010-07-12 Thread 4K^tony
i want to check the Gps devices by CTS test,but i can not get any data expected,i just want to read the azimuth\elevation and so on, the result can be shown by "assert()" or "fail()" ,who can help me? Thanks! My source code as follows: /* * Copyright (C) 2008 The Android Open Source Project * *

[android-porting] Froyo Emulation Problem with QEMU

2010-09-10 Thread Tony Stark
Hello guys i'm a newbie in the android porting (i'm starting to port the platform about ten fays ago). I'm trying to build the android kernel for the arm1136jf-s (ARMv7 family), downloaded with GIT and i have installed all the requisite to compile the platform. I have few questions: 1 - The t

[android-porting] How to use pppoe to connect using ethernet on Android?

2012-06-25 Thread Tony Huang
My device has an Ethernet port, and I want use this port to connect network use pppoe. And the device system is Android 2.3.1. Anybody know how to use pppoe to connect network? Give me some hint thanks~ -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.co

[android-porting] Re: About VM memory restriction

2009-03-20 Thread wu tony
Jean, Thanks for the info. Do you know how can we view the java memory usage status?I met the "Out of Memory " problem but there's no efficient way to decide the cause. --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://

[android-porting] About porting dalvik to Symbian

2009-04-01 Thread Tony Chang
Does porting dalvik runtime to Symbian be feasible? Can anybody give some suggestion? S60 has a P.I.P.S library which supports POSIX APIs. I don't how hard it will be to port dalvik to symbian. I post this message to android-platform. They suggest me to post it here. --~--~-~--~~--

[android-porting] Contribute SuperH code to Android

2009-05-11 Thread Tony SIM
Hi, We have ported Android to a SuperH platform, AP-3300(CPU:SH7723). and we would like to contribute the change to review server. How to add a new architecture to AOSP? We could not find any topics regarding new CPU add in mailing list though. should we simply follow regular steps described at