Getting Error while Sending automatic email on background - android

Getting error "java.lang.NoClassDefFoundError: javax.activation.DataHandler" while Sending automatic email on background..I have added activation.jar ,additional.jar.mail.jar already ,but getting same error again,,plz tell me proper solution..
Thanks in advance..

The Android SDK makes it very easy to send emails from an application, but unfortunately, that's only if you want to send them via the built-in mailing app. For most situations this works fine, but if you want to send something out and don't want any input/intervention from the user, it's not as easy.
so please follow this link
http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android

Try going to Project -> Properties -> Java Build Path -> Order & Export and ensure Android Private Libraries are checked for your project and for all other library projects you are using.

Related

Firebase console - problem receiving test push FCM notification in android device

I am sending push notification using firebase console and i am getting "0% of potential users are eligible for this campaign: 0". and push notification is not displaying in mobile..If anyone got same experience and solve issue then please suggest me how can i solve this issue. I followed all the thing..that i added json file that i got from firebase.
Please check for the following:
Have you configured your android package name correctly.
Did you place the google-services.json file in android/src folder.
Make sure you have done all steps present in this link (If you using android studio i suggest going with option 2)
Get user token to send firebase message Follow the steps
After all these if you still can't receive push notifications try setting channelid in advanced messaging options
Refer https://firebase.google.com/docs/cloud-messaging/android/client link step by step and you will be good to go for your push notification using fcm and if you already implemented the basic things then compare your code with the sample code step by step mentions on the link. you must find out the error. let me know if it resolves your issue.
Go to Build --> clean project -->Rebuild project
(Build is at top in android studio)
Why it was not working - You must have had deleted google-services.json file and re-added it.
Make sure you have only one firebase project configured for this app (if no then delete one you dont plan to use)
Go to firebase setiings -> Left top angle -> settings icon -> Project settings ->
scroll to bottom, then make sure to add SHA certificate fingerprints Type. How to get it
Then (still on this page) press See SDK instructions button. And place google-services.json file in your project.
If all this steps passed for you and you still getting this error then just wait a little bit, for me it take 2 days, before it started working.

Solcalendar, syncing with Owncloud

I'm trying to configure Solcalendar to sync with owncloud 6.0.0.
I used "Custom" option and type there
http://hostname/owncloud/remote.php/caldav/calendars/[myUsername]/[myCalendarNAme]
And of course my login anc password.
I get the message "Check ID and password and try again". Any ideas what can be wrong here?
Syncing with Lightning (Thunderbird) works well using that link.
I had the same prob. Solved it (on Android) by installing an additional CalDavsync App called https://play.google.com/store/apps/details?id=org.gege.caldavsyncadapter&hl=de
Probably that is helpful for you.

500 Server Error using Python

Please bear with me as I am a complete noob and trying to create a database for my app using App Inventor.
According to Google App Launcher, I have successfully created my app. However, when I load mcdougaltextspeak.appspot.com into my browser, I get the following message:
Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the query that caused it.
I am following the directions provided on http://appinventorapi.com/program-an-api-python/ and I'm sure my issue is because I am not correctly modifying the default app.ymal file
Here's what I have according to the directions:
application: textspeakedtech597
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /images
static_dir: images
- url: .*
script: main.py
I initially just changed myapp to mcdougaltextspeak, however I got a message that I needed to modify the code for python 2.7 according to this site:
https://developers.google.com/appengine/docs/python/python25/migrate27
This site also included modifications for other things, so I am wondering if my error stems from this. The directions do not make note of modifying any other code. Do I need to modify/add the code that appears on the migrate to python 2.7 page (see above link) and if so where does it go.
My app is stuck without a location to hold data.
Any advice on how to proceed is greatly appreciated.
Have you actually created an app on https://appengine.google.com?! You need to do that first, then your app.yaml should contain the appid that you have created i.e. application: mcdougaltextspeak & not what it is in the tutorial.
After you've edited the app as you want, you must then deploy the app to the Google App Engine Servers (refer to the GUI deploy). You would get detailed logs when deploying, which would tell if the deployment was successful or not.
After deploying, you can then goto https://mcdougaltextspeak.appspot.com & play around with your online app. If you still get errors, check https://appengine.google.com/dashboard?&app_id=mcdougaltextspeak for the logs & report them here.

Error in integrating twitter in android

when i run my apps i am getting error
09-14 16:33:52.854: W/System.err(380): 401:Authentication credentials (http://dev.twitter.com/pages/auth) were missing or incorrect. Ensure that you have set valid conumer key/secret, access token/secret, and the system clock in in sync.
09-14 16:33:52.864: W/System.err(380): error - Read-only application cannot POST
I've changed the access to read, write and direct access
but still the above error says read only application.
My apps is not showing the updates is there ant way to refesh the eclipse or application completely ..it is not taking and showing the updates when I run android application.
is there ant way to refesh the eclipse or application completely
To refresh project, you can clean project by Eclipse -> Project -> Clean -> Select project from check box and radio button to "Clean projects selected below" and ok button.
Log shows you are missing something in request, its very obvious.
Your error is understandable but whether you trying to integrate twitter in app using WebView / browser or straight away (which is not recommendable), using any 3rd party library and if yes then which library you using, is unclear.
You can refer these following tutorials available on internet to integrate twitter in your application.
Using only one library twitter4j to handle oAuth and make tweets both
http://blog.blundell-apps.com/sending-a-tweet/
http://automateddeveloper.blogspot.in/2011/06/android-twitter-oauth-authentication.html
Using two or more third party libraries for oAuth and tweeting tasks
http://blog.tarams.com/?p=212
http://www.android10.org/index.php/articleslibraries/291-twitter-integration-in-your-android-application
http://blog.doityourselfandroid.com/2011/02/13/guide-to-integrating-twitter-android-application/,
Thanks,

android java API email

Well am building this app, now am at the point where I wanna use the java email API to send email, but am getting a few error such as "The import javax.mail cannot be resolved" I really tried everything here but cant seem to fix it .
if anyone could help I would really appreciate it.. am using eclipse by the way..
Thanks
Android does not include the javax libraries.
To send email on android app you would have to create an intent and let the email app handle it. Here is an example I found via a quick google search http://www.helloandroid.com/tutorials/how-send-email-your-application.

Categories

Resources