which library is pushed to the foreground memory?

Hello

I ask this has in mind a risk of sounding noobish

My library has a lot of resources in it (say 2 MB total)

My application (which uses the library), an instance of a class inside the library.

(1) what are the 2 MB allocated in memory?

(2) how to avoid this?

(3) I don't need the resources of the lib after the first invocation, is there a way to "free" resources?

(4) is it possible to "empty" library after using, or GC will take care of this?

I know it's a lot... Please bear with me.

Thank you

This seems to be a duplication of your other Thread here:

http://supportforums.BlackBerry.com/T5/Java-development/usage-and-installation-of-independent-librar...

Please see my post in this Thread.

Short answers:

(1) flash

(2) don't understand this question.  Apart from memory what else do you have on a BlackBerry?

(3) remove the cod - CodeModuleManager will help you here I think

(4) see 3 - the garbage Collector won't help.

Tags: BlackBerry Developers

Similar Questions

  • When I sync the audio from my player is not in the order in which I added it to the library

    Windows media player

    I have a Coby mp3 player and when I sync the audio from my player is not in the order in which I added it to the library. I'm doing something wrong? How can I get the audio files to read them in the order? When I ripped the cd they show in a random order on the media player screen.

    Hi LynneGoetz,

    ·         What version of the operating system is installed on the computer?

    ·         Did you do changes on the computer before the show?

    Follow these methods.

    Method 1: Run the hardware and devices troubleshooter.

    Open the troubleshooting Windows Media Player settings Troubleshooter

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Open the troubleshooter in the Windows Media Player library

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-library-Troubleshooter

    Method 2: Follow the steps in the article.

    Set up a device to sync in Windows Media Player

    http://Windows.Microsoft.com/en-us/Windows7/set-up-a-device-to-sync-in-Windows-Media-Player

    For reference:

    Windows Media Player sync: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/Windows-Media-Player-sync-frequently-asked-questions

  • How to push my application to the foreground after a phone call

    Hi all

    I develop a fairly simple application similar to a phonebook. It is possible to display the contact details and place a call to him with the help of a push button.

    I pass the call in this way:

        public void call(String number) {
    
            PhoneArguments phoneArgs = new PhoneArguments(PhoneArguments.ARG_CALL,
                    number);
            Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, phoneArgs);
    
        }
    

    It works very well, but at the end of the call of the interface of the telephone remains in the foreground. I can't understand how I can bring my application in the foreground.

    My application is supposed to work on different OS from 4.2.

    Thanks in advance for your help.

    Yes, but nothing too obvious.

    the phonelistener runs in the context of the phone application. If you call UiApplication.getUiApplication () you get a reference to the phone, not your own application.

    use a global event to connect the event to your application.

  • PUSH for the Runtime Android blackBerry 10 problem

    I'm having a problem with my BB10 Android runtime, it fails when you try to contact CWM and therefore do not send a token valid push on our server.

    I followed the instructions to the letter here: http://developer.blackberry.com/android/apisupport/creating_push-enabled_android_apps.html

    My BAR a /android/android.cfg file that looks like:

    
    
       
          215-513Bxxxxxxxxxxxxxxxxxxxxxxxxxxxx
          http://cp215.pushapi.na.blackberry.com
          bb-
       
    
    

    The credentials are the production and worked when they tested them.

    / META-INF/MANIFEST. MF has the following line adds automatically via the Nature Blackberry plugin:

    Entry-Point-User-Actions: access_internet,read_geolocation,access_shared,play_audio,post_notification
    Entry-Point-System-Actions: _sys_use_consumer_push
    
    Archive-Asset-Name: android/android.cfg
    Archive-Asset-SHA-512-Digest: 0iYhu0YnKDy8vnMxTElTXSD-oEXw8vvVBSBxDI_LxcR_B4w53SoXBW7NbRMAD-ZYmQDnMs_aUQrQaNEssmp36Q
    

    Running a push of the application works very well with android, but it does not work with my BlackBerry 10 Dev Alpha, and we also tried with a Z10. The Alpha DEV us running OS 10.2.0.341.

    There were a few problems of verification of BlackBerry I'm not sure if they are relevant or not:

    targetSdkVersion: 17 is higher than 10:required minimal OS version=10.2
    uses-permission: com.google.android.c2dm.permission.RECEIVE:required minimal OS version=10.0.9
    

    the operating system is running well version 10.2.0.341 on the DevAlpha.

    Edit: added trouble spot:

    When you debug the application on the devalpha, using the standard tools of GoogleCloudMessage, the call

    int googlePlayCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
            Log.i("GooglePlayCode", "Code:" + googlePlayCode);
            if (googlePlayCode == ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED
                    || googlePlayCode == ConnectionResult.SERVICE_MISSING
                    || googlePlayCode == ConnectionResult.SERVICE_DISABLED) {
                GooglePlayServicesUtil.getErrorDialog(googlePlayCode, this, 1).show();
            }
            else if (googlePlayCode == ConnectionResult.SUCCESS) {
                regid = getRegistrationId();
                Log.i("RegistrationId", "regid:" + regid);
                if (regid.length() == 0) {
                    getSenderIdThenRegisterBackground();
                }
                gcm = GoogleCloudMessaging.getInstance(this);
            }
    

    This part:

    int googlePlayCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
    

    returns 9, which from here: http://developer.android.com/reference/com/google/android/gms/common/ConnectionResult.html#SERVICE_I...

    is SERVICE_INVALID.

    EDIT:

    I tested the gcm by skipping the verification for MCG avaliability and my code attempts to record with CWM VIA:

    String msg = "";
                    try {
                        if (gcm == null) {
                            gcm = GoogleCloudMessaging.getInstance(context);
                        }
                        regid = gcm.register(senderId);
                        msg = "Device registered, registration id=" + regid;
    
                        // Save the regid - no need to register again.
                        setRegistrationId(regid);
    
                        // Send the registration ID to our server over HTTP,
                        // so it can use GCM/HTTP or CCS to send messages to our app.
                        sendRegistrationInfo(context, regid);
                    } catch (Exception ex) {
                        StringWriter sw = new StringWriter();
                        ex.printStackTrace(new PrintWriter(sw));
                        String exceptionAsString = sw.toString();
                        msg = "Register Error :" + exceptionAsString;
                        //msg = "Register Error :" + ex.toString();
                    }
    

    that throws an exception, with the stack trace:

    java.io.IOException: SERVICE_NOT_AVAILABLE
        at com.google.android.gms.gcm.GoogleCloudMessaging.register(Unknown Source)
        at com.joemobi.APP_ID.JoeMobiActivity$9.doInBackground(JoeMobiActivity.java:887)
        at com.joemobi.APP_ID.JoeMobiActivity$9.doInBackground(JoeMobiActivity.java:1)
        at android.os.AsyncTask$2.call(AsyncTask.java:287)
        at java.util.concurrent.FutureTask.run(FutureTask.java:234)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
        at java.lang.Thread.run(Thread.java:856)
    

    Help, please!

    A possible cause of this problem uses the SDK Service software play Google to enable GDM. Play Google Service is not supported on BlackBerry 10 is why any reference to the API of GCM would fail.

    Using the stand-alone GCM library should still work on BlackBerry 10 and is still said to be supported by Google:

    «The client library for assistance was offered in previous versions of the MCG works always...» »

  • which method is called when the screen has lost focus but stays on blackberry?

    Hello

    I want to know in which method is called when the screen has lost focus, but always visible BlackBerry?

    For example, a screen is in the foreground and we disply dialog box so that the screen is visible but not to focus, therefore, at this time that methos called when we close this dialog box?

    Please, help me please please

    Override the following methods in your class to screen according to your needs

    1. when the screen button to the stack

    Call

    onDisplay() or

    onUiEngineAttached(boolean attached) - so attached is true then your screen is at the top of the screen

    2. When you are in a backlight and the lcd screen turns off to your state of rest and turns on again when you actively use this form

    call

    onVisibilityChange(boolean visible) - if visible is set to true, then you get the focus when the lcd display turns

    3. when your application moves to the background by clicking the red end button (i.e. without quiting the app, yet yours is active in the background)

    call

    onExposed() - when your application comes to the foreground of the background or during any type of screen that is in the top get popped

    & call

    onObscured() - when your application moves to the background, or when a screen pushed above your current screen more

  • Audio stutters every time that Premiere Pro is in the foreground

    System:

    Mac Pro

    OSX El Capitan

    Processor 3.5 GHz 6-Core Intel Xeon E5

    64GB memory

    Graphics AMD over-pants D500 3072 MB

    First Pro CC2015 v9.2

    Question: If I have Premiere Pro and After Effects opens at the same time, whenever the PP is brought to the foreground, my audio stutters - not only in reading, in PP, but any application that might be audio playback (YouTube video, iTunes, etc.). I don't know which version this started on, but he did until I upgraded to El Capitan, and it's also on my older Mac Pro 2.66 Tower. It is almost immediate. I can work on a project in After Effects by listening to iTunes. All right. As soon as I switch on do first at the forefront, iTunes will begin to stutter. Or, even if I do not have open iTunes, just reading a sequence in first - the sound stutters. As soon as I switch to After Effects, the audio is smooth again.

    Thoughts?

    Hi Samcomer,

    Any Audio capture external peripheral connected?

    Please, try the following steps:

    Create a global device and change the Audio preferences in Premiere Pro.

    How to combine multiple audio interfaces by creating a Global device - Apple Support

    Setting up your system for Premiere Pro

    Thank you

    Ilyes Singh

  • New Mac, same disk external DRIVE for the library; does not see the files

    I reconnected my iTunes library from a disk external DRIVE to my new computer, but iTunes does not recognize my files of the ALAC instead, he goes to the cloud and plays music from Apple things. How can I listen to my files? All the files are there, the library is intact; I changed the path in iTunes. Without result. He always plays with the cloud.

    You do not change the path in iTunes.  Who does as it says which is tell iTunes where media files [new] store. You change the path you launch iTunes by holding down the option/alt key, while the application starts and then choose when prompted the iTunes Library.itl file in the iTunes folder you included if all goes well on the hard disk external.  If everything you have on the outside are media files, then you better head for your old computer fast and get the rest of the library there.  It's the rest of these files in the iTunes folder that make up the other half of the 'library' iTunes needs.

  • Videos YouTube are pushed off the screen to the right by an ad, how to fix?

    When I click on a link to a youtube video, the video appears for a few seconds in the correct location of the site, but then an ad square appears on the side left forcing the video screen to be pushed all the way to the right and off the screen. The video will be displayed on the right side of the column of the videos ' read popular. " Sometimes, a scroll bar appears at the bottom of the window, because the page is now much broader, which will allow me to scroll right to see the video, however, sometimes the scroll bar does not appear and I see only the left edge of the video.

    I reinstalled Adobe® Flash® Player, which did not help and I also have the latest version of Firefox. This began to happen quite recently... maybe a week, there is or not.

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • Where is it save to save a photo library? Requirements for the external hard drive

    Apple support documents have been somewhat vague about the requirements for a player welcome photo library.

    It is not yet clear if Photos can run a file system, is not HFS +: this restriction is mentioned only for the system of libraries of Photos, which syncs with iCloud (https://help.apple.com/photos/mac/1.0/?lang=en#/pht211de786)

    By default, your system library is stored in the folder of images on your Mac, but you can move it to another location on your Mac, or store it on an external storage device. However, to use iCloud services, the external storage device must be formatted using the format Mac OS extended (journaled), also known as HFS +.

    But it is experiences during the migration of libraries, that Photos cannot migrate libraries iPhoto or Aperture libraries to a photo library, if is not filesystem HFS +.  It will try to create the library migrated on the system drive instead (probably because he can't create links hard disk) and generally not running out of storage.

    Apple less did today, confirmed that he is not sure store of the photo library in a synchronized cloud storage, see: update to iPhoto to Photos for OS X - Apple support

    If you store your photo library in a place that is part of a Cloud Computing service (for example, Dropbox, box or Google Drive), your library might be damaged by the synchronization process. So, you might lose photos.

    To see your photos on all your devices, you can use iCloud photo library. To back up your library, you can use Time Machine.

    I still have not found supporting documentation, that clearly indicates if a library of Photos can be stored on a NAS. If it cannot be used as a library of Photos of system.  For the opening of libraries or libraries of iPhoto, the recommendation of Apple was clear: use locally mounted volumes extended, Mac OS X for your Aperture library

    Does anyone found a similar document for the Photos?

    Is it possible to store original files referenced on iCloud by car or in a box?

  • Satellite C670D-115 - need to manually change the graphics memory

    All just bad bios of satellite C670D-115 good Notebook

    New bios? I need a memory of you GFX lucky me self
    I have 6 GB of DDR3 and my GFX only 386 mb
    I have install (amd_system_monitor) and max memory that I use is 386 mb not more in the game which is bad
    so the question is can not do you a new bios that give me allows you to use more memory than 386 mb

    a game of "s".

    Laptop: Cod Modern Warfare 2
    http://www.YouTube.com/watch?v=uavRKzKghBQ

    Laptop: F1 2011
    http://www.YouTube.com/watch?v=j55wkDF1QeI

    Laptop computer: Pc Game Hawx
    http://www.YouTube.com/watch?v=AoCyaPr_skM

    Hello

    As I know the laptop is equipped with the AMD Radeon HD 6250 graphics card.
    Here, you could find nice description of this GPU:
    http://www.notebookcheck.NET/AMD-Radeon-HD-6250.40958.0.html

    But back to the main issue: shared graphics card memory is controlled by the graphics driver and everything works automatically and this means that the shared memory can be assigned manually :(

    Welcome them

  • Satellite Pro C660 - 21 d - how to change the shared memory graphic value?

    My dxdiag screen says I have almost 1700 MB of video memory, but when I try to use this memory on games these games can use 256 MB...

    I tried to change settings in the BIOS, but it does not have this setting, do not know what else could cause this problem?

    Hello

    This could be confusing, but this isn't a problem.
    Shared memory is controlled by the graphics driver and the driver affects the part of the main memory to the memory of the graphics card ONLY if its required by a running application.

    The Dxdiag shows you how much RAM could be shared and value of memory in the quizzes you shared memory which is used and who is in the game right now.

  • Best practices for the iPhone memory models?

    I'm getting an iPhone 6. I could only afford the lowest memory 16 GB option.

    I know that I'll need more. But, in my mind, I say to myself, I know that I will not need all the applications that I have on my iPad on the phone.
    Just critical stuff.
    I can also shunt images for Google Drive, I have unlimited with. So they are not stored on the phone.
    Music, I'm more worried.

    How do they manage others having a low memory iPhone? Tips? etc.

    Most people will create a playlist in iTunes and then just synchronize this individual playlist on the phone. Select the music you want, or you can create a playlist of your most played songs. Be creative and even once, just sync this playlist rather than your entire library.

  • What can I do to make the Satellite A665-S6086 run with the new memory?

    I was able to update the BIOS for my Satellite A665-S6086 by updating 2.30 on CD burning. I have Windows 7 64 bit. I needed to update the BIOS, because I upgraded my RAM/memory of 2 GB (4 GB total) two cards two cards of 4 GB (8 GB total).

    My question now is when I start my computer with the new RAM/memory (two cards that are KTT-S3BS / 4G Kingston DDR3 1333 MHZ SODIMM SGL RANK), it freezes on the screen from Windows startup. Then when I hold the power button to shut it down and restart it, it wants to start using Windows repair but then crashes again. When I put in the memory of the old man and he start up, it starts the Windows repair and runs normally.

    What can I do to make my computer run with the new memory?

    I thank very you much in advance!

    What you can do?
    Buy an another RAM modules that are fully compatible with the laptop.
    It seems that you want to use the RAM modules which are not totally compatible and therefore the system hangs.

    By the way: the CPU that is used in this notebook runs the DDR3-800 and DDR3-1066
    RAM modules.
    http://Ark.Intel.com/products/49020

    I would not recommend to use the modules of DDR3-1333 but PA3677U-1M4G 4 GB DDR3-1066

  • Cannot change the size of the video memory in Satellite L30-113

    I have a Satellite l30-113 which has 1 GB memory and windows Vista.

    The size of memory that has been attributed to the vga is 319 MB.
    How can I decrease the video memory?

    Hello

    do you really mean 319MB? This machine only supports a maximum video memory 256 MB shared memory. So if you might have 32 MB (which is how I imagine rather memory assigned to your VGA) you can increase the video memory of this machine by changing the value of memory assigned in the bios of your machine.

    Do you know how to enter the bios?

    Welcome them

  • Photos saving disk space to share images with your iPhoto or Aperture libraries.  Should which library I use to remove old photos?  If I delete old photos in iPhotos appear in pictures and vice versa?

    Should which library I use to remove old photos?  iPhoto or Photos?

    If you migrated a library iPhoto to Photos and you want to release the storage, you should remove the pictures of these two libraries.

    Related photos storage only comes out, after that the last linked file has been deleted.  If you do not use more of the iPhoto library, move it to a backup drive. Then simply delete the photos of your new photo library.

Maybe you are looking for