[android-developers] Re: is javamail-android API work with other smtp server...

2011-03-03 Thread kamiomar
thanks kostya Vasilyev for helping me.
i resolved the problem. only one thing left jondev.net code not
working with hotmail. i think this issue also reported. checkout the
following link:
http://code.google.com/p/javamail-android/issues/list

if it is possible through hotmail please inform me.

Thanks once again.



On Mar 2, 1:24 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 02.03.2011 9:14, kamiomar :

  kindly elaborate the following statement:

  For maximum compatibility, you need to set both SSL and non-SSL
  socket
  factories and port numbers and ensure that there is fallback from one
  to
  the other. SMTP over SSL is port 465, SMTP over plain sockets is port
  25
  (which is often blocked) or 587 (often not blocked).

 That is - if you need to support different mail servers, not just one.

 One mail server may accept mail on port 587 with no encryption, another
 use port 465 with SSL, etc. The example on jondev.net is hard-coded for
 port 465 with SSL, which is why you're getting an SSL socket exception
 when trying to talk to a server that doesn't use SSL.

 If on the other hand you only need to support one server, then just use
 the correct values for that one server.

  what are the ssl and non-ssl socket factories and port number?
  thanks.

 I listed them above, you can also find them in SMTP RFCs, Wikipedia, or
 many other places.

 JavaMail has its own site and mailing lists (I posted them in my
 previous message), please use those if you have further JavaMail questions.

 --
 Kostya Vasilyev --http://kmansoft.wordpress.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


[android-developers] Re: is javamail-android API work with other smtp server...

2011-03-01 Thread kamiomar
kindly elaborate the following statement:

For maximum compatibility, you need to set both SSL and non-SSL
socket
factories and port numbers and ensure that there is fallback from one
to
the other. SMTP over SSL is port 465, SMTP over plain sockets is port
25
(which is often blocked) or 587 (often not blocked).

what are the ssl and non-ssl socket factories and port number?
thanks.

On Feb 28, 6:27 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Yes, this makes perfect sense. The code sample you referred to uses SSL
 connection with no fallback to non-SSL connection:

      props.put(mail.smtp.port, _port);
      props.put(mail.smtp.socketFactory.port, _sport);
      props.put(mail.smtp.socketFactory.class,
 javax.net.ssl.SSLSocketFactory);
      props.put(mail.smtp.socketFactory.fallback, false);

 As a quick fix, change the factory class name from
 javax.net.ssl.SSLSocketFactory to javax.net.SocketFactory or change
 fallback to true.

 For maximum compatibility, you need to set both SSL and non-SSL socket
 factories and port numbers and ensure that there is fallback from one to
 the other. SMTP over SSL is port 465, SMTP over plain sockets is port 25
 (which is often blocked) or 587 (often not blocked).

 http://kenai.com/projects/javamail

 http://kenai.com/projects/javamail/lists

 -- Kostya

 28.02.2011 16:12, kamiomar О©╫О©╫О©╫О©╫О©╫:









  my smtp server port is 27. i changed the port and smtp server but
  still the code not working throwing the following exception.

  Caused by: java.io.IOException: SSL handshake failure: Failure in SSL
  library, usually a protocol error

  On Feb 24, 4:36 pm, Kostya Vasilyevkmans...@gmail.com  wrote:
  What does not working mean?

  The sample uses SSL over port 465, which is pretty standard, but if your 
  own
  server is configured differently (non-secure port 25, or 587, for example),
  then you'll need to adjust your code accordingly.
  24.02.2011 14:12 О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ 
  kamiomarkamio...@gmail.com  О©╫О©╫О©╫О©╫О©╫О©╫О©╫:  i have download 
  jar files from the following link:

 http://code.google.com/p/javamail-android/downloads/list
  and try the following example:
 http://www.jondev.net/articles/Sending_Emails_without_User_Interventi...

  but this is working only for gmail not for others.
  I tried with my own SMTP server but not working.
  I think these API's is for only gmail.
  may I correct?
  if yes then how we can connect with different smtp server and send
  emails?
  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

 --
 Kostya Vasilyev --http://kmansoft.wordpress.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


[android-developers] How to send email programmatically?

2011-02-28 Thread kamiomar

how we can send email programmatically?

i try the following code:

http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android

this is work fine with gmail. but if i try this with different smtp
server its not working such like yahoo,hotmail and my company smtp
server.

how this possible?

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] Re: is javamail-android API work with other smtp server...

2011-02-28 Thread kamiomar
my smtp server port is 27. i changed the port and smtp server but
still the code not working throwing the following exception.

Caused by: java.io.IOException: SSL handshake failure: Failure in SSL
library, usually a protocol error




