[android-developers] cannot find htonl

2009-08-13 Thread taosinker

Hi all:

When I build my native lib, an error find.
 undefined reference to `htonl'


Do you have any advice?

Thanks

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



[android-developers] Error found in build htonl no reference

2009-08-13 Thread taosinker

Hi all:
When I build my native library, an error reported.
the error message is:
 undefined reference to `htonl'

Could you help me?

Regards
--~--~-~--~~~---~--~~
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: Error found in build htonl no reference

2009-08-13 Thread taosinker

Thanks all,
I have fix the problem. It is due to my code error.


in bionic, htonl is defined as Marcro.


On Aug 14, 10:25 am, taosinker taosin...@gmail.com wrote:
 Hi all:
 When I build my native library, an error reported.
 the error message is:
          undefined reference to `htonl'

 Could you help me?

 Regards
--~--~-~--~~~---~--~~
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] APN design is very strange

2009-05-13 Thread taosinker

in Android code, It is a very strange concept to define the APN type
(APN_TYPE_MMS).
The reason are:
1) APN only is an access pointer, it haven't any special attribute for
MMS or other things.
2) Only Application care the APN name, since different APN will
provide different service from operator. for example, operation may
provide Email/MMS/GPS/ service on different APN.
3) Android only define one type APN_TYPE_MMS, this will limit other
top application usage.


Any one can answer me why Android design this way?


If google have strong reason for such design, I hope add other user
defined type like

APN_TYPE_USER1
APN_TYPE_USER2

then top application can set his property to use its APN other than
APN_TYPE_MMS


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



[android-developers] How to set the permission to open a dev fd?

2009-01-14 Thread taosinker

Hi all:

I want to open an /dev/xx file in a jni so which is load in my Android
java application. But return a permission denied error.

Do you have any advices?

Regards
--~--~-~--~~~---~--~~
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 set the permission to open a dev fd?

2009-01-14 Thread taosinker

Hi Dianne:

Could you give me an advice to resolve it?  Now I find the reason is
/dev/xx is the root permission, but android app user is like app_xx.

To resolve this, my idea is, I create a native service run with the
root right, my android app call the service api to read write the fd
of /dev/xx.

I don't know if my idea is ok or not. Are there any other solution.

Thank you very much.

Regards

On Jan 14, 2:28 am, Dianne Hackborn hack...@android.com wrote:
 Much of the device tree is not directly accessible to applications; there is
 no way to get around this.

 On Wed, Jan 14, 2009 at 12:22 AM, taosinker taosin...@gmail.com wrote:

  Hi all:

  I want to open an /dev/xx file in a jni so which is load in my Android
  java application. But return a permission denied error.

  Do you have any advices?

  Regards

 --
 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.  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
-~--~~~~--~~--~--~---



[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread taosinker

Jean:

Now my company have the license agreement with google. I can build the
code and run it on our board.

Could you give me some advices?

On Jan 14, 2:41 am, Jean-Baptiste Queru j...@google.com wrote:
 Like Dianne said, you can't. Use the published SDK APIs to access the
 various functionalities exposed by Android.

 JBQ



 On Wed, Jan 14, 2009 at 2:38 AM,taosinkertaosin...@gmail.com wrote:

  Hi Dianne:

  Could you give me an advice to resolve it?  Now I find the reason is
  /dev/xx is the root permission, but android app user is like app_xx.

  To resolve this, my idea is, I create a native service run with the
  root right, my android app call the service api to read write the fd
  of /dev/xx.

  I don't know if my idea is ok or not. Are there any other solution.

  Thank you very much.

  Regards

  On Jan 14, 2:28 am, Dianne Hackborn hack...@android.com wrote:
  Much of the device tree is not directly accessible to applications; there 
  is
  no way to get around this.

  On Wed, Jan 14, 2009 at 12:22 AM,taosinkertaosin...@gmail.com wrote:

   Hi all:

   I want to open an /dev/xx file in a jni so which is load in my Android
   java application. But return a permission denied error.

   Do you have any advices?

   Regards

  --
  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.  All such questions should be posted on public
  forums, where I and others can see and answer them.

 --
 Jean-Baptiste M. JBQ Queru
 Android Engineer, Google.
--~--~-~--~~~---~--~~
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 set the permission to open a dev fd?

2009-01-14 Thread taosinker

I can enter SDK inside and build the code under SDK level. But don't
know how to resolve my problem below the SDK level.


On Jan 14, 2:41 am, Jean-Baptiste Queru j...@google.com wrote:
 Like Dianne said, you can't. Use the published SDK APIs to access the
 various functionalities exposed by Android.

 JBQ



 On Wed, Jan 14, 2009 at 2:38 AM,taosinkertaosin...@gmail.com wrote:

  Hi Dianne:

  Could you give me an advice to resolve it?  Now I find the reason is
  /dev/xx is the root permission, but android app user is like app_xx.

  To resolve this, my idea is, I create a native service run with the
  root right, my android app call the service api to read write the fd
  of /dev/xx.

  I don't know if my idea is ok or not. Are there any other solution.

  Thank you very much.

  Regards

  On Jan 14, 2:28 am, Dianne Hackborn hack...@android.com wrote:
  Much of the device tree is not directly accessible to applications; there 
  is
  no way to get around this.

  On Wed, Jan 14, 2009 at 12:22 AM,taosinkertaosin...@gmail.com wrote:

   Hi all:

   I want to open an /dev/xx file in a jni so which is load in my Android
   java application. But return a permission denied error.

   Do you have any advices?

   Regards

  --
  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.  All such questions should be posted on public
  forums, where I and others can see and answer them.

 --
 Jean-Baptiste M. JBQ Queru
 Android Engineer, Google.
--~--~-~--~~~---~--~~
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: Network access problem on ubuntu

2008-12-09 Thread taosinker

Hi Brian:

There are the APNs, they are same b/w the two.

Anyway, thank you very much. I have to launch it from the file
browser.

Regards

On 12月5日, 下午5时13分, Brian [EMAIL PROTECTED] wrote:
 Are they both have the APN record configured?
 If yes, then I have no idea so far. Maybe someone else could help on
 this...
 Regards

 On 12月5日, 上午11時33分,taosinker[EMAIL PROTECTED] wrote:

  Brian:
  Thanks for your response.

  After I double check the issue, I found more strange things.

  If I lunch the emulator in file browser, the web browser in android
  can access the outside website.
  If I lunch the emulator in console by ./emulator command, the web
  browser in android cannot access the outside website.

  Regards

  On 12月4日, 下午5时15分, Brian [EMAIL PROTECTED] wrote:

   Probably you forgot to configure APNs.
   Go to Settings - Wireless controls - Mobile networks - Access Point
   Names
   Press Menu to configure a new APN.

   On 12月4日, 下午5時01分,taosinker[EMAIL PROTECTED] wrote:

Hi all:
Now I build the android code on ubuntu, in the build I can launch the
emulator on unbuntu. I met a problem, I cannot connect the website in
the emulator. But under the same network env, the android emulator on
windows xp can connect the website.
I don't know the reason. Who can help me?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Network access problem on ubuntu

2008-12-04 Thread taosinker

Hi all:
Now I build the android code on ubuntu, in the build I can launch the
emulator on unbuntu. I met a problem, I cannot connect the website in
the emulator. But under the same network env, the android emulator on
windows xp can connect the website.
I don't know the reason. Who can help me?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Network access problem on ubuntu

2008-12-04 Thread taosinker

Brian:
Thanks for your response.

After I double check the issue, I found more strange things.

If I lunch the emulator in file browser, the web browser in android
can access the outside website.
If I lunch the emulator in console by ./emulator command, the web
browser in android cannot access the outside website.

Regards


On 12月4日, 下午5时15分, Brian [EMAIL PROTECTED] wrote:
 Probably you forgot to configure APNs.
 Go to Settings - Wireless controls - Mobile networks - Access Point
 Names
 Press Menu to configure a new APN.

 On 12月4日, 下午5時01分,taosinker[EMAIL PROTECTED] wrote:

  Hi all:
  Now I build the android code on ubuntu, in the build I can launch the
  emulator on unbuntu. I met a problem, I cannot connect the website in
  the emulator. But under the same network env, the android emulator on
  windows xp can connect the website.
  I don't know the reason. Who can help me?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---