P Chitty | 17 Sep 03:14 2013

Changing the layout of the AlertDialog

I am working on changing the look of the BluetoothPairingDialog from package/Settings/

BluetoothPairingDialog is an AlertDialog, and I was able to change the theme by changing the theme attributes

from Settings/AndroidManifest.xml

and from framework/base/core/res/res/value/styles_device_defaults.xml

I added a few modifications to title header by adding a few items under

<style name="DialogWindowTitle.DeviceDefault" parent="DialogWindowTitle.Holo">




but when I try to change the layout of the AlertDialog to another layout xml file by adding

<item name="layout"> <at> android:layout/my_alert_dialog</item>

to

<style name="AlertDialog.DeviceDefault" parent="AlertDialog.Holo">

it did not work.

I have /layout/my_alert_dialog.xml , which is a copy of alert_dialog_holo.xml with different divider color.



The reason I tried to add that item to the style is that I found

<item name="layout"> <at> android:layout/alert_dialog_holo</item>

from 

<style name="AlertDialog.Holo" parent="AlertDialog">

inside values/styles.xml

When I put that xml inside styles.xml it changes, which means even though I set the theme to DeviceDefault the layout wasn't applied.

But only layout wasn't applied since other modifications specific to devicedefaults were taken into effect.



Does anyone know why this change is not taking effect? Thank you in advance!

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Pranav Tipnis | 16 Sep 07:21 2013

Adding video playback support with software codecs and software opengl

Hello everyone,

I am trying to get video playback running on our board which does not have mali support (HW accelerated graphics). Before adding hardware codec, I was trying to get it working with software omx codecs.

What is the procedure for this? Do we have to add YUV support in default gralloc and software opengl library? If not, do we have to convert YUV to RGB in stagefright? how can I do that? Is there any document for it?

Thanks in advance

Regards,
Pranav

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
sandeep joshi | 13 Sep 20:34 2013
Picon

Connect Wifi Dongle using OTG Connector

Hi all ,

I am new to android and linux platform . I want to support Wifi dongle for Android 4.0.4 and 2.3.6 using OTG connector.

So can I get help related to ,

how to choose wifi dongle specification ?
do i need to write different driver for both of the device ?
from where i can get existing drivers source code ?

And the actual procedure to do this ?

Any kind of tutorial , which explains this procedure would be great help for me . 

Thank you .

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Oleg Kazakov | 10 Sep 10:11 2013
Picon

How to get familiar with android BSP development/porting for specific embedded platform?

Hello,

I am system developing engineer.
I am quite new for android development but I have a huge background for system development for other embedded platform like Windows CE, Linux.
My goal is to find any doc that can help me to understand the android OS development process from boot loader, Linux kernel, android core up to developing system drivers/services.
My experience with android 3-4 months so I am already familiar with android application development (has a lot of well developed documentation and 3rd party references),
I also familiar with native NDK based development (this field is not documented well but still it is acceptable). 
I tried to understand the system android code but I did not find any useful docs related.
I know that I can use open source and try to understand the internal architecture from it, but it will take a lot of time and probably it is not a good way to learn the architecture from the bottom and maybe just impossible to understand such big resource. 
For example one of my task is modifying android display composition module according to our system requirements (such modification must not affect the basic android functionality).
I spent almost one month even with good TRACE32 debuger, that allow to debug system level code, but still I did not get the architecture between WindowManager and SurfaceFlinger/HWComposer.
As I checked android internally developed very well compare to other embedded OS. It uses completely OOP approach and it is not difficult to understand specific object functionality, 
but it almost impossible to get the total architectural concept. Even making the brake point on specific place, it is almost impossible to understand how was initiator for such event.
I do not believe that such good code was developed without any docs, so such docs must exist.

I'll be very appreciated if someone can give me any tips where can I find good docs related to android BSP development/porting and android internal functionality.
It does not matter if it will cost some money or it will require to participate to specific android partner program or licensing.
If someone knows the education program or specific seminars it could be also a solution.

Sorry for such big post.
Best regards.
Oleg

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Liu Xin | 10 Sep 03:49 2013
Picon

