Re: [android-developers] Re: 9.png file not spanning the LinearLayout when android:paddingBottom is specified

2013-07-01 Thread Piren
There's no such thing as content area, it's just a way to describe where 
the padding starts and ends in relation to the size of the entire element 
and elements it contains, which basically translates to the 4 padding 
variables (which is probably partially why you can only define one region, 
unlike the stretching areas).
When you overwrote the padding variables, the content area definition got 
zeroed out, without knowing where to place the contents, it also doesn't 
know how to stretch the background properly

On Sunday, June 30, 2013 10:56:42 PM UTC+3, Shri wrote:

 That kind of makes sense. However, even if the padding gets overwritten, 
 the Button should still be over the red background since that is the 
 content area of the 9.png. Why would the Button be positioned on the drop 
 shadow (the non-content area of the 9.png)? Seems like there is some 
 undefined non-intuitive behavior happening whereas it would be preferable 
 for either of the defined padding to be applied (as that would the 
 intuitive behavior).


 On Sat, Jun 29, 2013 at 11:54 PM, Piren gpi...@gmail.com javascript:wrote:

 Part of what 9patches do is define padding... if you define them on your 
 own you'll overwrite the settings provided by the 9patch.

 On Saturday, June 29, 2013 2:10:36 AM UTC+3, Shri wrote:

 I have the following layout file which uses the attached 9.png. It 
 results in the attached screenshot where the red background from the 9.png 
 does not extend all the way behind the button. If I remove the 
 android:paddingBottom=1dp attribute below, things work as I expect. Is 
 this behavior expected (if so, why), or is this a bug?

 Thanks,
 Shri

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.**
 android.com/apk/res/android http://schemas.android.com/apk/res/android
 
 android:id=@+id/container
 android:orientation=vertical
 android:layout_width=match_**parent
 android:layout_height=match_**parent
 android:background=#ff 
 LinearLayout
 android:id=@+id/view_with_**drop_shadow
 android:orientation=vertical
 android:paddingBottom=1dp
 android:layout_width=match_**parent
 android:layout_height=wrap_**content
 android:background=@drawable/**red_background_with_drop_**shadow 
 
 
 Button
 android:text=Hello
 android:layout_width=wrap_**content
 android:layout_height=48dip /
 
 /LinearLayout
 /LinearLayout

  -- 
 -- 
 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.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 a topic in the 
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/android-developers/oXTXTevOqEE/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 android-developers+unsubscr...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Horizontal ListView Adapter

2013-07-01 Thread Piren
The link you provided already has various implementations. Also, i highly 
doubt Google would use any implementation made on this list, especially 
since the guy that wrote the regular ListView is reading it :)
Besides, you can just take the source code of the ListView and modify it to 
be horizontal, shouldn't take long.

No point of bitching about missing features, since everyone will have at 
least one missing feature and you can't really please everyone.. though 
there are some very glaring missing features (textviews that resize the 
text, textviews that wrap text and wrap content properly, lazy loaded 
galleries, proper way to shove UI elements and etc).

I just program them all myself and ended up pretty much using mainly my own 
custom components, honestly - thats the most fun thing with android 
development :) i enjoyed making my components much more than actual code :-D

P.S - I know that the neighbors' grass is always greener, but i'm not sure 
that's really not the case with iOS development... Although in some aspects 
they have things easier (mainly making prettier, more responsive animated 
UI), they really lack when it comes to other areas... From my experience, 
pretty much on most fronts they always had it harder (and took longer) to 
implement things than it did for me, without even going into things i could 
do they just couldn't since their system is much more limiting and closed. 
Also, they need to code in Objective C, who the fuck wants that? :-D

On Sunday, June 30, 2013 11:20:46 PM UTC+3, Charx wrote:

 My Point Exactly i thought let's try another audience, anybody feels like 
 helping me building a horizontal listview adapter for Google so they can 
 implement it in there support library or upcoming Api? 

 Or is there another thread where we can bitch about features that should 
 have been build a long time ago? Maybe that way someone feels obligated to 
 develop one ^^. Or maybe i should just move my workstation away from my 
 adversary iOS colleague where everything goes so easy :(

  

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Sudoku like grid screen with many ontouch listeners

2013-07-01 Thread Shadab Khatib
I am trying to prepare a screen interface which has a grid like sudoku or 
any word placing game, with many  ontouch listeners. But when I use the 
grid layout there are just many number of rows and columns and I am not 
able to understand how to access specific set of ontouch listener points.
Can any one assists me by telling me how to set atleast one point on the 
grid layout to use?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Run http server in android

2013-07-01 Thread jrichards1...@googlemail.com
anyone?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Single application with tablet and handheld mobile device capability

2013-07-01 Thread Shadab Khatib
I would like to know that is there any way that I can make a single 
application and set it to detect whether it was installed on tablet or a 
mobile device(small screen) by itself. 
Or do I have to make two separate applications for various screen sizes and 
android builds?

I also want to know how to compile the application for android build other 
than Android 4.2.2 which comes directly as a part of the software bundle in 
the Android Studio?

I tried to import the libraries in the project settings by pressing F4 on 
the project folder. It was successfully imported and it is showing it as a 
part of the extended libraries but while compiling the project it does not 
compile forAndroid 2.3.3. build. I came to know this because when I 
connect my phone and compile it considering that as a target device it says 
Compatible No.But says Compatible Yes for tablet which runs the Android 
4.1.2 build.

I even changed the Android minsdk=(10) for the Android 2.3.3 and 
maxsdk=(14||15||16) for Android 4.1.2 builds  support in the Android 
Manifest but still no effect.

Can anyone please help. If nothing can be done I will revert back to the 
eclipse environment.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Sudoku like grid screen with many ontouch listeners

2013-07-01 Thread Piren
you only need one onTouchListener... iterate all the children of the grid, 
assign the same listener to them all, also assign each child a specific tag 
that marks it (can be a class that holds it's x,y coordinates, a unique 
name that does that, whatever floats your boat). Then when the touch event 
is called, you can get the Sender's Tag and figure out who was pressed.

You can also do the same without tags if you assign unique IDs to each 
child view. 

On Monday, July 1, 2013 11:13:50 AM UTC+3, Shadab Khatib wrote:

 I am trying to prepare a screen interface which has a grid like sudoku or 
 any word placing game, with many  ontouch listeners. But when I use the 
 grid layout there are just many number of rows and columns and I am not 
 able to understand how to access specific set of ontouch listener points.
 Can any one assists me by telling me how to set atleast one point on the 
 grid layout to use?


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Use actionbar settings dropdown options to start new activity

2013-07-01 Thread Shadab Khatib


On Thursday, 27 June 2013 22:41:05 UTC+5:30, MagouyaWare wrote:

 We could help you better if you shared the relevant code...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Sat, Jun 22, 2013 at 2:29 PM, Shadab Khatib 
 shadab...@gmail.comjavascript:
  wrote:

 How can I use the actionbar's settings dropdown menu's items to open a 
 new acitivity?
 Is it the same way as we write to open new activity for menu or is it 
 using ActionBar class.
 The app is working fine but the new activity is not starting. I have 
 entered the activity in the manifest only with it's name attribute.
 What is the solution to this?


I have a menuitem which I want link to a overlay activity which takes data 
through many edittext and other (layout , widget, containers) parameters. 
Can this be done?
If yes I would post my code.






 

  




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




Re: [android-developers] Horizontal ListView Adapter

2013-07-01 Thread Charx
True, i guess it's also a matter of experience and time an individual has. 
Do you maybe know where i can get the ListView.java from the original 2.3.x 
Android source code? 

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




Re: [android-developers] Horizontal ListView Adapter

2013-07-01 Thread Piren
Google it :)

You better google Adt-Addons instead, it has a plugin that attaches the 
android source code to your jars, very useful :)

On Monday, July 1, 2013 12:00:58 PM UTC+3, Charx wrote:

 True, i guess it's also a matter of experience and time an individual has. 
 Do you maybe know where i can get the ListView.java from the original 2.3.x 
 Android source code? 

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




[android-developers] Re: Single application with tablet and handheld mobile device capability

2013-07-01 Thread Piren
You should read the information on Android Developers before you start 
working and way way before you start posting questions.
All your questions are answered right there in the documents, they are just 
sitting there waiting for you to read them.



On Monday, July 1, 2013 11:29:07 AM UTC+3, Shadab Khatib wrote:

 I would like to know that is there any way that I can make a single 
 application and set it to detect whether it was installed on tablet or a 
 mobile device(small screen) by itself. 
 Or do I have to make two separate applications for various screen sizes 
 and android builds?

 I also want to know how to compile the application for android build other 
 than Android 4.2.2 which comes directly as a part of the software bundle in 
 the Android Studio?

 I tried to import the libraries in the project settings by pressing F4 on 
 the project folder. It was successfully imported and it is showing it as a 
 part of the extended libraries but while compiling the project it does not 
 compile forAndroid 2.3.3. build. I came to know this because when I 
 connect my phone and compile it considering that as a target device it says 
 Compatible No.But says Compatible Yes for tablet which runs the Android 
 4.1.2 build.

 I even changed the Android minsdk=(10) for the Android 2.3.3 and 
 maxsdk=(14||15||16) for Android 4.1.2 builds  support in the Android 
 Manifest but still no effect.

 Can anyone please help. If nothing can be done I will revert back to the 
 eclipse environment.


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Camera can not open, crash randomly.

2013-07-01 Thread Huang, Habzy(Shan)
There is a log: Out of memory
Can it be the camera need a long continuous memory, but at that time there 
is no continuous long memory?
I know little about camera hardware device.
Any one knows?

Thanks a lot.

在 2013年6月28日星期五UTC+8下午6时48分17秒,Huang, Habzy(Shan)写道:

 Hi, I try to develop a android application with front camera. But I can 
 not find the reason for this random crash.
 Is there any one meet the same issue? Or can some one help me to  find the 
 reason? Thanks.

 1. I'm sure I've released the camera after the last used.
 2. The crash main log is Fail to connect to camera service
 3. Here is the detail log.

 After call camera.open(1).
 D/SecCameraHardware( 1904): LSIHAL int android::HAL_getCameraInfo(int, 
 camera_info*)
 D/SecCameraCoreManager( 1904): SecCameraCoreManager created: pid=1904, 
 cameraId=1
 I/SecCameraCoreManager( 1904): Opening camera 1
 D/SecCameraHardware( 1904): LSIHAL int 
 android::HAL_camera_device_open(const hw_module_t*, char const*, 
 hw_device_t**)
 D/SecCameraHardware( 1904): LSIHAL int android::HAL_getNumberOfCameras()
 D/SecCameraHardware( 1904): LSIHAL int 
 android::HAL_camera_device_open(const hw_module_t*, char const*, 
 hw_device_t**): open camera 1
 D/SecCameraHardware( 1904): init E
 V/SecCameraHardware( 1904): FimcV4l2 init: /dev/video0, fd(37)
 V/SecCameraHardware( 1904): FimcV4l2 init: camera[1] ISP Camera
 ===
 After a long while log And here are many logs about audio device
 ===
 E/SecCameraHardware( 1904): FimcV4l2 init: error -1, open /dev/video1 
 (error : Out of memory)
 E/SecCameraHardware( 1904): initCamera X: error, /dev/video1
 V/SecCameraHardware( 1904): FimcV4l2 deinit EX
 D/SecCameraHardware( 1904): nativeGetDebugAddr paddr = 0x7084b000
 D/IS_FW_DEBUG( 1904): [0x:0x]
 D/IS_FW_DEBUG( 1904): +++Init()
 D/IS_FW_DEBUG( 1904): [0x0001:0x][MAIN] +++CMCUControl(E018)
 D/IS_FW_DEBUG( 1904): [0x0002:0x][MAIN] ---CMCUControl()
 D/IS_FW_DEBUG( 1904): [0x0003:0x][MAIN] MessageID(Start : 1, 
 Number 50)
 D/IS_FW_DEBUG( 1904): [0x0004:0x][MAIN] +++CMainControl()
 D/IS_FW_DEBUG( 1904): [0x0005:0x][MAIN] IS Remap Addr : 0x
 D/IS_FW_DEBUG( 1904): [0x0006:0x][MAIN] IS Region Size : 9540, 48
 D/IS_FW_DEBUG( 1904): [0x0007:0x][MAIN] 2256 12720 2032 2256 3088
 D/IS_FW_DEBUG( 1904): [0x0008:0x][MAIN] Parameter Region : 
 0x009FB000
 D/IS_FW_DEBUG( 1904): [0x0009:0x][MAIN] Header Region[0] : 
 0x009FC674
 D/IS_FW_DEBUG( 1904): [0x000a:0x][MAIN] Header Region[1] : 
 0x009FC6A4
 D/IS_FW_DEBUG( 1904): [0x000b:0x][MAIN] Header Region[2] : 
 0x009FC6D4
 D/IS_FW_DEBUG( 1904): [0x000c:0x][MAIN] Header Region[3] : 
 0x009FC704
 D/IS_FW_DEBUG( 1904): [0x000d:0x][MAIN] Face Region : 0x009FC7F4
 D/IS_FW_DEBUG( 1904): [0x000e:0x][MAIN] Create Task : MainTask
 D/IS_FW_DEBUG( 1904): [0x000f:0x][MAIN] ---CMainControl(1)
 D/IS_FW_DEBUG( 1904): [0x0010:0x]---Init()
 D/IS_FW_DEBUG( 1904): [0x0011:0x][MAIN] +++MainTaskLoop()
 D/IS_FW_DEBUG( 1904): [0x0012:0x][MAIN] Sending 
 IHC_GET_SENSOR_NUMBER
 D/IS_FW_DEBUG( 1904): 
 [0x0013:0x](0x1000)[0x0014:0x][MAIN] IS SET : UNKNOWN
 D/IS_FW_DEBUG( 1904): [0x0015:0x][MAIN] Get Sensor Number : 2
 D/IS_FW_DEBUG( 1904): [0x0016:0x][MAIN] Create Structures
 D/IS_FW_DEBUG( 1904): [0x0017:0x][MAIN] +++CMainContext()
 D/IS_FW_DEBUG( 1904): [0x0018:0x][MAIN] Base of 0 ScenarioInfo : 
 0x00206A7C
 D/IS_FW_DEBUG( 1904): [0x0019:0x][MAIN] Base of 1 ScenarioInfo : 
 0x002078C8
 D/IS_FW_DEBUG( 1904): [0x001a:0x][MAIN] Base of 2 ScenarioInfo : 
 0x00208714
 D/IS_FW_DEBUG( 1904): [0x001b:0x][MAIN] Base of 3 ScenarioInfo : 
 0x00209560
 D/IS_FW_DEBUG( 1904): [0x001c:0x][MAIN] ---CMainContext()
 D/IS_FW_DEBUG( 1904): [0x001d:0x][MAIN] +++CMainContext()
 D/IS_FW_DEBUG( 1904): [0x001e:0x][MAIN] Base of 0 ScenarioInfo : 
 0x0020A418
 D/IS_FW_DEBUG( 1904): [0x001f:0x][MAIN] Base of 1 ScenarioInfo : 
 0x0020B264
 D/IS_FW_DEBUG( 1904): [0x0020:0x][MAIN] Base of 2 ScenarioInfo : 
 0x0020C0B0
 D/IS_FW_DEBUG( 1904): [0x0021:0x][MAIN] Base of 3 ScenarioInfo : 
 0x0020CEFC
 D/IS_FW_DEBUG( 1904): [0x0022:0x][MAIN] ---CMainContext()
 D/IS_FW_DEBUG( 1904): [0x0023:0x][MAIN] +++Open()
 D/IS_FW_DEBUG( 1904): [0x0024:0x][MAIN] 0. OpenSensor
 D/IS_FW_DEBUG( 1904): [0x0025:0x][MAIN] Base of 0 ScenarioInfo : 
 0x00206A7C
 D/IS_FW_DEBUG( 1904): [0x0026:0x][MAIN] Base of 1 ScenarioInfo : 
 0x002078C8
 D/IS_FW_DEBUG( 1904): [0x0027:0x][MAIN] Base of 2 ScenarioInfo : 
 0x00208714
 D/IS_FW_DEBUG( 1904): [0x0028:0x][MAIN] Base of 3 ScenarioInfo : 
 0x00209560
 D/IS_FW_DEBUG( 1904): [0x0029:0x]
 D/IS_FW_DEBUG( 1904): [DRC] Entry: 

Re: [android-developers] Horizontal ListView Adapter

2013-07-01 Thread Charx
Thnx, i will

On Monday, July 1, 2013 11:06:56 AM UTC+2, Piren wrote:

 Google it :)

 You better google Adt-Addons instead, it has a plugin that attaches the 
 android source code to your jars, very useful :)

 On Monday, July 1, 2013 12:00:58 PM UTC+3, Charx wrote:

 True, i guess it's also a matter of experience and time an individual 
 has. Do you maybe know where i can get the ListView.java from the original 
 2.3.x Android source code? 



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




[android-developers] Hi..

2013-07-01 Thread Ibrahim Sada
Hi Friends..
I Need Help Friends..
I Need To Run Emulator As A Server ..
I Am Not Able To Do...
Give Me Some Idea Friends...
Thanks...

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




Re: [android-developers] Run http server in android

2013-07-01 Thread Andrew Brampton
I adapted Nanohttpd to work on Android: https://github.com/bramp/NanoHTTPd you
can easily adapt that to make it a proxy.


On 1 July 2013 04:15, jrichards1...@googlemail.com
jrichards1...@gmail.comwrote:

 anyone?

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Hi..

2013-07-01 Thread Ibrahim Sada
Or Android Device Work As Server...
Please Help me Guys...

On 1 July 2013 17:55, Ibrahim Sada ibrahim.in...@gmail.com wrote:

 Hi Friends..
 I Need Help Friends..
 I Need To Run Emulator As A Server ..
 I Am Not Able To Do...
 Give Me Some Idea Friends...
 Thanks...


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




[android-developers] Re: Hi..

2013-07-01 Thread RichardC
Define Server

On Monday, July 1, 2013 1:43:35 PM UTC+1, Ibrahim wrote:

 Or Android Device Work As Server...
 Please Help me Guys...

 On 1 July 2013 17:55, Ibrahim Sada ibrahi...@gmail.com javascript:wrote:

 Hi Friends..
 I Need Help Friends..
 I Need To Run Emulator As A Server ..
 I Am Not Able To Do...
 Give Me Some Idea Friends...
 Thanks...




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




Re: [android-developers] Run http server in android

2013-07-01 Thread jrichards1...@googlemail.com
ok i will try that

On Monday, July 1, 2013 1:28:15 PM UTC+1, Andrew Brampton wrote:

 I adapted Nanohttpd to work on Android: https://github.com/bramp/NanoHTTPd 
 you 
 can easily adapt that to make it a proxy.


 On 1 July 2013 04:15, jricha...@googlemail.com javascript: 
 jricha...@gmail.com javascript: wrote:

 anyone? 

 -- 
 -- 
 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.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 unsubscribe from this group and stop receiving emails from it, send an 
 email to android-developers+unsubscr...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Run http server in android

2013-07-01 Thread jrichards1...@googlemail.com
Edit. sorry that wont work. i get stuck on the proxy part. 

i get the folllowing error in the proxy code


*07-01 15:44:02.894: E/GAEProxy.ProxySettings(11267): error setting up 
webkit proxying = java.lang.RuntimeException: Can't create handler inside 
thread that has not called Looper.prepare()*

it happens when i call setProxy.

any suggestions?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Available Consultants List !

2013-07-01 Thread Munawar Ali
Hi,



This is Mark from TekEnergy. Please find the consultant hot list and let me
know if you have any direct client requirements matching their skills. It
will be helpful to us to place them in a good position.  Thanking you for
your valuable time.



Please add m...@tekenergyusa.com to your mailing list.



*Consultant Name*

*Skill Sets*

*Current Location*

*Relocation*

*Availability*

Srinivas

.Net Developer

CA

Open

Immediate

Vijay

UI Developer

FL

Open

Immediate

Manasa

QA Analyst

NJ

Open

Immediate

Bashir

Business Analyst

IL

Open

Immediate

Rizwan

PL/SQL Dev

CO

Open

Immediate

Swathi

SQL DBA

MN

Open

Immediate

Kumar

Java Developer

CA

Open

Immediate

Syed

Business Analyst

TX

Open

Immediate

Priya

QA Selenium

PA

Open

Immediate

Srikanth

SQL\SSIS Developer

TX

Open

Immediate







Thanks  Regards



Mark

Tek Energy

m...@tekenergyusa.com m...@tekenergyusa.com

www.tekenergyusa.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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] setLayoutParams stops working

2013-07-01 Thread Wyler Yerrachione
I'm using setLayoutParams on some images in a HorizontalScrollView to 
change their size as they scroll past.   This seems to work fine, until I 
hit one of the boundaries, then all the imageViews stop responding to 
setLayoutParams.  They are locked in at their last size.  Monitoring my 
code, I can absolutely see that there are no errors being thrown and that 
setLayoutParams is definitely being called with changing values, just like 
before they got locked in.   The UI, which continuing to scroll, is just 
refusing to update my layout params on this ImageView now.

Very frustrating..  Any ideas what's going on here?


  int iWidth = (int) (scale * 108 * getResources().getDisplayMetrics().
density);

 int iHeight = (int) (scale * 56 * getResources().getDisplayMetrics().
density);

   if(r == R.id.imageView5){

  //Log.v(LOCATION, String.valueOf(imageViewCenter) );

  //Log.v(OFFSET, String.valueOf(offset));

  //Log.v(RATIO, String.valueOf(ratio));

  //Log.v(SCALE, String.valueOf(scale));

  Log.v(DIMS, String.valueOf(iWidth) + : + String.valueOf(iHeight) );

 }

   LinearLayout.LayoutParams layoutParams = 
(android.widget.LinearLayout.LayoutParams) iv.getLayoutParams();

 layoutParams.height = iHeight;

 layoutParams.width = iWidth;

 iv.setLayoutParams(layoutParams);

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: setLayoutParams stops working

2013-07-01 Thread Wyler Yerrachione
Full relevant code:

@Override

protected void onScrollChanged(int l, int t, int oldl, int oldt) {

 super.onScrollChanged(l, t, oldl, oldt);

 //Log.v(SCROLL, String.valueOf(l));


 adjustImageSizes();

  }

 private void adjustImageSizes(){

  int width = getWidth();

 int[] views =  { R.id.imageView1, R.id.imageView2, R.id.imageView3, R.id.
imageView4, R.id.imageView5 };

 for(int r : views){

 ImageView iv = (ImageView) findViewById(r);

 int[] location = new int[2];

 iv.getLocationOnScreen(location);


  int imageViewCenter = location[0] + 108 / 2; // This can be calculated 
for each imageView that is on screen

   if(imageViewCenter  0){

  imageViewCenter = 0;

 }

 if(imageViewCenter  width){

  imageViewCenter = width;

 }


  int scrollerCenter = (getWidth() - getPaddingLeft() - getPaddingRight()) 
/ 2 + getPaddingLeft();

 float offset = Math.abs(scrollerCenter - imageViewCenter);


  float ratio = ( offset / ( width / 2)  );


  // Scale the size.

 float scale = .5f + (1.0f - ratio) / 2;

 if (scale = 0) {

  scale = 0.1f;

 }

   int iWidth = (int) (scale * 108 * getResources().getDisplayMetrics().
density);

 int iHeight = (int) (scale * 56 * getResources().getDisplayMetrics().
density);

   if(r == R.id.imageView5){

  //Log.v(LOCATION, String.valueOf(imageViewCenter) );

  //Log.v(OFFSET, String.valueOf(offset));

  //Log.v(RATIO, String.valueOf(ratio));

  //Log.v(SCALE, String.valueOf(scale));

  Log.v(DIMS, String.valueOf(iWidth) + : + String.valueOf(iHeight) );

 }

   LinearLayout.LayoutParams layoutParams = 
(android.widget.LinearLayout.LayoutParams) iv.getLayoutParams();

 layoutParams.height = iHeight;

 layoutParams.width = iWidth;

 iv.setLayoutParams(layoutParams);

 //iv.getLayoutParams().height = iHeight;

 //iv.getLayoutParams().width = iWidth;

 }

}

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.