Android :: Way To Swap Activities?

Aug 15, 2010

Right now I have 2 activities (A+B) and what I would like is for only 1 of them ever to be on the stack (If A shows B, I want the back button from B to go to the home screen not A). Is their a good way of doing this with activities Or should I change my app to be a bunch of views?

Android :: Way to swap activities?


Android :: Switching Activities / Passing Data Between Activities

Jun 30, 2010

how to call BarCodeScanner, and return the value to a field.so now, i have a toast that says "successful scan" and then i want to pass the result to a new activity. when i comment out my intent, everything works (minus the passing of data/switching of screen, obviously) but when i run my project as is, it FC's no errors reported by eclipse in code or xml. any insights?

View 2 Replies View Related

Android :: How To Swap To A Larger SD Card

Aug 23, 2010

Brand new to android, and loving it. But with the release of the Audible app and various music files, I'm going to fill my little 2GB card soon.

How would I go about switching to a larger capacity card? I'm not worried about data files, I know I can copy all of that stuff off the card, but what about any apps or app settings that might be stored on the card? If I simply copy the entire contents of the card to a new one, will everything "work" when I start the phone up? I confess I don't really know much about the android guts, but I'm willing to learn!

Phone specs:
1.) Model Number: Samsung Intercept SPH-M910
2.) Firmware Version: 2.1-update1
3.) Baseband Version: S:M910.05 S.DF27
4.) Kernel Version 2.6.29
5.) Build Number Samsung ECLAIR.DF27
6.) Carrier - Sprint
7.) US

View 3 Replies View Related

Android :: Swap XML Layouts During Runtime?

Jul 27, 2010

Is it possible to load my main.xml layout file in onCreate() and then later in the app, switch to a new XML layout? I've tried placing setContentView() later on in the app but that seems to not actually set the new View because my references to objects in the newly set xml layout file are returning as null. I've tried doing some layout inflating using the LayoutInflater but I'm having no luck (I'm probably doing something wrong)... So is there any other way to swap layout xml layouts at runtime?

View 3 Replies View Related

How To Swap Views In Android Application

May 6, 2013

I created an android application project and have dug through the code and It is unclear how I'm going to set separate views for each list item. The original code is as follows

Code:
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_item_detail, container, false);
[code]...

On reviewing this code it is clear that the view hasn't been changed, only the content has been changed from the dummy item. I would prefer to have each dummyItem have its own view, layout, etc.The code for establishing these views are in the dummy content

Code:
static {
// Add 3 sample items.
addItem(new DummyItem("1", "Live"));
addItem(new DummyItem("2", "Settings"));
addItem(new DummyItem("3", "About"));
}

What I would like to do would be more like the following where each item would have its own view and layout.

Code:
static {
// Add 3 sample items.
addItem(new LiveDummyItem("1", "Live"));
addItem(new SettingsDummyItem("2", "Settings"));
addItem(new AboutDummyItem("3", "About"));
}

I thought there may be some type of container I can use to swap views in and out or possibly that I may be able to grab a view from the dummy item itself.

View 2 Replies View Related

Android :: Animated Swap Position Of Two Buttons

Nov 6, 2009

I am trying to swap the position of two buttons. My swapping code looks as below.
private void exchangeButtons(Button btn1, Button btn2) {
// Create the animation set AnimationSet exchangeAnimation = new AnimationSet(true);
TranslateAnimation translate = new TranslateAnimation(Animation.RELATIVE_TO_SELF, btn2.getLeft(), Animation.RELATIVE_TO_SELF, btn1.getLeft(),
Animation.RELATIVE_TO_SELF, btn2.getRight(), Animation.RELATIVE_TO_SELF, btn1.getRight() );
translate.setDuration(500); exchangeAnimation.addAnimation(translate);
// int fromX = btn1.getLeft();
// int fromY = btn1.getRight();
// int toX = btn2.getLeft();
// int toY = btn2.getRight();

Log.d("ArrangeMe", "view1 pos:" + btn1.getLeft() + ", " +btn1.getRight() + "view2 pos:" + btn2.getLeft() + ", " + btn2.getRight());
AnimationSet exchangeAnimation1 = new AnimationSet(true);
TranslateAnimation translate1 = new TranslateAnimation(Animation.RELATIVE_TO_SELF, btn1.getLeft(), Animation.RELATIVE_TO_SELF, btn2.getLeft(),
Animation.RELATIVE_TO_SELF, btn1.getRight(), Animation.RELATIVE_TO_SELF, btn2.getRight());
translate1.setDuration(500); exchangeAnimation1.addAnimation(translate1);
// EXECUTE
btn1.startAnimation(exchangeAnimation);
btn2.startAnimation(exchangeAnimation1); }