libaio for android

Hi, Developers, 

Do you know that libaio of redhat has been ported to android? 


I am working on a project which refers to it. I found android doesn't have POSIX AIO and libaio neither. 

thanks,
--lx




--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
jonel nasemadhi | 8 Sep 11:43 2013
Picon

install android

hello i have a samsung f480i. i have a question: can i install any version of android OS? If yes how can i do it???

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
TejAs PaTil | 6 Sep 09:10 2013
Picon

tsc2004 touchscreen ics

Hi all,
Porting ics on ti8168. Using tsc2004 touchscreen interface.
Check cat /proc/interrupts when touch on screen  GPIO tsc2004
incremented & getevent utility  for testing all devices events are generated.

root <at> android:/ #  cat /proc/interrupts
123:          0        INTC  omap-iommu.0
179:          0        GPIO  1-0022
183:          2        GPIO  tsc2004
184:          0     tca6424  Power Button
193:          0     tca6424  LEFT button
194:          0     tca6424  UP button
195:          0     tca6424  RIGHT button
196:          0     tca6424  DOWN button
 
root <at> android:/ # getevent                                                     
add device 1: /dev/input/event1
  name:     "TSC2004 Touchscreen"
could not get driver version for /dev/input/mouse0, Not a typewriter
could not get driver version for /dev/input/mice, Not a typewriter
add device 2: /dev/input/event2
  name:     "power-button"
add device 3: /dev/input/event0
  name:     "gpio-keys"
/dev/input/event1: 0001 014a 00000001
/dev/input/event1: 0003 0000 000002d5
/dev/input/event1: 0003 0001 00000090
/dev/input/event1: 0003 0018 00000017
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0001 014a 00000000
/dev/input/event1: 0003 0018 00000000
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0001 014a 00000001
/dev/input/event1: 0003 0018 00000015
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0003 0018 00000023
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0003 0000 000002d1
/dev/input/event1: 0003 0001 00000093
/dev/input/event1: 0003 0018 0000004e
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0001 014a 00000000
/dev/input/event1: 0003 0018 00000000
/dev/input/event1: 0000 0000 00000000
/dev/input/event0: 0001 006c 00000001
/dev/input/event0: 0000 0000 00000000
/dev/input/event0: 0001 006c 00000000
/dev/input/event0: 0000 0000 00000000
/dev/input/event2: 0001 001c 00000001
/dev/input/event2: 0000 0000 00000000
/dev/input/event2: 0001 001c 00000000
/dev/input/event2: 0000 0000 00000000


But, Touchscreen not working in android .
Error comes in logcat ANR application is not responding (ANR).
logcat :-
V/EventHub(  134): /dev/input/event1 got: t0=1785654176, t1=963600, type=0, code=0, value=0
V/EventHub(  134): event time 1785654176963600000, now 143303514073
I/InputDispatcher(  134): Dropped event because the current application is not responding and the user has started interacting with a different applion.


logcat when EventHub added devices :-
W/InputManagerService(  131): Couldn't create dir.: /data/system/inputmethod
I/EventHub(  131): New device: id=2, fd=91, path='/dev/input/event2', name='power-button', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/power-button.kl', keyCharacterMap='/system/usr/keychars/power-button.kcm', builtinKeyboard=false
V/EventHub(  131): Opening device: /dev/input/event0
D/EventHub(  131): No input device configuration file found for device 'gpio-keys'.
W/ResourceType(  131): Failure getting entry for 0x7f060000 (t=5 e=0) in package 0 (error -75)
I/EventHub(  131): New device: id=3, fd=101, path='/dev/input/event0', name='gpio-keys', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/gpio-keys.kl', keyCharacterMap='/system/usr/keychars/gpio-keys.kcm', builtinKeyboard=false
V/EventHub(  131): Reporting device opened: id=3, name=/dev/input/event0
V/EventHub(  131): Reporting device opened: id=2, name=/dev/input/event2
V/EventHub(  131): Reporting device opened: id=1, name=/dev/input/event1
I/InputReader(  131): Device added: id=3, name='gpio-keys', sources=0x00000101
I/InputReader(  131): Device added: id=2, name='power-button', sources=0x00000101
I/InputReader(  131):   Touch device 'TSC2004 Touchscreen' could not query the properties of its associated display 0.  The device will be inoperable until the display size becomes available.
I/InputReader(  131): Device added: id=1, name='TSC2004 Touchscreen', sources=0x00001002
V/EventHub(  131): wake() called
V/EventHub(  131): awoken after wake()
I/InputReader(  131): Reconfiguring input devices.  changes=0x00000004
I/InputReader(  131): Device reconfigured: id=1, name='TSC2004 Touchscreen', surface size is now 800x480, mode is 1

