Android :: How To Get Rid Of Extra Space From GirdView Object?
Jun 2, 2010
I'm writing an application for Android phones for Human vs. Human chess play over the internet. I was looking at some tutorials, to learn how to develop Android applications and found a very nice example of making galleries (it was a GridView usage example for making a gallery about dogs) and the idea came to draw the chess table using a GridView, because the example project also handled the point & click event and I intended to use the same event in the same way, but for a different purpose. The game works well (currently it's a hotseat version), however, I'm really frustrated by the fact that whenever I rotate the screen of the phone, my GridView gets hysterical and puts some empty space in my chess table between the columns. I realized that the cause of this is that the GridView's width is the same as its parent's and the GridView tries to fill its parent in with, but there should (and probably is) be a simple solution to get rid of this problem. However, after a full day of researching, I haven't found any clue to help me to make a perfect drawing about my chess table without a negative side effect in functionality.
View 2 Replies
Apr 13, 2010
I'm trying to pass an object from an activity to another activity. In the first activity i do:
Intent intent = new Intent(this, SecondsActivity.class); intent.putExtra("package.class", SerializableObject);
And in the second activity:
Class object = (Class) extras.getSerializable("package.class"); objetc.modifySomething(2432);
Intent intent = new Intent(this, ThirdActivity.class); intent.putExtra("package.class", SerializableObject);
But if i modify the object in the second activity, it fails when i send this object to a third activity.Why does it fail? What am i doing wrong? I just need to pass objects between diferent activities because i have an object which contains many information, and creating a Boundle would be very big and ugly in my code.
View 3 Replies
View Related
Aug 25, 2010
I have an activity that extends ViewFactory. The activity does nothing more than act as documentation for my app, with 5 different 'views'.
Each view is placed inside a ScrollView in a TextSwitcher. The problem that I am facing is that if one of the five views has more text than the next view, there is empty scroll space.
Any ideas on how I can get rid of this space?
View 1 Replies
View Related
Sep 16, 2010
On Thu, Sep 16, 2010 at 9:49 AM, niko20 <nikolatesl...@yahoo.com> wrote: > One final question regarding extra space. Say for example on a large > screen device I decide instead now to create a whole new layout with > new controls so the user has access to all the controls instead of > having to use a menu.
> How do you code for that then? Is there a way at runtime to tell which > "layout" really was loaded by the framework so the code can hook into > it differently?
View 2 Replies
View Related
Jun 18, 2010
If I uninstall an app i paid for because I have no space and don't use it as much am i able to re-download it for free later one for example a week or month later. It didn't cost much but its that fact that I already paid for it so why should I pay again.
View 3 Replies
View Related
Oct 15, 2010
I'm using webview to display local html content. The text fits the screen width, but the user is able to navigate horizontally where there is only blank space left. However, there is no content to be shown as everything fits the screen size. Does anyone know how can I avoid this behavior? I mean, if all content is being show, how can I disable horizontal navigation.
View 2 Replies
View Related
Sep 9, 2009
I want to do some automated testcase with Instrumentation . Suggest that my AUT has 2 Activity. After clicking the button in ther first Activity, the second one will be shown with new content base on what we enter in the first Activity.) Instrumentation provides us the function called startActivitySync() and return the Activity object for processing. My question is how we can get the pointer of the second Activity after the it is shown by clicking the button on the first activity.?
View 2 Replies
View Related
Jun 8, 2009
I would like to convert a Picture object to Bitmap object in memory, without writing data to disk.
View 2 Replies
View Related
Sep 21, 2009
I have an Activity that running on system. I can get the Intent that is used to start the activity. But i don't know how to get the Activity object from the Intent object or something else. Can anyone tell me how to do this??? Note that, I don't use Instrumentation object.
View 11 Replies
View Related
Feb 18, 2009
I am trying to get a FileInputStream object on an image that the user selects from the picture gallery.
This is the android URI returned by android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI content://media/external/images/media/3
When I try to construct a java URI object from this object, I get an IllegalArgumentException with the exception description Expected file scheme in URI: content://media/external/images/media/3 whereas the android URI shows the scheme as content
Never found a solution for the original question. But if you want the byte stream of an image in the pictures gallery, this piece of code will do that.
CODE:...................
View 4 Replies
View Related
Sep 9, 2010
i got this notification yesterday so i deleted some apps and all my text messages but i cant get rid of it now!
any ideas?
View 14 Replies
View Related
May 13, 2010
So I just downloaded an app that quickly shows battery life, SD space, and disc space. It says I have used 628 of 748 mb on the disc. I thought the phone had an internal memory of 8gb.
View 3 Replies
View Related
Dec 16, 2009
Had my Samsung Moment for about a month. LOVE IT. Few issues (same as everyone else has noticed), but nothing terrible. Until: Randomly today TWO Notifications popped up that said "Low on space Phone storage space is getting low." One was what seemed to be from the "hardware" and the other was from the "Work Mail" app (which I don't use, haven't used, haven't even opened). When I click it, it takes me to the Manager screen. So, I began uninstalling some apps I don't really use (I didn't have that many anyway...a couple of games [Solitaire, etc], Facebook, Notes). It started running really slowly and random Force Close messages would appear for things like android.process, messaging--things that have never Force Closed before. I turned it off (pressed and held the red button), waited a few seconds, then turned it back on again. Immediately after the "Sprint" logo lights show finished, I got another Force Close message. When the Home Screen showed up, I had the two notifications again "Low on space". When I cleared the notifications, only the "Work Mail" one would clear. I went through and deleted some more apps that I don't use. Got on my computer & Googled the issue. Found a couple of random forums that suggested cleaning out the Cache in the Browser. I did that. Cleaned the History & Cookies in the Browser, too. Then, I did a soft reset (took out the battery). Started it up again, SAME notifications. Less Force Close messages. But, it's running VERY slowly.
After a few hours, I noticed that I hadn't received any text messages or Gmail notifications. I had my sister text me about 2 hours ago. Still have not received it.
I really don't want to hard reset. I haven't synced my contacts (I have over 400 & the Sprint store had trouble moving them from my Centro to the Moment) to Google yet, nor have I hooked my Moment up to my Mac yet (the Sprint guys had no idea if it would work or not with Snow Leopard & I hadn't had time to check yet) and I'm worried to try it now that my Moment has gone crazy...I really don't want to lose 400 contacts.I don't download a lot of apps. Most are reputable (Pandora, MotherTED, Shazam, Movies, Jewels). The last one I remember downloading was Google Voice three days ago (which I haven't really used because I've had the flu). I don't know if this is a Malware/Virus issue or if I'm just an idiot & did something wrong. But, it's running REALLY slowly right now. Still not receiving texts or emails (though my Twitter app has notified me of a couple of @ replies).I'm going to call Sprint & Samsung tomorrow, then go to a Sprint tech store if they can't help. But, I'm just hoping one of you have come across this & can help before I have to deal with hours of hold music & techies who tell me to soft reset over & over again.
BTW:
After awhile, I finally checked the storage space:
External SD care: Total: 1.89; Available: 1.85
Internal: About 2 hours ago when I first checked, after I had deleted a bunch of apps it said I had 7.something MB, now (after not downloading ANYTHING or barely even TOUCHING the damn thing) it says 1.95MB. Which leads me to believe that the 7.whatever was not necessarily accurate.
View 31 Replies
View Related
Aug 3, 2010
On Sunday I started getting the message "Low on space Phone Storage space is getting low." on the status bar. When I tap it, I'm taken to the "Manage Applications" screen, so it's clear that the message refers to the "Phone Memory," where apps are stored But when I go to Settings > SD card & phone storage here's what I see:
SD Card Total Space: 14.83GB
SD Card Available Space: 6.15GB
Internal Phone Storage Total Space: 6.60GB
Internal Phone Storage Available Space: 6.51GB
Phone Memory Total Space: 748MB
Phone Memory Available Space: 332MB
I've googled looking for solutions and it's obvious that this is a fairly common problem - especially on HTC phones. But the only possible solutions I've found are:
Too many apps are installed & space really is running low
A "bad" app was recently installed causing this error
Clear the cache for HTC Mail and HTC Message apps
Perform a Factory Reset We can rule this out since there is more than 44% of the Phone Memory available.
I didn't install any apps immediately before getting the message, but to be sure I uninstalled the 10 most recently added apps. No luck.
I've gone to Settings > Applications > Manage Applications, but the cache for these apps is already zero. The "Data" for Mail is 2.22MB and for Messages is 812KB.
This isn't fixing the problem, it's just a way to eliminate whatever condition has caused the symptom. But without an explanation of the actual problem I see no reason to think the problem won't come back in another two months.
View 5 Replies
View Related
Aug 31, 2010
My phone keeps telling me this in my notification bar and its bugging the crap out of me. My intenal phone storage has over 6gb free and my SD card has 1.3 gb free. The notification will not go away, I have tried rebooting my phone. I can't not stand it, its just one of my things, but it makes me want to not use my phone. OCD i guess.Anyway, PLEASE tell me why it is doing this
View 49 Replies
View Related
Jun 8, 2009
Is it possible to add extra languages to Android? My current Android phone only supports English and Chinese language input. I would like to have Dutch also, as I can use it for word completion. The question on top of that is, how to switch easily between these languages in the text input (keyboard) GUI?
View 5 Replies
View Related
Mar 19, 2009
When I run my app, I see about 8 or 9 icons in the main phone menu. One is to run the app, and the others actually run activities within the app.I want there to only be one icon for users.Any ideas as to why this is happening?My code is structured similar to examples from the book "Android - A Programmers Guide" by JF DiMarzio.How do I hide the other icons so users have to start at the main menu screen?
View 5 Replies
View Related
Jul 26, 2010
I have a iPhone 4G and I wanting to try a Galaxy S Captivate.it should be in soon.is there a way AT&T can give me a normal sim card and I can just turn my iPhone off while I use the Captivate or do I gotta switch the sim cards out?
View 1 Replies
View Related
Aug 3, 2010
I have this code: protected void onListItemClick(ListView l, View v, int position, long id)
super.onListItemClick(l, v, position, id);
Log.i(TAG, "The id of the selected note is " + id);
Intent editNote = new Intent(this, TaskEditActivity.class);
editNote.putExtra(TasksDBAdapter.KEY_ID, id);
startActivityForResult(editNote, EDIT_TASK_REQUEST);
}And this code that retrieves the extra FROM A DIFFERENT ACTIVITY: if (savedInstanceState != null) { id = savedInstanceState.getLong(TasksDBAdapter.KEY_ID); Log.i(TAG, "Id of note = " + id);In the first code snippet, Logcat says: The id of the selected note is 2, but in the second code snippet, Logcat says: Id of note = 0. What just happened here? Any solutions to this VERY annoying problem.
View 2 Replies
View Related
Aug 20, 2010
I've started to write a small app for android. It looks very nice, but there is one thing I don't understand.I've created a new intent in the activity A and I've added a serialized vector intent.putExtra("key", vector).
View 3 Replies
View Related
Oct 15, 2010
Is there any way to put an extra into the intent launched by a shortcut?
View 1 Replies
View Related
Aug 12, 2010
Say an app is 2 dollars, but but does your network also charge you a fee for downloading something?
so its like 2 dollars + a few dollars charged by your network? and this is all using my home WIFI.
View 1 Replies
View Related
Oct 6, 2010
I've built a widget that uses a LinearLayout and I've put two TextViews in the layout.
The gravity of the layout is "top".
The problem is that I get a space between the two TextViews and I can't get rid of it.
CODE:....................
As you can see I tried putting padding 0 and verticalSpacing 0 but I still get a space between them.
View 2 Replies
View Related
Feb 17, 2010
When I created a button view, Android always create some extra space between this button and other views below it.
In this example below, there is a button above the second button. You can see the gap between these two buttons. How can I get rid of this gap?
CODE:................
View 3 Replies
View Related
Sep 28, 2010
I have the following layout. This defines a row in my ListView. I noticed that the text is not centered in the row. There seems to be extra bottom padding. How can I make the text appear in the center, vertically, so there is no padding? code...
View 1 Replies
View Related
May 25, 2009
So I just bought 2 apps from the market.1 was 1 dollar,1 was 2 dollar.on my bank statement the 66p came out and the 1.32p.but after each transition there is also a 1 pound charge.is there a standing charge for buying apps?or am i getting ripped off?
View 2 Replies
View Related
Nov 19, 2009
How to know the list of available extra for a intent?For example, I want to know all available extra for ACTION_BATTERY_CHANGED. What is the method to know them?I have seen nothing on the official dev guide, reference in http://developer.android.com.I have seen nothing on watching the intent on debugger (on Eclipse)I have seen no methods on the intent documentation, like myIntent.getListExra()
View 2 Replies
View Related
Dec 16, 2009
The product I have in mind is a Android phone with 32 GB of internal storage, plus the usual microSD expansion slot.
View 9 Replies
View Related
May 27, 2010
Based on the Searchable Dictionary sample I tried to put extra data to a different activity. In my Map Class Distance is always zero because distance.getSelectedItemPostion() gets the initialized value. How can I put Extra data with a click on a search?
View 1 Replies
View Related
Mar 24, 2010
i'm trying to find out what extra's there are for a specific intent.in the eclipse debug window i can see it has extra's , but i can''t find a list of those extra's. I also can't find a function to get all extra's into a human readable format.
View 4 Replies
View Related