I call the code as below:
exchangeButtons(button1, button2);
My layout looks as below:
what happens when I execute the code is, instead of the buttons exchanging their positions, they just disappear for sometime[may be 500 ms] and reappear as they were originally.

View 4 Replies View Related

Android :: Why Webview Swap Load New Url Only After Animation?

May 8, 2009

I need to load several url to a webview in animated transition. i used 2 webviews; prev_view and next_view. if we click on next button, next_view will appear with right to left animation covering the prev_view underneath. on back press. next_view will move left to right showing the prev_view. as i have 100 urls(local html files) to load on webview, each time i need to load new url while animation but it does animate the old one and after animation end shows the new url. is it possible to disable the cache and load new url while animation?

View 2 Replies View Related

Android :: Swap Two Buttons Positions In TableLayout

Jul 21, 2010

Suppose I have the following layout

CODE:......................

How could I swap position of button01 with button02? And would it work also for swapping button01 with button05?

Before asking what I have tried so far, I don't even know where to start. I googled but the only answer I could find was about AbsoluteLayout.

View 1 Replies View Related

Android : Swap LinearLayouts From XML During Runtime (droid)?

Feb 19, 2010

I am trying to create an option in my code to change layouts using preferences. I already have the two layouts created in XML, but I can't figure out how to swap between the two during runtime. I would like to cause it to check during onResume() since it is called directly after returning from the Preferences screen and when starting up, however I can't figure out the code necessary. I tried just using setContentView() a second time, but it didn't seem to work. What can I do?

View 1 Replies View Related

LG Ally :: How To Get Swap On Sd Card?

Oct 27, 2010

What does it buy you?

View 17 Replies View Related

HTC Hero :: How To Swap Between Calls?

May 28, 2010

Probably really simple, but how do you swap calls over if another call is coming in on the hero? All I end up doing is disconnecting both of them?

View 2 Replies View Related

HTC EVO 4G :: Micro Sd Card Swap

Jun 10, 2010

I heard that the 8gb sd card that came with the evo had some files on it that were used to boot the phone. I want to upgrade to a 16gb card. do I have to do anything spiecial to swap them out?

View 2 Replies View Related

General :: Swap On EXT Partition

Dec 13, 2012

is it possible to use swap on a sd-ext partition? I started to use simple 2ext and I don't know if it's that possible.

View 1 Replies View Related

General :: How To Enable Swap

Oct 29, 2012

I am using cm7 nightly on my galaxy ace, I have swap partition, ihave A2SDGUI and this script, catch to sd working, but swap not working.

How can I enable swap?

View 2 Replies View Related

General :: Micromax A87 Swap Is Always On

Nov 10, 2012

I rooted My My micromax A87 with XDA and I was Succeeded in It, and then I Partitioned my SD Card into three,(FAT-32 + EXT 3 + Linux Swap) with Parition Mini Tool.then I Installed Link2SD and Swapper 2 its all fine but microsd is too slow to Link and Swap because its (Class 4).but it run the temple run and some HD Games with Small Lag.

So I Experimented with other swap tools like "MemoryInfo & Swapfile Check and ROEHSOFT RAM-EXPANDER (SWAP)"and then Uninstalled these. but there is the problem starts. Now in my A87 it shows a swap cache always on. I opened adb shell and look for free.

I wonder that there is a swap file generated around 50 MB but I cant see it in my External SD or Internal Memory.So I Removed my SD Card and then check again, Still I see the same swap value 50 MB.

My Internal memory has no change in the value (available space not reduced) it looks like the same value before I Install the MemoryInfo & Swapfile Check + ROEHSOFT RAM-EXPANDER (SWAP).

View 4 Replies View Related

HTC Desire :: Will Swap Sim On Phone Work?

Jun 15, 2010

I have just done a SIM swap on my o2 desire to see if this will help with the reception I get, do you think it will work?

View 3 Replies View Related

HTC Desire HD :: Changing Screen / Swap It With DHD One?

Nov 20, 2010

I know this is going to sound absurd, but would it be possible to for instance, buy a 4.3 inch (S)AMOLED screen and swap it with the DHD one?

