You Are Here:

Community: Developer Discussion Boards

#1 Old Http Connection & SNAP Mobile - 2006-07-03, 17:33

Join Date: Nov 2003
Posts: 3
basakg
Offline
Registered User
In technical documents ,it is said that SNAP Mobile client communicates to server with HTTP protocol.
But in MIDP2.0 devices, connection problems occur if default APN is WAP APN I wonder if same problem occurs when SNAP Mobile Client attempts to connect server ?
Do I have to change to Internet APN manually again ?

Thanx
Guvenc
Reply With Quote

#2 Old Re: Http Connection & SNAP Mobile - 2006-07-06, 09:14

Join Date: Jul 2006
Posts: 9
devabhsa
Offline
Registered User
Hi Guvenc,
i want to know that to, apart from that i want to know what is the way to select default APN name from an application.

thanks
sateesh
Reply With Quote

#3 Old Re: Http Connection & SNAP Mobile - 2006-07-08, 11:15

Join Date: Jul 2003
Posts: 14
mikbry
Offline
Registered User
Hi,

SM is not only HTTP, you could select other protocols.
Use ServerComm.getSupportedProtocols() to get list of all supported protocols.
And Construct ServerComm with the selected protocol.

Concerning APN, you can't select it in J2ME. on some phones, when you begin a request, a system dialog gives you the choice for that.

Regarding WAP APN, you could use HTTP requests on top of it, but it depends on carriers policies.

Best,

Mik
Reply With Quote

#4 Old Re: Http Connection & SNAP Mobile - 2006-07-14, 19:39

Join Date: Jan 2004
Posts: 13
splandorf
Offline
Registered User
Hello,

If I understand the question correctly, are you wondering about the case where:
1) A user runs a networked MIDlet, and upon the first network request a list of APN access points is shown, and the user must select one
2) If the the user selects the wrong one, then networking will not function within the MIDlet

Is your question:
- is there any way to show the list again if the user chooses the wrong APN the first time?
- is there any way to configure the MIDlet to automatically choose the "correct" APN for the user?

If this is your question, I believe the answer is:
- It is not possible to force J2ME to show the list again -- once an APN is selected, J2ME will try to use this APN for all connections from within the MIDlet session. The only way to choose a different APN is to exit the MIDlet and run it again.
- It is not possible to configure a MIDlet to use a particular APN by default.

Unfortunately, this means that the end user must choose the correct APN each and every time they run the MIDlet, or the MIDlet will not be able to make network requests within that session.

:\

Here is another post on what I believe is the same question you are asking, with some discussion about the issues:

http://discussion.forum.nokia.com/fo...t=apn+settings


Hope this helps.
If this was not your question, I may be able to help answer more accurately if you restate it again.

Thanks,
Sam
Reply With Quote

#5 Old Re: Http Connection & SNAP Mobile - 2006-07-19, 09:53

Join Date: Nov 2003
Posts: 3
basakg
Offline
Registered User
Thank you for the answer

I wonder if APN is wrong APN (Wap APN not Internet APN), does Snap Client fail to connect to server?

Thank you again
Reply With Quote

#6 Old Re: Http Connection & SNAP Mobile - 2006-07-19, 15:20

Join Date: Jul 2003
Posts: 14
mikbry
Offline
Registered User
some hints:
- Try to change port from 8080 to 80 (take care of HttpServer conflict), on server and jad configuration.
- Also there is a SnapCompatibility tool to test HTTP/TCP in SM1.2, that could help (Http uses port 80)

Mik
Reply With Quote

#7 Old Re: Http Connection & SNAP Mobile - 2006-10-24, 10:11

Join Date: Jan 2004
Posts: 9
datafuser
Offline
Registered User
If APN auto-configure is impossible from the MIDlet, then would it be possible to implement it on the phone's native system? Can Nokia do it?

Cheers,
Sunho
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
New SNAP Mobile SDK releases splandorf Mobile Java Games 0 2006-06-24 03:31
Http Connection Is not Working in Mobile varma_111 Mobile Java Networking & Messaging & Security 1 2006-06-22 20:02
6820 http connection issue jennydeng Mobile Java General 0 2004-09-30 04:44
How to kill Http connection kljajo Mobile Java Networking & Messaging & Security 0 2004-07-01 10:40
Question about long connection Http request! defaulty Mobile Java Networking & Messaging & Security 1 2004-01-03 08:41

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d184934X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZgamesQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