idc file for tsc2004 is :
root <at> android:/ # cat system/usr/idc/tsc2004.idc
touch.deviceType = touchScreen
touch.orientationAware = 1

touch.size.calibration = none
touch.orientation.calibration = none

tsc2004 driver work in SDK . but Android application InputDispatcher gives me error..
any one help me what happen ??




--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
srihari babu | 6 Sep 14:41 2013
Picon

How to increase android native memory size in gingerbread version?

Android Gingerbread version have two kinds of memories, native memory and heap memory.
Native memory for native apps and heap memory for android apps.
in my system we are facing native memory scarcity(I can conform this by looking at garbage collector prints).
How to increase native memory share in my system.

Regards,
Srihari.

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
ramya mohan | 6 Sep 14:43 2013
Picon

Android JB : Never timeout option

Hi All,

I am porting Android JB on OMAP4 based platform.

I am trying to add support for Never timeout option to screen timeout preference.
The value for never timeout is -1.

With this support, the android screen timeouts in 10 seconds.
I understood, from the PowerManagerService file, the minimum timeout option set is 10 sec.

Now how do I change this behavior.
Is anyone ever tried it?

Changing the minimum timeout value in the PowerMangerService alone will allow this option to work or is there any other work around.

Any inputs??

Thanks in advance.

Regards,
Ramya.

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Puneet B | 5 Sep 12:54 2013
Picon

Driver for graphics

I am using lychee kernel 3.0.8.android 4.0.4.

once i booted android successfully. i run An tu tu benchemark apk.

Then i got very low score for 2D and 3D.

So i unable to play games like temple run and all.

Can you kindly suggest what will be need to check to increase graphics score.


Regards
Punith

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Terrance Leverette | 3 Sep 07:37 2013
Picon

porting Aosp Ics to LG Optimus G LGE970

I have an ambitious, and to some a confusing and pointless project I'm undertaking. I'm trying to create
Aosp rom source for the LG Optimus G. There is source for Jellybean with the Nexus 4 (Mako) source, but are no
ICS Aosp sources directly compatible with my device- I'm looking to change that. Jellybean isn't bad, nor
is ICS stock with the Optimus G, but I feel like I should have the luxury of more choice for ICS Aosp. Creating
an ICS source would allow for a level of quick development for my community if it were interested, and who
doesn't like having options?

So far, I've tried compiling Aosp ICS for the Galaxy Nexus (Maguro) to make sure my build environment was
suitable to build for ICS. If successful, the goal was to attempt a port to my device somehow. Biggest issue
would likely be kernel related and hardware differences.. So I concluded that this task would be easier if
I were able to build it for the Nexus 4 and then directly pull over. Then thought finally, why not just go back
to porting Aosp to the Optimus G?

Well here's the thing, my device is pretty much exactly the same as a Nexus 4. Similar partitions, same
processor, same camera, same internal memory. So building for the Nexus 4 would actually be easiest I
believe. So it turns into: how do I go about porting Aosp Ics to a device built running Jellybean 4.2?
Theoretically, it should be more than capable of running it. If devices can be upgraded from native ICS 4.0
to Jellybean 4.3, why can't a device built running native 4.2 be downgraded to 4.0?

I just need a starting point and I'll be good to go. 

-- 
--

-- 
unsubscribe: android-porting+unsubscribe@...
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe@...
For more options, visit https://groups.google.com/groups/opt_out.


Gmane