View 3 Replies View Related

Motorola : Can I Swap My Droid SD Card To My X

Jul 19, 2010

Can I just swap the SD card from my Droid to my X when I get it today, and restore the apps with Astro File Explorer? Or, is there something specific to the Droid on the card that would cause a problem?

View 4 Replies View Related

General :: Swap Size When Partitioning - 0mb?

May 28, 2012

I would like to know why swap size when partitioning is 0mb usually.

HTC Explorer A310e.

View 2 Replies View Related

General :: Swap File - Partition

Dec 31, 2013

I just took over a second hand chinese android phone which appears to have swap enabled already.

The following is on the phone with SD card installed or removed completely

Terminal Emulator - Free - swap 196604 53036 143568
Diskinfo reports it as zram0 [swap]

The value of swap changes continually, so swap is active.

There is no swapper or any other swap app installed. How do I go about finding out how the phone is configured and if necessary undoing what was done and reconfiguring if necessary ?

View 2 Replies View Related

General :: Swap Without Root On Titanium S5

Oct 12, 2013

I have bought a titanium s5 and I am facing a problem in installing big apps on my titanium s5 as it has only 1.4 gb internal memory. I don't want to root so how to swap internal sd card with external sd card without rooting.

View 1 Replies View Related

General :: Freezing And Restarts When Use Swap

Mar 30, 2013

I currently have a phone based on mt6577 where I started to modify the kernel to improve performance but I have a big concern about the swap. I want to enable zram.I turn on when I swap it ends up freezing the system reboots instantly or with a random delay. Kernel 3.0, 4.0.4 ICS

I tried to create a swap file system, the result is the same.I have been looking for a while or could be the problem but without result.

View 1 Replies View Related

General :: Swap Not Working LT15i 4.1.B.0.431

Nov 24, 2012

I have a problem with the swap partition on my device, Xperia arc. I flashed my device to "LT15i 4.1.B.0.431 Generic Global World" follow by this post. I found that lacking in memory so I tried to use swap partition and created 256 Linux swap partition on my SD card. But "free" commend still shows swap=0 However, I decided to use swapper 2. Still no effect and I couldn't get swap although swapper did its job without fail! After few days search I found that the kernel doesn't support the swap, So, I tried to use "Kernel.sin unpacked and added CWM options" form here. It also didn't work, neither "init.d zram scripts from wedgess" from the same page.

View 2 Replies View Related

General :: Boost Phone And ESN Swap

Jul 3, 2013

I have a lg730 (boost mobile lg vennice) if doing a esn swap from boost to boost, is that all that has to be changed or do I have to read/ write aaa passwords etc?

View 1 Replies View Related

General :: Xperia M Swap Memory?

Sep 29, 2013

I had 1.7GB storage on xperia m. But it is not enough for me. So any solution for swap external memory to internal memory.

View 1 Replies View Related

Samsung I7500 :: Tried To Enable Swap / Now Won't Start

Dec 15, 2009

I am running Galax Hero 1.1. I tried to enable swap. First, I used the recovery mode and selected format ext. SD card with swap, then i restarted and enabled comp-cache and set it to 2 (now I see it should have been 0). Then I restarted and I just get the Android splash screen running forever. Can anyone suggest a solution?

View 6 Replies View Related

HTC EVO 4G :: How To Swap SD Cards / Need To Copy / Paste All Folders?

Jun 5, 2010

My 8gb appeared to have a lot of crap on it when I mounted it today. I got a 16gb card, do I just put it in and it writes all that stuff to it or do I need to copy paste all those folders?

View 1 Replies View Related

Games :: How To Swap Metal Gear Solid?

Nov 3, 2010

I have PSX4 Droid and it's great, but my question is how do you play .bin/Roms that are downloaded and include Disc 1 and Disc 2? I just downloaded Metal Gear Solid, but would like to know how to swap the discs to resume game play when I beat the first disc.

View 4 Replies View Related

HTC Hero :: Do I Need To Swap Anything From Original Memory Card To New?

Jan 10, 2010

Got myself a new memory card , do I need to swap anything from original memory card to new card or can I just swap ?

View 2 Replies View Related

Sprint HTC Hero :: Want To Swap Email Programs

Apr 27, 2010

I am running Freshrom 2.1D. I would like to replace the Sense Email with the Droid Email client. I have the Droid email apk, but it won't install. I assume it is conflicting with the default mail client.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved