USB OTG Work only When USB Debugging is On

My USB OTG worked correctly. But Now it works only when USB debugging is turend on. What Should I do Now

@ytheekshana
what if you repair the phone with PCC
PC Companion (PCC)
Bridge (for Mac)
Alternatives on How to backup Xperias
http://talk.sonymobile.com/thread/36355
"I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

Similar Messages

  • WaitFor() works only when in debugging mode!

    Hi, im having a problem with making my function waits for a process to end while in run mode!
    The function always run and exists while the process is still running...
    I checked it in debugging mode and it worked just fine, but i cant seem to be able to make it work in the run mode!
    Any hints???
    Here is my code:
    public void executeBatch (){
    try{
    Runtime runtime = Runtime.getRuntime();
    Process batchProcess = runtime.exec(new String[] {"cmd.exe", "/c", "FetchFiles.bat"}, null, new File(BATCH_FILES_PATH));
    BufferedReader b = new BufferedReader(new InputStreamReader(batchProcess.getErrorStream()));
    if (b.ready()){
    String line=null;
    while ( (line = b.readLine()) != null) {
    System.out.println(line);
    line = b.readLine();
    int exitVal = batchProcess.waitFor();
    System.out.println("Exit Value = " + exitVal);
    } else {
    b = new BufferedReader(new InputStreamReader(batchProcess.getInputStream()));
    if (b.ready()){
    String line=null;
    while ( (line = b.readLine()) != null) {
    System.out.println(line);
    line = b.readLine();
    int exitVal = batchProcess.waitFor();
    System.out.println("Exit Value = " + exitVal);
    } catch ( Exception ex ){
    System.out.println("executeBatch : " + ex.getMessage());
    btw, the process is a batch that connects to a linux server and "mget" files from some directories in the server...

    what the ....???
    the "BadExecWinDir.java" bad approach is all about
    not using an executable command like "dir"... which
    im not using at all...More than that but secondary.
    >
    and for the "GoodWindowsExec.java" concept
    demonstrates that you should handle the standard
    error and standard input streams and emptying them
    both together, which what i exactly did. i USED the
    concept...
    My piece of code is the same as the
    "GoodWindowsExec.java" code except that i made the
    code of the StreamGobbler class comes inside the
    function directly, and that i didn't use a checkup on
    the operating system to decide wither it's a Windows
    NT or Windows 95 to decide the command prompt
    executable name...StreamGobbler runs as a thread so both streams are emptied in parallel. In your code
               String line=null;
                while ( (line = brError.readLine()) != null)
                    System.out.println(line);this will only terminate when the process terminates and closes stderr. This means that the following code
              while ( (line = brInput.readLine()) != null)
                    System.out.println(line);
                only starts to run once the process terminates.
    BUT, the stderr stream and stdout streams have a limited buffer and block when this buffer becomes full. So, if the stdout stream produces more than a buffer full then it blocks until more room is avaialable and the process cannot terminate so the error stream cannot be closed so the code to empty stdout cannot run to make room in the buffer to put more output. Phew!
    If you change the order of emptying the two streams then you have a simillar effect.
    The only way I know of dealing with this is to empty both streams at the same time so you need two threads. You can use the default thread for one but you MUST use another thread for the other. Since I use stdout, stderr and stdin I use 3 threads!
    >
    thats all...Please read the article again.

  • Why is Fault Policy working only when the BPEL's transaction is requiresNew

    Hi All
    I've defined Fault policy & fault bindings files for faults in my BPEL process. I'm using Oracle SOA Suite 11g.
    But the fault management framework is properly working only when the transaction property(bpel.config.transaction) of the BPEL is set to "requiresNew" in composite.xml
    When i modify it ot required, its not working, i.e. it is waiting for some period and erroring out. I could not manage these errors from the EM as we do for those in Fault Management Framework.
    Why is this behavior?
    I went thru this article, but could not understand it
    Transaction and Fault Propagation Semantics in BPEL Processes(http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/soa_transactions.htm)
    Can someone pls explain this.
    Regards
    RaviKiran.

    Please refer http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/soa_transactions.htm
    Thanks,
    S

  • Will the lightning USB adapter work with regular USB jump drives?

    Will the lightning USB adapter work with regular USB jump drives?

    Not really.
    Technically, with some USB drives (I've had a 50% success rate) you can import photos or videos off the drive - thi those photos or video follow a very strict naming convention.
    But you cannot import anything but photos or video and there is zero support to write off the iPad to the flash drive....so while it technically may work, it's so limited to effectively not work.

  • Does the NavigationController work only when placed in appDelegate?

    I am trying to build application that has a tab bar controller with two view and the first view contains a segmented control.
    Based on the decision of the segmented control, I load the tableview. The table view has an instance of navigation Controller in which I have assigned the tableview controller as a rootview controller. When I click on any row of the table view, a new controller gets pushed on the table view. In my case, the new view does not show up on the screen, once the row is clicked. I used NSlog and checked that the views pushed on the stack are correct.
    I read many threads here and saw that all of them use tabBarController and then it directly uses the navigationController and viewcontroller. Is this the only config that works ?
    What if I want to have a tabBarController->tableViewController->NavigationController, isn't it possible? Can anyone please help?

    WitchKing wrote:
    So, if I understand this fully, I can initialize the navigation controller as soon as the any row is clicked and put the tableView I am on as my rootView for the navController. and also push the next view controller I want to see, on its stack. and present the navigation controller's view.
    The usual way to implement a table view drill-down would be to make the first table view (or the content view which includes it) the root view of the nav controller. I.e. the table view's controller would be the root controller. When you do it that way all the objects will do what they were designed to do, and the code to push and pop subsequent views will almost write itself.
    However there's no reason you can't do what you described, which (if I understood) would be to attach the nav controller's view to the hierarchy only after a row in the table is selected. Note however, that you couldn't then expect the nav controller to make that first transition from the parent table view. You would have to provide your own transition to the nav controller's view.
    You bring up a good point in any case. I never explicitly answered the question in the Subject line of this thread.
    does the NavigationController work only when placed in appDelegate?
    No, there is no requirement to create a nav controller in any particular position of the view hierarchy. Unlike a tab controller, a nav controller need not be the root of the hierarchy (i.e. added directly to the key window). In fact you'll find several examples in the docs which show one or more nav controllers under some other controller.
    there might be some problem with adjusting bar heights and etc though.
    I'm not sure you proposed anything that would make it difficult to configure a table view. One nav controller issue that will impact table view position and size is the attempt to hide the nav bar which would otherwise appear above the table. I walked, unsuspecting, into this problem when I tried to help with another, currently ongoing thread that might interest you: [http://discussions.apple.com/message.jspa?messageID=9606805#9606805].
    While I'm pasting links, this one is also relevant to your post: [http://discussions.apple.com/message.jspa?messageID=9607946#9607946].
    Thank you for the very kind words about my posts. For some reason, this past few weeks I've been spending most of my forum helper time writing about table views and nav controllers. I sure hope I've been dispensing correct information. It's not like I have any knowlege of the internals. These puppies are black boxes to me, so I'm just going by the same docs you have and my own (growing!) collection of test beds.
    \- Ray

  • Web ADI works only when cache is cleared

    I have created a custom integrator and the web ADI component works only when I clear the cache from the functional administrator responsibility in Oracle Apps. The component has a lot of validations for the fields and is expected to insert upto 2000 lines, It works fines for a small number of lines but the web ADI hangs for a large number of lines (>500). But if I clear the cache, it works fine. Anyone has a solution for this, cause I cant clear the cache always and I cant tell my customer to do the same.
    G. Arun
    Oracle SSI

    The WebADI caching can be very confusing. I made a little summary of what you can do to avoid caching problems like:
    "ORA-06508: PL/SQL: Could not Find Program Unit being Called in Custom Web ADI" or
    "SQL exception occurred during PL/SQL upload"
    A) clear cache with http://<machine>:<port>/OA_HTML/BneAdminServlet
    B) clear IE cache & restart
    C) clear the cache from the functional administrator responsibility
    D) Bounce the Apache server
    E) SQL command: Alter system flush shared_pool
    F) Download another WebADI spreadsheet (but you can re-use your old spreadsheet)
    G) log out and log back in EBS
    H) login at another computer and try it there
    ...or sometimes just wait for a while till it works again.
    Jeroen

  • Foreing keys works only when created as CAPITAL?

    Hello,
    When working with HTML DB tutorial, I have noticed that foreign keys works only when I do create them as CAPITAL. I did create some foreign keys manually, and when I was trying "query by example" it did not work correctly unles I did re-create the foreign keys using all captials in their name. Why is it that?
    Thank you,
    DanielD

    I let it dry out more and it started working. It still has a quirk or two but I can live with it.

  • My iphone4's mic is not working. I can assure that my iphone4 is not on mute mode. The audio is working only when headset/handsfree plugged in.I tried reset my handset many times already but still nothing got success.what is the remedy to comeout from it.

    My iphone4's mic is not working. I can assure that my iphone4 is not on mute mode. The audio is working only when headset/handsfree plugged in.I tried reset my handset many times already but still nothing got success.what is the remedy to comeout from it.

    Try plugging the headphones in and gently wiggling them around for a few seconds. It may be that the sensor that tells the iPhone that headphones are plugged in has gotten stuck. If this doesn't work, they try a reset (hold down Sleep/Wake and Home all the way until the Apple logo appears on the screen).

  • HT201401 Microphone works only when using the phone in hands-free

    Microphone works only when using the phone in hands-free (speaker on) mode.  Otherwise, only a constant buzz, accompanied by regular clicks (repeating 2-3 times/sec) can be heard by called persons or when recording a memo.  Makes Siri unusable, and cannot make private calls unless in a private area.  Does anybody have a fix for this?

    Okay I just solved the problem myself..
    For anyone that may have the same issue:
    The microphone used when recording video, is the little dot next to the jack on top of the iPhone 4S (maybe also iPhone 4, don't know). There was some dirt in this tiny little hole, and I simply just removed it with a very thin needle, and now it works great!

  • My touch pad does not work only when using Safari browser. The screen was grey. Help!

    My touch pad does not work only when I use Safari browser online. The screen was grey. No matter what I do, there is no reponse. Only the web address box works. What is this problem? I can use App Store and everything else fine.
    Someone please help.
    Thanks

    I would try:
    - Resetting the iPod:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Go to Settings>Safari and delete cache, history and cookies.

  • My ipod touch 4 won't sync or register on my computer. The cord works, the usb port works, and when I plug my ipod into the wall to charge it work, but when i plug it to the computer nothing, not even charging. P.S. worked before I updated it.

    The cord works, theusb port works, and when I plug my ipod into the wall charger it works, but when I plug it into the computer, nothing, not even charging. P.S. it worked before I updated it to iOS  6.1.5

    You do have iTunes 10.7 or later on the computer, right?
    See:
    iOS: Device not recognized in iTunes for Windows
    I would start with
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    or
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    Run this to help if it identifies the cause
    iTunes for Windows: Device Sync Tests
    Have you tried on another computer to help determine if you have a computer or iPod problem?

  • Ipod mini click wheel works only when charging

    my ipod mini click wheel will only work 100% when it is charging and is recognized by itunes. if a computer does not have itunes it will not work properly and also when it is not charging and i am just using it normally it wont work either. when it is not working right this is what it does: only the forward and play/pause and select work on the click wheel. cant adjust volume or go back to menu. but when charging and in itunes that click wheel works perfect!?!
    can anyone help me figure this one out?
    Also, the battery is really weak, it will only run for about 1hr on full charge. i dont know if that will affect it but if it does please let me know.
    Thanks

    Mine does the same, I can get it to work by taking off the bottom plastic part of the Ipod Mini and pulling the metal thing out a bit.
    HP   Windows XP  

  • SUBMIT button works only when clicked twice... Online interactive form

    Hi,
    I have created a interactive form with SubmitToSAP button. In this I will enter a contract number and will click SUBMIT button.
    For the first time it is fetching the contract details properly.
    In the same form, i am changing  the previously entered value with another contract number and clicking SUBMIT.
    Now the details for the previously entered contract number is only displayed. Again if i try for the same value ( which i used for the second time )  and press submit, it is workin correctly.
    So, the problem is, except for the very first time SUBMIT button action, the button works fine only when clicked twice..
    please help me in solving this issue..
    Regards,
    Surya.

    Hi,
        In addition to my previous post, I am also using RESET FORM button from Library.
    First I am entering the contract number (say 400000000) in the form and clicking submit button. The contract details are fetched and displayed in the form.
    Now i am Resetting the form using Reset Button, and giving new contract number (say 400000020).  When  I pressed Submit button , the details of the first entered contract number (400000000)  is coming.
    Then again I am giving 400000020 or any other number, it is fetching the details correctly for that number...
    Can anyone help me in this issue..
    Thanks,
    Surya.

  • Output preview works only when preview dialogue box is open?

    The output preview setting certainly takes effect, but only when the output preview dialogue box is open, so that accurately previewing images in reading mode is not possible; it's only possible to see a preview by going to an image and opening the OP dialogue box. As soon as the OP dialogue box is closed, the image reverts back to its pre-preview state. This can't be right!

    Thanks for your feedback. I had tried to navigate with the dialogue box open using the "hand", which didn't work; I see now that you can still go from page to page with the box open using either keyboard command or menu arrows.
    I was actually incorrect in referring to "reading mode"; I meant to say "full screen" mode. And again, since the cursor doesn't act as a cursor but rather as a pinpoint when the dialogue box is open, I incorrectly assumed that all navigation (including full screen mode) was disabled. This, I now see, is not the case.

  • IPad2 working only when plugged in to the 10W wall charger

    Hello,
    Today my iPad2 suddenly stopped turning on. Now it just turns on when connected to the 10W wall charger, and even so it works only for about one minute and then turns off again.
    Could it be a problem related to its battery and I should replace it?
    When I turn it on (using the wall charger) it says the battery is fully (100%) charged.
    Thank you very much,
    Paulo

    If the battery isn't dead - and it seems like it might be - you are to the point where you need to get an Apple genius involved.
    Is your iPad less than one year old and still under warranty? If it is, I would make an appointment with an Apple Genius and take it in for a checkup and let Apple determine if there is anything that they can do. If not, you should get a replacement as long as the issue is not deemed to be caused by accidental damage.

Maybe you are looking for