My app file size is already 32Mb - onclicklistener

I'll start off by saying I am an absolute beginner. I've been following a very good tutorial on YouTube and reading a few books. So far, I have a working app which consists of a splash screen, load up music and then a menu with 6 buttons. I have got these six buttons opening up a new view. I have created a new Java class and a new layout.xml for each new view. Is this right? Basically, all I want to know is how to make an efficient app which allows me to use my 6 buttons to take me to another set of buttons as a sub-menu and then inside those buttons I want to display the information using text and videos and audio. It's a tutorial app. Once I know how to do this then I should be able to continue developing within the app. Any help or ideas please? Since my app is already so large, I'm guessing I've done something wrong, but as I say, the app is working at least.

I had a similar problem. My app was 40MB. I found out my music files were too big. I was using wav files. When I converted them to ogg files, my app went down to 14MB.
This website was useful: http://media.io
The buttons and extra activities probably don't take up that much space. I'm guessing it's the music and maybe any images that you have.

Related

Xcode Menu of Buttons

I'm a complete newbie to Xcode and I'm trying to create my first app for my website: www.mathimation.co.uk
I'd like to create a menu of buttons similar to my website, which looks like the home screen of an iPhone/iPad. The buttons simply take you to another screen when clicked.
However I'm stuck! I've tried using buttons and labels within stacks, however I can't quite get the constraints/sizing correct. Everything moves or doesn't resize correctly on different devices. I've found tutorials that have worked for Image Views, but not Buttons which contain images. I've tried a Collection View, however I feel out of my depth with the coding and it then doesn't work.
If I were building a website, I would create a table, insert the images and text, then hyperlink to different pages. But this doesn't seem as simple!
Does anyone have any suggestions? Or know of any good tutorials to help?
Thank you so much!
Screenshots:
Menu on my website I am trying to create:
http://www.mathimation.co.uk/wp-content/uploads/2017/08/Mathimation-Menu.png
EDIT: I have had some success with Stacks, however am I now using too many?
http://www.mathimation.co.uk/wp-content/uploads/2017/08/Xcode-Menu-1.png

How to remove a tag from my TinyDB

I want to build an application that takes data from one screen and lists them on another screen. I use TinyDB to do this. My problem is how to delete a tag?
When I choose what to delete, it deletes it but if I get back to the screen from the beginning it shows the entire list without changes.
I attach my blocks here.
Your blocks look fine, your issue seems to be in the other screen...
In the other screen first read your tags from TinyDB again before displaying them... in case this does not help, you might want to edit your question and add a screenshot of the other screen, where it shows the entire list without changes...
Also: never use the open another screen block together with Screen1. Why? see here:
The recommended method of switching screens in App Inventor
Note: there is only one TinyDB, see also the documentation
Each app has its own data store. There is only one data store per app.
Even if you have multiple TinyDB components, they will use the same
data store. To get the effect of separate stores, use different keys.
You cannot use the TinyDB to pass data between two different apps on
the phone, although you can use the TinyDB to share data between the
different screens of a multi-screen app.
A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .
Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

How to make thumbnails in wordpress play audio after click through stratus

I probably searched through the entire web but couldn't find any help on this. Before I ask the question I must mention that I am a complete novice in web development.
I went through a lot of websites that enable you to play audio through stratus after clicking on a thumbnail. Although websites like indieshuffle.com and themusicninja do not use stratus, I was wondering how they get their photos to play songs in their audio players.
Similarly, I don't want my thumbnails to link to the post but instead I want people to play the corresponding soundcloud track after clicking on the thumbnail. Also, if it is possible to have play/pause buttons on the thumbnails it will be great.
Of course, I have ajax and stratus as well as the full width audio player installed as plugins.
I am guessing this has to do with embedding the shortcode for the track somewhere in the image.
Please help!!!
since you are complete new your best bet here is an album plugin or something
that will let you attach an image and have a mp3 file to relate to, and be displayed without much knowledge in coding.

Is there a standard Control for creating an in-app video player?

Im making a videoplayer in a wp7 app. Im using mediaelement to show the video, and sets its source from a url. Functionality i wanted are play/stop-buttons, forwarding/rewinding, a progressindicator (for the progress of the video itself) and show a progressbar when it buffers. I have accomplished all above, using some customized grids, buttons and so on.
I did get some trouble though, which i dont want to bother you with here (its a mess) and which is why im asking the following:
Is there a standard (or downloadable) control for wp7 that does all these things for me and that works perfectly. Ive searched "everywhere" but couldnt find anything. It surprises me that this isnt an easy to use, built in control that is easy to customize, since standard videoplayers are something id guess alot of apps could take advantage of.
Anyone?
Here is a tutorial on how to create a Windows Phone 7 View Model Style Video Player.

How can we update the tile in Windows Phone 7 like the in build people app

I am trying to make a Windows Phone App. I could not find any resources about updating the tiles like it is done in people app. Is the people app having special features because the it is in-build?
If not they should be joining all the profile pics and showing as a new tile image every time a an update happens. If this is what happening, how is it been done, from the coding perceptive?
Thanks in advance.
If you mean the People tile, then no, you can't create a animated tile like that.
But generally you can create very custom tiles, and you can utilize the flip-functionality, and display two different tiles. If you run it as a background service, you can also update the image(s) every 30th minute.
I wrote a guide on how to create advanced tiles.

Resources