On Feb 24, 4:36 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 What does not working mean?

 The sample uses SSL over port 465, which is pretty standard, but if your own
 server is configured differently (non-secure port 25, or 587, for example),
 then you'll need to adjust your code accordingly.
 24.02.2011 14:12 пользователь kamiomar kamio...@gmail.com написал: i 
 have download jar files from the following link:

 http://code.google.com/p/javamail-android/downloads/list

  and try the following example:

 http://www.jondev.net/articles/Sending_Emails_without_User_Interventi...









  but this is working only for gmail not for others.

  I tried with my own SMTP server but not working.

  I think these API's is for only gmail.
  may I correct?

  if yes then how we can connect with different smtp server and send
  emails?

  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 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] is javamail-android API work with other smtp server...

2011-02-24 Thread kamiomar
i have download jar files from the following link:

http://code.google.com/p/javamail-android/downloads/list

and try the following example:

http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android

but this is working only for gmail not for others.

I  tried with my own SMTP server but not working.

I think these API’s is for only gmail.
may I correct?

if yes then how we can connect with different smtp server and send
emails?

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] su: permission denied error

2010-11-22 Thread kamiomar
By using command prompt access the device shell/terminal. then use the
su command getting permission denied error. Why this happening?

how can i solve this problem.

-- 
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: su: permission denied error

2010-11-22 Thread kamiomar
thanks for reply.

kindly tell me unless you root your phone. what does it means?

how this possible?

Thanks


On Nov 23, 11:31 am, Kumar Bibek coomar@gmail.com wrote:
 su is not enabled, ie. root access is disabled on Emulators and
 consumer devices. You cannot do that, until and unless you root your
 phone.

 On Nov 22, 5:10 pm, kamiomar kamio...@gmail.com wrote:







  By using command prompt access the device shell/terminal. then use the
  su command getting permission denied error. Why this happening?

  how can i solve this problem.

-- 
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] getting exception when inserting events in android calendar.

2010-08-09 Thread kamiomar
 i am inserting  all day recurrence event in  the android calendar.
the code is following:



ContentValues event = new ContentValues();
event.put(calendar_id, calId);
event.put(title, Event Title);
event.put(description, Event Desc);
event.put(eventLocation, Event Location);
event.put(allDay, 1);
event.put(eventStatus, 1);
event.put(visibility, 0);
event.put(transparency, 0);
event.put(hasAlarm, 1);

Date d = new Date();
d.setHours(8);
d.setMinutes(30);
d.setSeconds(30);
long startTime = d.getTime();
d.setHours(12);
d.setMinutes(30);
d.setSeconds(20);
long endTime = d.getTime();
event.put(dtstart, startTime);
// event.put(dtend, endTime);
event.put(rrule, FREQ=DAILY;WKST=SU);
// event.put(lastDate, endTime);
// event.put(timezone, Asia/Karachi);
//event.put(duration, P3600S);

//Calendar gmtC = new GregorianCalendar(TimeZone.getTimeZone(Asia/
Karachi));



// event.put(transparency, 0);
// event.put(hasAlarm, 1); // 0 for false, 1 for true
Uri eventsUri = Uri.parse(content://calendar/events);
Uri url = getContentResolver().insert(eventsUri, event);



i am getting the following exception:

java.lang.IllegalArgumentException: allDay is true but sec, min, hour
are not 0.

need help!

-- 
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] not able to compile code get from the git repository.

2010-07-13 Thread kamiomar


Hi,

Can anybody tell why i am not able to compile the code get from the
git repository. i think some libraries missing.

Example:
 i get Email Client code from the git repository.
  http://android.git.kernel.org/platform/packages/apps/Email.git

Import the project in my eclipse and set the android SDK version and
then compile the code, its showing some errors.

How can i resolve it.

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] hows gdata working with he android default Calendar widget.

2010-07-09 Thread kamiomar
Hi,

can anyone tell me hows gdata working with the android default
Calendar widget.

From my RD till now gdata Calendar API not supported on the Android
devices.
http://groups.google.com/group/android-developers/browse_thread/thread/35a7817d22604645


How Android Calendar Widget works?

Event i downloaded calendar source code from the git repository;

http://android.git.kernel.org/platform/packages/providers/Calendar.git
http://android.git.kernel.org/platform/packages/providers/CalendarProvider.git

But not able to compile the source code. some jars missing.

till now android gdata calendar api not supported on the android
device. But Android Calendar widget syncing with the google account.
What jars it is using? Any one has idea.

-- 
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] gdata calendar not working with android.

2010-06-29 Thread kamiomar

Dear,

i am using Android API level 3. Using g-data 1.41.3 version.
i am using Calendar Sample.
my code is follows:

try {
CalendarService service = new CalendarService(demo-
CalendarFeedDemo-1);
service.setUserCredentials(userName, userPassword);
CalendarFeed resultFeed = service.getFeed(feedUrl,
CalendarFeed.class);
} catch (Exception e) {
// Invalid credentials
e.printStackTrace();
}

android application throwing exception on getFeed() method. The
exception is as follows:

java.lang.VerifyError:
com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory
$SecureSAXParserFactory

From different forum i concluded that g-data only provide me to
insert, delete and update Calendar. But i am facing problem that  i
mention above.

Is it possible to delete, insert and update Android Calendar and
Events?

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