How to build web clips like http://brdrck.me/settings/ - iphone

I am very interested in building an app like http://brdrck.me/settings/. My first questions are what is inside a web clip file? Is it a html or something else? The second question is how to add the icon to home screens programmatically. As you can see from the page I mentioned above http://brdrck.me/settings/. I tried to check its source code from browser but it turns out to be some normal CSS and javascript code in my Chrome browser and I don't know how to check the source in my Mobile Safari. Any one help?

You won't be able to get any valuable code from the source. Trust me. :D
But, I can help you out.
I use two different methods: The "Add to Homescreen" and .mobileconfig files (the one you have to install)
For adding to the homescreen check out this resource. With the help of some creative work-arounds, it isn't too difficult.
http://mobile.tutsplus.com/tutorials/iphone/iphone-web-app-meta-tags/
The mobileconfig file is a bit more difficult, esp trying to get it signed, but this might help you a bit. Try to create one with a webclip then view the generated files source: http://support.apple.com/kb/DL1465
Hope this helps.

Related

Flutter: How do I programmatically create home screen/desktop shortcut icons?

Basically, I have an app that supports multiple profiles, and i would like to give the option of creating icons that link directly to the profile with their own icon and name, which can be sourced dynamically.
I already have deep/dynamic linking set up (whichever one does custom schemes)
I just dont know how to create the icons.
I cant seem to figure out what search queries would find what I want without just finding firebase_dynamic_links as I'm not using Firebase.
It should be a local link that opens the app to the correct profile.
Preferably something that works both on mobile and desktop
This seems like the sort of thing someone would have made a package for, but I cant find it. Please tell me I dont have to create one myself!
There does appear to be others with similar questions, but none are properly answered, besides the firebase_dynamic_links one, which isnt useful to me.
I found firebase_dynamic_links, but as I am not using Firebase, its not what I need.
Nothing I search appears to find what I need... am I missing something obvious?
It should be simple right? Create a shortcut link with an image, name, and destination!

OwnCloud enhance core features with App (eg. user registration)

I started looking into OwnCloud app development to add some capabilities I would like to my server. To me it seems like Apps can't modify anything like the Login page or User Management page. Is this the case?
I want to build a user registration app and would love to integrate it into the user management page (if not and it has to exist as its own app page not a big deal). The one big problem I see so far is not being able to add a "Register" link to the login page. I could just go in and add it to the source manually, but I would like to keep the App self contained so others can use it too.
If this is not possible to do in an App I may just need to modify the core application and then see if they will accept my feature addition in a pull request.
Thanks to anyone who can shed some light on this for me. I don't want to waste my time trying to figure out how to do it with an App on the platform if it wont be doable.
After a lot of digging around I did figure out a way to do this.
In the App's app.php file, you can force a script to be loaded if the plugin is enabled:
$api->addScript('script_name'); // without .js
In that script jQuery can be used to add the elements to the page where you need them.
This was a good solution for me since I only needed to add a single button to the login page. I can see this being a bad idea if you want to make vast modifications. At that point you might as well just create a separate page that you have full control over.

Linking one xml to another xml using ImageButton in Eclipse ADT?

I am new to Android App Development and i am using Eclipse ADT. Basically I made my Home page for my app and my problem is I don't know how to link one xml file to another xml file. What i want to happen is, When I click the "Payment" on my homepage (Please refer to the screenshot..) I want it to redirect to another page (specifically on the 2nd screenshot). Please help me and I am having a hard time. I'm starting from scratch. :(( The "Payment" Button is an IMAGEBUTTON.
Btw. The homepages xml name is activity_main.xml and i want to redirect it to payvia.xml (Blank XML file). I just want to know how to do it. I know theres something to edit on the MainActivity.java and in the AndroidManifest.xml
Please I need your expert advices.
I cant attach screenshots because i lack reputation pts.
Oh man. You have to make two activity. One for your activity_main.xml and one for your payvia.xml . And after you have made the activity than you define your button on your main activity and set a Intent and say when you click the button then open a new intentand that new intent will be the second activity. I hope you have solved it till now. otherwise tell me again. Anyway it is the basic thing of building apps on eclipse.

iPhone Stylesheet or JS

I downloaded a template and customised it a bit. It's working well but the template has a kind of mobile style sheet. When I open the webpage with the iPhone, it looks great on the homepage. However, on the most important pages I don't want it to appear for mobile I want it to appear like it would on a browser.
I've tried.
Deleting the: style-mobile.css file. - Nothing happened.
Playing around with the style-mobile.css file. - Nothing!
Deleting some js files.
I can't seem to find the code that is telling my iPhone to open the page like an iPhone instead of opening it like a browser.
Where will I find this??
The idea that you can download an arbitrary HTML/CSS/JS(?) template that is designed for mobiles and have it magically adapt to look right in a classic browser window is .... naive.
Either look for a template that is designed to look good in both contexts, or build your own layouts using something like Twitter Bootstrap which is responsive to differences in the display port size.

Access to hyperlink in a pdf(iPhone)?

I am working on a small app, which can open a pdf. My question is, if it is possible to access a hyperlink from a pdf? Because when am trying to click on hyperlink nothing is happening and it's not redirecting me to the link. I tried searching a lot but didn't got any luck on this. Am expecting a quick response as my work is getting delayed because of this issue. If it's possible then what would be the approach? Right now am using UIWebView to open the pdf. Any sample app or code will be of great help.
Thanks for your time .
The only way I know is to use a third party library (or perhaps parse the PDF yourself), find the links, get their rects and catch user taps and compare that to the list of link/hyperlinks/gotos for that particular page.
Unfortunatelly - nothing in the SDK that can help. You can search for a opensource pdf library, like muPDF for instance.
There is a reason why not many applications have that functionality :D