Displaying Large Amounts Of Text
Apr 10, 2013
Say I want to make an app with certain tutorials...A lot of em..
I've classified them and made lists (like several buttons)...leading to the activity displaying the corresponding tutorials.
Now since most of them are going to be mostly text , What is the best way to implement it ?
I want it to be scrollable ...and zoomable and simply Display all the steps of the tutorial vertically on one page (like we see in MS word- neat.)
What's the best option I can use for this ?
View 1 Replies
Jul 26, 2010
I will be developing a dictionary app for both Android and iPhone. The data will be embedded within the app, and it consists out of approximately 100000 words, with genus and plural form. Is it better to use a SQLite database or can I just stick to XML? Somehow SQLite sounds more efficient, but I thought let's just ask.
View 3 Replies
View Related
Jun 5, 2010
Got it today and need the text font to be bigger! Does anybody know how to make the text font or any font bigger on a desire??
View 5 Replies
View Related
Jan 11, 2010
I am having issues in displaying Thai text in my HTC Hero device.Using SetText Function, i am unable to display the THAI text.when i run the App, i find square boxes, in place for the Thai text.please let me know the cause and solution, if anyone knows it.Similar issue is seen in Greek also.
View 8 Replies
View Related
Sep 28, 2010
I need to create fixed size sqare buttons with relatively large characters on them for a calculator app.
When I increase text size, the character is no more displayed in the center of the button and the button's position gets shifted some pixels to the top (very strange).
http://img9.imageshack.us/i/buttontest.png/
If it's possible I don't want to use images for the buttons.code...
how do I get all buttons equallly arranged with centered text?
View 2 Replies
View Related
Nov 16, 2009
I have a the beginnings of an Open GL game running, and have gotten to the point where it would be nice to have the FPS displayed. Since I will probably want to be able to put score or other info up anyway, I started searching for how to do that. I found the SpriteTest example, It looks nice, but really complex. Is there an easier way?
View 5 Replies
View Related
Oct 23, 2009
I want make it support multiple screens(small,normal and large).I am 100% sure the all of layouts are working perfectly now, but large screen,the problem is that all XML files of layouts in layout-large can't load,The platform always load default XML file(these are under layout folder) at large screen environment.
View 4 Replies
View Related
Sep 12, 2009
I have a LinearLayout defined in XML that I want to use repeatedly to display elements of a list. The XML-layout looks like this:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/background"
android:paddingBottom="5px">
<TextView
android:id="@+id/destination"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="22dp"
android:text="@string/test_destination"
android:paddingLeft="5px"/>
<TextView
android:id="@+id/date"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="15dp"
android:text="@string/test_date"
android:paddingLeft="5px"/>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/info"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingLeft="5px"
android:paddingTop="10px" >
I gather information about certain events from a webpage, and then I want to display all events in a list using the above layout for each event. My current approach is to have a LinearLayout as parent and then adding each event as a row.
Problem number one is to add the layout to each event (the number of events is varying). I.e., I want to dynamically inflate this layout for each event. I also don't want the text to be hard coded into the layout (as above) but added at runtime. I don't know how to do this. I have tried something like the following without any success.
LinearLayout eventView = (LinearLayout) findViewById(R.layout.event);
parentView.addView(eventView);
Problem number two is then to add these layouts to the parent view group and display it on the screen. When I try to do this using parent.addView(child), the program crashes at runtime and I can't figure out why.
It's kind of hard to describe the specific problem, since I'm new to GUI-programming on Android and I'm sort of programming by trial and error right now. Anyway, if you are able to help me with some of the problems it would be greatly appreciated. Linus
EDIT:
The problem now is adding text dynamically to the TextViews. I try this:
TextView dest = (TextView) findViewById(R.id.destination);dest.setText("myText");
only to discover that dest is null. Any ideas why and how to fix this?
EDIT 2:
I have narrowed the problem even more, but I really don't understand its nature. This is the trouble-method: Code...
it somehow works (even though the events are displayed in reverse order). Anyone knows what's going on here?
View 2 Replies
View Related
Jul 6, 2010
I've just got myself a Desire since last week and I am really really happy with it. It's my first android phone (previously had a Nokia N95) so I am still trying to get my head around it.
I've just realised that the phone is using massive quantities of data over the last two or three days. I have installed an app to show me how much and it is saying over 4gb, a lot of it during the night when I have not being using the phone.
I have obviously been using the phone a lot since I got it but nothing close to that amount. The most data hungry app that I can think of that I have used is Grooveshark and that was only for about 20 minutes. Also I have gone into all the apps I can think of and made sure that they are either set for manual sync or else no more than once a day. Is there a way for me to tell which app or widget or whatever is using all of this data? I am sure I have forgot to change the settings on something but I cannot figure out what it could be.
View 17 Replies
View Related
Jul 21, 2010
For 4 of my albums all the songs and the albums names come up as random amounts of ?s. i dont know how to fix it, i tried re-downloading them, and taking out some characters from the names but nothing will fix it. so is there any way to fix this or what is the cause. and is there any way to change name of songs and albums on the phone by just using the phone.
View 4 Replies
View Related
May 6, 2009
I am trying to create an activity layout that has a top level vertical linear layout like so:
CODE:................
This works ok as long as the wordDefinition text isn't very long. But, when I set the text to something very long, it pushes the back button off the bottom of the screen. Why? Isn't the ScrollView supposed to scroll the text in the child TextView?
I've tried playing with weights (e.g., giving the top text view a weight of .2, the scroll view a weight of .7 and the button a weight of .1, but to no avail.
View 4 Replies
View Related
Oct 5, 2010
I have an app that only requires the value of a textview field to be saved... what would be the most simple and efficient way to save such a small amount of data? Creating a database for this seems like overkill. would onSaveInstanceState be sufficient?
View 4 Replies
View Related
Oct 5, 2010
I have done some searching on this problem and the consensus is that there is some sort of a cap on uploading videos to Youtube that are larger than about 10 mb. If you try to upload a larger video Evo then says it is waiting to use WiFi to do the upload. This seems like a Sprint cap to me to prevent their network from having to handle the bandwidth of uploading anything but small videos. (what do we pay the extra $10 for? That's for another discussion.).SO, now that I am rooted, does anyone know how to change the settings and remove the cap so that I can upload larger videos via 3G or 4G without having to use a WiFi connection? I am rooted and on stock 3.29.651.5 Android 2.2. I do not want to use flash a custom ROM just for this ability.
View 5 Replies
View Related
Jul 3, 2010
The earbuds that come with the Aria are huge. There is no way I can use them. I am a pretty big guy with what I consider normal sized ears. These things won't fit at all. Anyone else have this issue?
View 2 Replies
View Related
Jun 22, 2009
I am reading the following URL to test a RSS parser. http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xm
When using the same code on a Android HTC phone the whole resource cannot be read. There are no exceptions being thrown. I am guessing the rss.xml is too large to be read in? I use a sax parser after the block of code which complains. Code...
View 4 Replies
View Related
Mar 11, 2009
Is it possible to stream a very large mp3 using MediaPlayer? The mp3 I am interested in is over 270 mb.
View 3 Replies
View Related
Sep 14, 2009
I'm writing a game for a computer class that I'm currently taking for school. The game has a lot of graphics associated with it (mostly in .png format). There is too much data to simply include it as part of the 'res'. The way i'm currently doing it, is to store all of the graphics in a single zip file, in a folder on the SDCard, e.g., / sdcard/Game/PlayerImages.zip (or whatever). And then i'm using the ZipInputStream to read from those, then using the BitmapFactory to decode the stream and then draw them on the canvas. The problem that I'm having is that this method is terribly slow if I add a lot of images into the zip file. The best way I have found thus far is to name the .png files within the zip numerically, then use a for-loop to jump directly to a specific file, but this is still a very slow way of doing it. I would like to use a single file (like zip) to hold all of the files for several reasons. 1., i'm trying to use a file container so i can simply update graphic 4.png and then push it into the zip file (for example) from a server. 2., because android sees all image files on the sdcard when you open the gallery application. 3., easier to prevent data manipulation by doing an md5/sha-1 checksum on 1 zip file, rather than every time a file is opened if it weren't in a container.
View 6 Replies
View Related
Apr 5, 2010
In android, to support all the screen resolution, i have created the layout, layout-small, layout-large folder in res folder, and i have .xml file in all the folder. I can get the output in normal screen and small screen resolution, but in large screen emulator i am getting the xml file in normal folder.it is not reading the xml file in large screen emulator. i am using Android 1.6
View 3 Replies
View Related
Aug 17, 2010
When I test my app, I notice that after some use it has built up a fairly large cache of several Mb. I see this when I go to Menu-
View 9 Replies
View Related
Jun 17, 2010
I cannot render a large triangle on android,what I can see is a rectangle,just like the triangle drops a corner This is my vertex array: [-8240, -3540, 10120, -8240, -3540, -3800, -8240, 10582, 10120] and this is my code: gl.glVertexPointer(va.getComponentCount(), gl.GL_SHORT, 6, vertices); gl.glDrawArrays gl.GL_TRIANGLES, 0, 3);
View 2 Replies
View Related
Aug 14, 2009
Is it a problem that i put 17 Mb database to /data/data or should i put it to /sdcard?
View 2 Replies
View Related
May 24, 2009
I must have searched high and low for the answer to my problem.I've even spent around $100 on books hoping that one of them would cover it alas it was not the case.I have approximately 50000 records in a database table. All I want to do is display them in a list-view so you can scroll through them.I dare say I will need to lazily load them as you scroll through the list - my question is how and can it be done through a content provider? I noticed the SlowAdapter in the APIDemos that appears to do exactly the kind of thing that I am looking for, but Im unsure of the correct method for requerying the content provider with the new limit criteria (or at all via a ContentProvider). Do I need to create a new cursor and merge it with the previous one as I scroll down?
View 13 Replies
View Related
May 1, 2009
Suppose I have the URL for large animated gif and I wanted to make a youtube like activity that displays the animation in a streaming way. How do I
stream in the image?
get it do display with actual animation?
I know ImageView is not the answer as it only shows the first frame.
A bonus would be having access to its buffering status so I can synchronize streaming sound as well -- this is part of a YTMND viewer application. While I could create a service that transcodes the public gif files into a nicer format, I'd like the app to function without additional dependencies.
View 3 Replies
View Related
Jul 17, 2009
This is with reference to http://groups.google.com/group/android-developers/browse_thread/threa....
Large gif images of size more than 4MB can not displayed in android.
Is this is a known issue in android?
View 4 Replies
View Related
Apr 14, 2010
I searched the forum but couldn't seem to find an answer relating to the Hero. Im trying to delete large sms threads (700+ messages) but have been unable to do it. Basically nothing happens and if I keep pressing 'delete all threads' the phone just freezes. I have tried it then left the phone overnight to see if it just needed time, I have also tried keeping the backlight constantly lit for around 15 mins in case that affects it but still nothing. Any suggestions? I am using handscent if that makes any difference.
View 4 Replies
View Related
Jun 5, 2010
So I removed it from my main screen and now I can't seem to find it so I can re-add it.. Anyone know how to add it?
View 12 Replies
View Related
Jun 21, 2012
I'm looking to make a large library of files available through an app. (nearly a 3gb folder and growing.
User would download the APP and then have access to an ever growing library of files they can then choose to download whatever they want from it.
Can this be done by a simple RSS reader?
I don't want the files available to anyone without the app installed. It would only be a text list of the files, clickable to download.
View 1 Replies
View Related
Sep 16, 2010
We are just beginning a rollout of EVOs to our firm. The first one other than mine has an interesting problem. We have successfully synched his Contacts with our email system.He is trying to add a new contact on the EVO. He successfully creates and saves the contact, but it does not display under "People". If he does a search though, he can find it. None of the contacts he is adding are showing up unless a Search is done. They are added under Google contacts, where the rest of the contacts are and are not in any groups. Any ideas as to why they won't display?
View 2 Replies
View Related
Nov 10, 2009
In 1.6 sdk, map is not displaying, i put all the permissions and uses- library in manifest, added the external map.jar from add-on... created AVD manager with google-API 4.But when running, its showing
11-10 15:31:00.255: ERROR/AndroidRuntime(1587): Uncaught handler: thread main exiting due to uncaught exception
11-10 15:31:00.295: ERROR/AndroidRuntime(1587): java.lang.NoClassDefFoundError: com.nithin.ViewMap
11-10 15:31:00.295: ERROR/AndroidRuntime(1587): Caused by: java.lang.IllegalAccessError: cross-loader access from pre-verified class
View 3 Replies
View Related
Aug 15, 2010
I'm looking for large home screens applications/widgets to make the use of my HTC Wildfire home screens - like the original ones.
View 5 Replies
View Related