Re: [android-developers] port forwarding

2010-02-15 Thread linux newbie
No. I am trying to connect Emulator. Sorry for not being clear.

Based on recent developments, I like to re-frame the question.

1. Is there mysql-connector/jdbc for android?
2. Is running the webserver on top of mysql database and accessing it via
_GET  _POST the only way to get database table info?

Thanks
On Mon, Feb 15, 2010 at 6:43 PM, Kevin Duffey andjar...@gmail.com wrote:

 Little confused.. are you trying to allow your mobile app connect across
 the network to your database?

   On Sun, Feb 14, 2010 at 4:12 PM, linux newbie 
 linux.newbi...@gmail.comwrote:

   Hi,

 I am running mysql server (on remote machine) and I can able to connect to
 it from my host machine. I written a java code to connect and read some
 table values.

 Now I compiled the same java code in Android and on running it in emulator
 it is unable to connect to server.

 I believe I need to do port forwarding as emulator couldnt see the ip
 address of server.

 can anyone let me know how to accomplish this task?

 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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: port forwarding

2010-02-15 Thread linux newbie
Hi Mark  Bob,

Thanks very much for your expert suggestions.

:)

On Tue, Feb 16, 2010 at 12:33 PM, Bob Kerns r...@acm.org wrote:

 Never say never -- it would be appropriate for a mySQLAdmin tool, say,
 talking over wifi.

 Anyway, my answer to Mr. L. Newbie's question, is:

 1. You could probably find and/or port such a thing. MySQL's Connector/
 J is pure Java. It might rely on some standard J2SE stuff that's not
 present on Android, in which case you'd have to come up with
 substitutes.

 2. GET/POST is *not* the only way -- but it is the best way, the tried
 and true way, and what most other people are doing. Google
 RESTful (I'm surprised it's that easy to get a good search result,
 but it is). The alternative would be to use SOAP, but I wouldn't do
 that unless you already know why you want to do that (such as
 compatibility with an existing service or environment).

 This will also drive the design of your application in a direction
 which is more mobile-friendly. It's not really a matter of mobile vs
 LAN -- really, I don't recommend the use of direct database
 connections except between tightly-coupled components -- such as
 between your web service, and its back-end database server. Doing
 direct SQL poses everything from security risks to temptations to
 depend on aspects of your data model which shouldn't be exposed,
 leading to massive compatibility problems, and the need to update all
 clients at the same timethe list of reasons goes on and on.

 On Feb 15, 3:55 pm, Mark Murphy mmur...@commonsware.com wrote:
  linux newbie wrote:
   1. Is there mysql-connector/jdbc for android?
 
  It doesn't matter -- you shouldn't use it even if it exists.
 
  As I've now written for the third time in the past 36 hours or so
  (previous two on StackOverflow):
 
  Never never never use a database driver across an Internet connection,
  for any database, for any platform, for any client, anywhere. That goes
  double for mobile. Database drivers are designed for LAN operations and
  are not designed for flaky/intermittent connections or high latency.
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://twitter.com/commonsguy
 
  Android Consulting/App Development:http://commonsware.com/consulting

 --
 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.comandroid-developers%2bunsubscr...@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] port forwarding

2010-02-14 Thread linux newbie
Hi,

I am running mysql server (on remote machine) and I can able to connect to
it from my host machine. I written a java code to connect and read some
table values.

Now I compiled the same java code in Android and on running it in emulator
it is unable to connect to server.

I believe I need to do port forwarding as emulator couldnt see the ip
address of server.

can anyone let me know how to accomplish this task?

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