Possibilities for transferring image with text - iphone

I went thru StackOverflow for finding out different solutions for sending/fetching images along with text via iPhone apps. There are few options like:
1-Sending content via Email to other email address(Just like iphone app,POSTAGE do)
2-Sending/Receiving in-app SMS but that is only supported in iOS4
3-Use some intermediate Server to send/receive Data.
I was more inclined towards option #2 but did not find ways to accomplish it. Option #3 would be depending on 3rd layer which could go down. I have not found a way to read iPhone's inBox or connecting directly with IMAP server
What would you recommend?I am desperately looking for solution.

You can email images as an attachment using the MFMailComposeViewController class.

Related

how to send formatted text in iphone

I am developing one application that has many controls to format the text.The controls are like colors,Font Style,Border,Giving Background to Text,and even animations.
My Question is can I send this formatted text through SMS and MMS to my friends?is apple support this?
please give me any link or any reference where i can study this and implement it in my project.
thanx in Advance....
As far as I know its not possible, I have seen SO many of these apps on the store that basically just save as a picture and send as a picture.
As of now... in the SDK MFMessageComposeViewController doesn't support MMS.
Although you can render an image and send it.
HOW DO THEY DO IT????
They might send a request back to their server which sends an mms from there?
Here are some options:
This is not possible with the current MessageUI API: the MSMessageComposeViewController doesn't accept attachments like the MFMailComposeViewController does.
The only way to do this currently is to use an external service that allows you to send mms via a REST call for example.
GSMA defines a REST specification for exactly this purpose: http://www.gsmworld.com/oneapi/reference_documentation-version_1.html (multiple pdf's on this page)
Try to find a local service provider that implements this specification and you're good to go.
Just to add the direct wiki link to the OneAPI MMS spec: http://gsma.securespsite.com/access/Access%20API%20Wiki/MMS%20RESTful%20API.aspx and a link to the PHP/Java sandbox https://github.com/OneAPI/GSMA-OneAPI where MMS can be tested locally . Cheers.
Apple only supports sending of SMS text messages, use the MFMessageComposeViewController.
Since sms only supports sending plain text you can't set any format.
MFMessageComposeViewController does not support MMS, which would allow you to send formated messages.

How to send images or sounds to another iPhone/Android

I was wondering how games like Draw Something are sending the images to another iPhone/Android?
I want to be able to send a recorded sound/UIImage to another phone, how are they sent and received?
I'm relatively new to communication using iPhone.
I've googled and searched stackoverflow, but couldn't find anything.. maybe I'm not searching for the right query..
Thanks in advance!
They are sent via TCP/IP to a central server, or more likely, a group of servers. Those servers are responsible for storing the data and generating push notifications so the target device knows that new data is available. The target device downloads it from the central server(s), not directly from the other device.
On iOS, you can use the NSURLConnection class to push data to a server or read it back. The server is something you are also responsible for, although there are some third-party ones that you could use, like Urban Airship, to help with push notifications.

How to build app for flagging emails in iPhone?

Unfortunately, the iPhone cannot flag email messages for followups as it does in Outlook or Gmail. Everywhere I search, people are griping about this with no solution except for moving emails in a 'follow up folder', which is lame because I use flags on my PC with great ease. I am using Exchange to access my email and know flagging works on Windows, Treo, and some other phones. Still no email flagging in the upcoming iOS 4.3 either.
My question is if it is possible to modify the built in mail app in iPhone to give capability for flagging email messages? I'm sure this would require jailbreaking which I'm ok with. If it is not possible, what about creating a stand alone app that simply views emails with an option to flag them? Any help would be greatly appreciated.
The only options you have to get this feature are
build your own mail client for the iPhone. There is a really nice (but not up-to-date) mail framework in Objective-c called MailCore and a pretty good C framework called libEtPan
hope that Apple will support it in a new iOS version release
Have a look at the sql database for the MobileMail.app account in this folder:
/User/Library/Mail/IMAP-emailaddress#imapserver/
Edit it directly with SQLite.
The iPhone's mail application doesn't come with an extensions framework, so there's no straightforward way to modify its functionality. If you really have your heart set on this feature, the only option you really have is to jailbreak and write your own mail client. That wouldn't be a simple exercise, especially if you need Microsoft Exchange integration.
The way I would deal with this is to use the Gmail web interface, which lets you star messages. You can set up your exchange account to forward messages to Gmail, and then you'd use Gmail as your primary mail provider.
Both these solutions sound really clumsy, so I think you might have to give up on flagging messages.

Import contacts from outlook to iphone programmatically

I want to know if it is possible to import contacts from outlook to iPhone through code. I want to implement a sync functionality in which a user can import contacts from their Outlook into their iPhones. If so then what approach has to be followed.
There are two modes of sync.
Through iTunes and the desktop. To my knowledge, I dont think its possible programmatically to invoke iTunes and make it sync, as it rightly should be. So, there is not much left to do there.
If you are looking to sync with an existing MS Exchange server account, then there are not many choices out there but to implement the way this answer seems to point out.
However, if you are bit lucky, you might be able to get it to work with a bit of poking
-around with IMAP. There are are a few libraries out there that you could possibly repurpose. Unfortunately, there are no straight forward solutions, that atleast i kno of, for achieving this as yet and this could possibly be the easiest route. One such lib is : Remail. Another point to remember is that some c libs may also support iphone/cocoa and its not a bad idea to watch out for some of them.
Good luck.
Things are going to be different depending on which version of outlook you are using and the email server that it is connecting to. I am assuming that you are not connecting to an exchange server and that you dont want to use iTunes so your best bet to get the contacts to an iPhone is going to be a desktop app that connects to a webservice that will then sync with an iPhone app that can dump the contacts into an address book. You will have to write an exporter for your version of outlook (2003, 2007, 2010, 2011 are all still widely used) so it may just be easier to have your user open a gmail account and then use it to push the contacts to the phone.
It may seem convoluted and but the only official ways to sync your contacts are going to be through iTunes, icloud, active sync or google sync. I may just be having trouble understanding why you are trying to reinvent the wheel here so perhaps you could explain more of what you are trying to do here.

Plug In To Other Applications (iPhone SDK)

I'm pretty sure that due to the Application Sandbox, none of this is possible, but...
I am working on an application that operates on text that the user inputs. Aside from forcing the user to copy and paste from another application or type in text, what other options exist for getting text? To be more specific:
Is there any way to get the user to "pass" an email to my app? I can imagine a hacky solution where I have the user mail it to a server on the Net, and then I expose the mail from a server-side application, but I'd like something a bit more direct.
Is there any way to get to the user's mail inbox without asking them to put in their credentials?
Is there any way to plug-in to Safari, so that I can send web pages "over" to the app? I don't mean a full plugin, which I know is impossible.
I'm trying to think of creative ways to solve this problem of how to get text into my app, so any ideas would help.
From the Iphone SDK Forum: "Apps can't read each others files - but you could use a URL scheme to launch one app from another. Any parameters in the URL would be passed."
It's what my gut was telling me, but i wanted to go verify before saying..officially, no. The Sandbox isolates each program..
You can pass via URL text strings, but that's about it. I haven't seen any app which hacks around this limitation, but that just may be none of them surviving the app submission process.
http://www.iphonedevsdk.com/forum/iphone-sdk-development/21099-sharing-data-between-applications.html