[Q] Code Templates? - Android Q&A, Help & Troubleshooting

So i've gotten te task to do a clickdummy for an android app i designed.
I've got experience with java, but i don't want to digg into the android stuff...
I'm searching for something like code templates of apps like the Playstore or the YouTube app.
Is there a service or something for this kind of thing?
//Edit:
To make it a bit clearer: I'm searching for a raw app without any logic implemented. I just want to have a layout with CardUI like the Playstore or YouTube has it.
I hope you understand what i mean.
Greetings,
Flo

Related

[Q] learning how to develop apps

i want to start making apps for android but dont know where to stat i have the sdk on my desktop but thats about it. If someone could please help me or push me in the next step please do so.
Just go to the dev guide on the Android website to start making your first Hello World app. As for language, Android (I could be wrong) uses Java. Again, I could be wrong.
Sent from my GT-I9000M using XDA App
Indeed, Android uses Java. I'd suggest learning it before attempting to program for Android or else you'll feel like it's gonna be too difficult. There's plenty of books on Java, and some powerful Google searching will lead you to step-by-step guides to learning Java.
Also, go through the Android Dev Center for a lot of information. There's plenty of guides there on things like 'how to design your app to flow with the overall android feel' and 'designing icons to fit general android homescreen look'.
You're gonna want to download Eclipse for Java Programming. It's a free Java development environment much like Dreamweaver and Visual Studio are for web development.
Oh, and PLAN! Like any good development project, your project will not get anywhere if you don't know where to start and when to end it.
Plan first. Then plan the planned elements. Java is object-based programming, and just like building a house each object needs to be solid or else it'll crumble to pieces.
Same here. Thx for the advice.
elindemann said:
Indeed, Android uses Java. I'd suggest learning it before attempting to program for Android or else you'll feel like it's gonna be too difficult. There's plenty of books on Java, and some powerful Google searching will lead you to step-by-step guides to learning Java.
Also, go through the Android Dev Center for a lot of information. There's plenty of guides there on things like 'how to design your app to flow with the overall android feel' and 'designing icons to fit general android homescreen look'.
You're gonna want to download Eclipse for Java Programming. It's a free Java development environment much like Dreamweaver and Visual Studio are for web development.
Oh, and PLAN! Like any good development project, your project will not get anywhere if you don't know where to start and when to end it.
Plan first. Then plan the planned elements. Java is object-based programming, and just like building a house each object needs to be solid or else it'll crumble to pieces.
Click to expand...
Click to collapse
Actually, you're doing things the hard HARD ...HARD way....
if you want to develop apps for android, Titanium Mobile (appcelerator.com) is the best way to go. It takes far less time to learn JavaScript , CSS and HTML then it does to learn pure JAVA, and then learn to implement Android's API.
There are a few things that Titanium Mobile can't do, but they are always working on it to make it better. And of course - it's free
I've made a few apps using it. Including an HTML eBook reader, Chinese Flashcard App, and a Simple Chat Client.
Their JavaScript API takes a bit to get used to, but after that, you can easily spit out a simple app in about a day or so.
I have a web-app Template that lets me dump a Web-app (html/css/js) into a project, and spits out a nice new shiny Android app ready for the market.... I also wrote code that lets you access the Menu Button on android too. So it's not like using PhoneGap where it's just a Browser session with an icon on your phone.
PM me if you're interested, and i'll show you everything i learned about Titanium Mobile so far (i'm still learning actually). Or if you want an app done, i can do it for you... free if it's easy enough
DaoMingJin said:
Actually, you're doing things the hard HARD ...HARD way....
if you want to develop apps for android, Titanium Mobile (appcelerator.com) is the best way to go. It takes far less time to learn JavaScript , CSS and HTML then it does to learn pure JAVA, and then learn to implement Android's API.
There are a few things that Titanium Mobile can't do, but they are always working on it to make it better. And of course - it's free
I've made a few apps using it. Including an HTML eBook reader, Chinese Flashcard App, and a Simple Chat Client.
Their JavaScript API takes a bit to get used to, but after that, you can easily spit out a simple app in about a day or so.
I have a web-app Template that lets me dump a Web-app (html/css/js) into a project, and spits out a nice new shiny Android app ready for the market.... I also wrote code that lets you access the Menu Button on android too. So it's not like using PhoneGap where it's just a Browser session with an icon on your phone.
PM me if you're interested, and i'll show you everything i learned about Titanium Mobile so far (i'm still learning actually). Or if you want an app done, i can do it for you... free if it's easy enough
Click to expand...
Click to collapse
Wow, I'm very interested. I might check it out.
sent from my pimp hero running Froyo CM6 and the XDA app
If you know the C or C++ language you could try out MoSync, depends what you like, some programmers like the level of control and speed you get from C++. If your content with simpler apps then maybe phonegap or appcellerator for you.
I guess that when mobile apps get more sophisticated javascript programs will be just as complex as C++ programs.
Thats my view, but then I like C++ better.
/Tony
MoSyncTony said:
If you know the C or C++ language you could try out MoSync, depends what you like, some programmers like the level of control and speed you get from C++. If your content with simpler apps then maybe phonegap or appcellerator for you.
I guess that when mobile apps get more sophisticated javascript programs will be just as complex as C++ programs.
Thats my view, but then I like C++ better.
/Tony
Click to expand...
Click to collapse
It really depends on how much control and you really need. If you're going to write games, then you do need speed that C++ and the Native Application Development API on android can give you. If you're writing a social networking app, the speed of C++ would really be an overkill.
As far as i've read, PhoneGap still has a lot of issues. And the build process is a bit more complicated than on Titanium Mobile.
If you're just using the regular Android API to write apps, i don't notice a lot of difference in speed execution between writing it in pure Java, or using Titanium mobile (using native code and UI elements - i don't mean putting everything into a WebView).
The current app that i'm writing now i don't think can be written using Titanium Mobile or PhoneGap (unless i added some native functions and did my own fork of PhoneGap).
More or less, i'm writing an App for Android and JRE/Linux systems that will allow me to enumerate, and access USB status bits, and USB data frames of a given USB device, and then allowing that USB device to be accessed through a TCP or UDP connection.
I might be able to do this with Titanium Mobile, but i don't think i can. As the only files you're allowed to access are on the SD card, application data directory, and temp directory.... i think there's one other place you're allowed to access too, but i never used it. However later today i might just try to see if i can access the /Dev/DSP01 (aka sound card) on an android device. If i can, i think i could write it using titanium mobile. I'm already halfway done with this app in pure java, so i wouldn't actually rewrite it in Titanium Mobile now.
DaoMingJin said:
if you want to develop apps for android, Titanium Mobile (appcelerator.com) is the best way to go.
Click to expand...
Click to collapse
Thanx mate!
If you looking a book or something to teach you the basics Beginning Java Programming for Dummies and Android Application Development in 24 Hours are good reads.
I'd rather not fill the forum with more threads so I'm just going to ask my question here. What is the best way to read the android dev guide on the device itself? Just going to the site directly? Ideally I'd like a pdf or something designed to be read on a small screen. The site can have formatting issues when read on a small screen.
Sent from my SPH-D700 using XDA App
I've been developing for a long time (nearly 30 years), and whenever I need to learn a new language I start with the Sams range, "Teach yourself whatever language in X days/hours". They're pretty good and this is available for Kindle, which is great if you use the Amazon Kindle app...
http://www.amazon.co.uk/Teach-Yours...1_fkmr2_2?ie=UTF8&qid=1287485537&sr=8-2-fkmr2
It obviously costs, but I really do rate those books as brilliant starting points. The rest is google and friends on here.
Hope this helps - good luck mate.
Personally, I've been coding in Java for what... four years now? I'm feeling dwarfed here by johncmolyneux but honestly, the best way to learn is to not use an IDE like Eclipse, but to use something that you have to hand-code everything yourself, such as Geany! You learn fairly quickly after writing a few applications.
If you are thinking "titanium", "mosync" or "phone gap" it is worth doing a bit of background research. There are several extremely powerful tools out there that can help you build cross platform apps - these are among the top ones.
bit more discussion about this here: http://forum.xda-developers.com/showthread.php?p=16703287#post16703287
There are a few useful reports comparing them - check out ours by googling "triballabs cross platform"
The Google App Inventor makes it pretty easy to create your own Android apps. Best part is you don't need to learn any programming languages. You won't be creating anything too complicated like a video game for example, but it's a good start nonetheless.
http://appinventor.googlelabs.com/about/
If you want to learn the basics of Java, then please check out a book called as "Head First Java". They really explain the basics with the help of real life examples to make things much simpler so that people understand.
Beginner app projects
I'm also just getting started with app development. Something I've been looking for is a beginner app project. Wish I could find a walkthrough of a simple app like a game of Hangman or something like that. I've been through the android developer training web site and got some good info but some things I'm still a little stuck on. Id Love to see an actual app (rather than just a mock up of some fields and buttons) and then a slightly dumbed down explanation of the code. Might be a lot to ask but man it would be great!

Android app port to Ubuntu Touch

Hey!
We know, that we can't run Android apps on Ubuntu Touch. The UT is a great operating system, but it has a big problem. It doesn't have any "neccessary" or "must have" applications NOW. These apps are the following by the community's opinion: FacebookMessenger, WhatsApp, Google Maps, a browser (like Chrome, Opera mini or Firefox), instagram, etc.
So, I want to know, that we are possible to port these (or any other) Android apps to UT, or not? If the answer is yes, i want to create a team. In this team i want to port Android apps, or create this apps alternatives.
Guess not much up in the forums
Request: Simyo Call Status App [Netherlands]
Hi there,
I haven't been on the xda forums a lot since the end of 2009 I believe but, since Canonical announced Ubuntu Touch this year, I have my reasons to pick up browsing the forums again. The Ubuntu Touch region, specifically.
Now, you were asking if there's any Android Apps to port to Ubuntu Touch.
I have a request that might not be of interest to a lot of people but will get pretty important to me once a 'user version' of Ubuntu Touch is released:
Simyo Netherlands provides an App to check your current "Belstatus" or call status.
This app provides me (on my iPhone) with the current remaining minutes/sms messages and remaining data (megabyte) for the current month within the contract.
Below the link to the Android equivalent in the Play Store, which might be portable to an Ubuntu Touch app:
https://play.google.com/store/apps/details?id=nl.simyo.mijnsimyo
Let me know if this is something you'd be interested in doing.
I might be of some help being a C# programmer, but I still need to check out the Ubuntu Touch SDK (my HTML5 and QML knowledge is poor) and that's something I won't be able to very soon....
frummel said:
I might be of some help being a C# programmer, but I still need to check out the Ubuntu Touch SDK (my HTML5 and QML knowledge is poor) and that's something I won't be able to very soon....
Click to expand...
Click to collapse
I have a little bit of C# knowledge, but i'm good in HTML5, so this is a good beginning i think.
DLevai94 said:
I have a little bit of C# knowledge, but i'm good in HTML5, so this is a good beginning i think.
Click to expand...
Click to collapse
You can port any already existing apps that are found on Android, you just need the API from the app developers.
Google Maps
same here.. looking to port my android apps to ubuntu touch, developed using java..
is there some porting apps like Command Tools in Blackberry OS10
srdananjaya said:
same here.. looking to port my android apps to ubuntu touch, developed using java..
is there some porting apps like Command Tools in Blackberry OS10
Click to expand...
Click to collapse
No, there's no tool like that for Ubuntu Touch (yet?).
I'd be willing to port my Android apps to Ubuntu touch. Does the work need to be done from scratch? Is there a simpler way to port a java, native, android app to Ubuntu?
I can't contribute anything app-wise, but this sounds like a really good idea; best of luck!
Ubuntu-Touch must LIVE! I have use it and it is cool system. Some problems with applications time to time appeares. And it is very hard find developers for apps. But I think if required apps appeares -- more people move to UT. And first of all that system must use NOT for games.
DLevai94 said:
Hey!
We know, that we can't run Android apps on Ubuntu Touch. The UT is a great operating system, but it has a big problem. It doesn't have any "neccessary" or "must have" applications NOW. These apps are the following by the community's opinion: FacebookMessenger, WhatsApp, Google Maps, a browser (like Chrome, Opera mini or Firefox), instagram, etc.
So, I want to know, that we are possible to port these (or any other) Android apps to UT, or not? If the answer is yes, i want to create a team. In this team i want to port Android apps, or create this apps alternatives.
Click to expand...
Click to collapse
Till last some years UT has some changes. For example appears OpenVPN network manager in a base apps. But unfortunately that feature with unresolved bugs. Also I didn't find any browsers like QupZilla/Mozilla FireFox or Lynx. So As for me we required updated OS for first. And normal browser. Current versions of browsers are unusable. That i big part of work. For that required powerful developers group. I try to compile and run some examples to UT but unfortunately unsuccessful. But I try. Who also try do something but with successful result?

[App][Source]Browser

Hello fellow XDA's,
I know it's maybe stupid to ask you for this - but i feel little confused when i am looking for information about "how to build a web browser for windows phone8" so i was thinking if is it possible to share some old code for beginners.
Looking for easy web browser just for training purposes:good:
You might be able to find some old ones floating around, though probably not anything for the new frameworks (WP8.1, etc.).
The usual and easy approach is to start with a simple XAML app that has a WebBrowser control filling most of the layout. Then you add whatever controls you want (URL bar, etc.) around that, wire up the relevant events and any data storage you want to have (bookmarks, data synch, etc.) in the back-end C# or VB pages.
If you want to get Fancy and try implementing a different rendering engine than the built-in IE-based one... well, good luck! You'll need to do quite a lot of work just to port one to Windows Phone, although WebKit minus the JavaScript JIT should be possible (it was ported for RT last year). Then you'd need to create a XAML control to display it, or else use the DirectX APIs to draw it directly in a C++ app.

build YouTube app for Windows 10

How do I build a YouTube app for Windows 10 Mobile
I want learn how to build YouTube app
Help plz
Well you need to tell more info than just asking for help. What is the thing you need help with? What YouTube app you are talking about? AFAIK you need a source code for the app if you want to build it with Visual Studio so do you have it?
You need get YouTube API , using Visual Studio dev app.
https://visualstudio.com
李晓萌 said:
You need get YouTube API , using Visual Studio dev app.
https://visualstudio.com
Click to expand...
Click to collapse
How is this?, And then what ?
I_am_Egyptian_and_proud said:
How is this?, And then what ?
Click to expand...
Click to collapse
You have any programming skills at all?
hene193 said:
Well you need to tell more info than just asking for help. What is the thing you need help with? What YouTube app you are talking about? AFAIK you need a source code for the app if you want to build it with Visual Studio so do you have it?
Click to expand...
Click to collapse
I have an idea for it. Somebody just need to wrap the m.youtube.com web mobile app to be more like a native app, since it's already almost feature complete, and its Material design already, so you guys won't bother much on design. And just maybe add some little native things there like Native Windows Video Player API and controls, maybe casting too, some CSS modifications on the web app's features and looks too, like making the tabs hide when you're scrolling down, and will show up when you scroll up again (just like the YouTube app) (which is not present on current mobile web app) or some custom animations too, ability to scroll through tabs with swipe (currently not possible on mobile web app's CSS rn), maybe a more native rewrap of dialogs on the mobile web app, native to Windows, I don't care if it's Material design on this aspect as since Windows design APIs is still incomplete btw, as long as it's responsive and interactable than the CSS ones, and also maybe native PiP on the app, ability to collapse the player/video page if you swipe down on it or tap collapse button, the whole video page will collapse and fade and the native player will be small at the side, also ability to dismiss it to end the remove or stop the video too.
The good thing with this is you wont need an access to YouTube API (I think) (which is also very restrictive and limited) since you're just wrapping some parts of the web app instead of remaking it.
This is all theoretical btw, since I know few of programming and developing bc I'm more of a UX designer myself. I hope this is possible. And hope someone brave see this idea and really do this. We'll back you with our support
PrinceKicksters said:
I have an idea for it. Somebody just need to wrap the m.youtube.com web mobile app to be more like a native app, since it's already almost feature complete, and its Material design already, so you guys won't bother much on design. And just maybe add some little native things there like Native Windows Video Player API and controls, maybe casting too, some CSS modifications on the web app's features and looks too, like making the tabs hide when you're scrolling down, and will show up when you scroll up again (just like the YouTube app) (which is not present on current mobile web app) or some custom animations too, ability to scroll through tabs with swipe (currently not possible on mobile web app's CSS rn), maybe a more native rewrap of dialogs on the mobile web app, native to Windows, I don't care if it's Material design on this aspect as since Windows design APIs is still incomplete btw, as long as it's responsive and interactable than the CSS ones, and also maybe native PiP on the app, ability to collapse the player/video page if you swipe down on it or tap collapse button, the whole video page will collapse and fade and the native player will be small at the side, also ability to dismiss it to end the remove or stop the video too.
The good thing with this is you wont need an access to YouTube API (I think) (which is also very restrictive and limited) since you're just wrapping some parts of the web app instead of remaking it.
This is all theoretical btw, since I know few of programming and developing bc I'm more of a UX designer myself. I hope this is possible. And hope someone brave see this idea and really do this. We'll back you with our support
Click to expand...
Click to collapse
So what you want to do is create an appx with a webview inside with the uri m.youtube.com basicly, more complex app would be using Youtube API.
Please don't make a web wrapper :crying: . There are enough of those in the Store already and I'm pretty sure the YouTube APIs aren't that restricted, haven't you guys downloaded myTube already?
Instead, search for the YouTube Data API and figure out how to use HTTP requests to send/receive JSON to use data from Google into your app.
This is to want to reivent the wheel, poius ja exixte several clients of Youtube available in the store and for free

How to Convert Website into Android App

Is there any way to convert website into android app? I have a website carpet cleaner picks and I want to make an app as well. What I want is complete website must be converted into android app? This is something called webview or something like that if I am not wrong.
There have been dedicated apps for that, which in time lost functionality.
You can fiddle with the Sketchware app https://play.google.com/store/apps/details?id=com.besome.sketch which is a very simple visual programming app for Android, and put together an app which opens a webview of your site. You can build anything on that even without being a programmer.
See what I did with the website of our scientific society (and I'm no programmer at all): https://play.google.com/store/apps/details?id=com.debernardis.SITD_in_tasca
EDIT: unfortunately Sketchware, last version, has new problems with showing webviews. Until they fix that, my solution is unfeasible. Already built apps are still working.
debernardis said:
There have been dedicated apps for that, which in time lost functionality.
You can fiddle with the Sketchware app https://play.google.com/store/apps/details?id=com.besome.sketch which is a very simple visual programming app for Android, and put together an app which opens a webview of your site. You can build anything on that even without being a programmer.
See what I did with the website of our scientific society (and I'm no programmer at all): https://play.google.com/store/apps/details?id=com.debernardis.SITD_in_tasca
EDIT: unfortunately Sketchware, last version, has new problems with showing webviews. Until they fix that, my solution is unfeasible. Already built apps are still working.
Click to expand...
Click to collapse
Ok, That is good. Thanks for this. Now, I can have an app of my website portable carpet cleaners

Categories

Resources