Affichage des articles dont le libellé est inside. Afficher tous les articles
Affichage des articles dont le libellé est inside. Afficher tous les articles

mardi 11 mars 2014

HELP! Sim Card stuck inside phone topic




I need to remove the sim card from the phone. It is moving half way and is then stuck inside. I desperately need to remove it as I have bought a new phone. Anyway of doing that without going to the service centre?
I took it to my nearby store but they are saying that there is a danger to the phone.

Sent from my Nexus 5 using Tapatalk





lundi 10 mars 2014

[Help] Log something inside game module. topic




i need log something inside a game .dll.

example:


Code:


if( game module )
//... log return address of function


I can just use the module base address to check if return address is in module range our what ?

any help will be great.





mercredi 29 janvier 2014

How to use Navigation Drawer inside Tabs menu. topic




Hi guys.

I've been developing an app which has Swipeable menu in bottom and one of the pages , should have a Navigation Drawer to change its own Fragments.

MainActivity.java

Code:


package com.example.elizehprotowithshlkandvpis;

import com.example.elizehprotowithshlkandvpis.adapter.MainMenuAdapter;
import com.viewpagerindicator.TabPageIndicator;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.Menu;

public class MainActivity extends FragmentActivity {
        private static final String[] CONTENT = { "Home", "AboutUs", "Maps", "Resturants", "Tours", "CustomerClub", "Neccesseries", "UrgentCall" };
        private ViewPager mViewPager;
        private FragmentPagerAdapter adapter;
       
        @Override
        protected void onCreate(Bundle savedInstanceState) {
               
                super.onCreate(savedInstanceState);
                setContentView(R.layout.activity_main);
               
                adapter    = new MainMenuAdapter(getSupportFragmentManager());
                mViewPager = (ViewPager) findViewById(R.id.pager);
                mViewPager.setAdapter(adapter);
               
                TabPageIndicator indicator = (TabPageIndicator) findViewById(R.id.indicator);
                indicator.setViewPager(mViewPager);
               
        }

        @Override
        public boolean onCreateOptionsMenu(Menu menu) {
                // Inflate the menu; this adds items to the action bar if it is present.
                getMenuInflater().inflate(R.menu.main, menu);
                return true;
        }
       
        public static String[] getCONTENT() {
                return CONTENT;
        }

}


MainMenuAdapter.java

Code:


package com.example.elizehprotowithshlkandvpis.adapter;

import com.example.elizehprotowithshlkandvpis.MainActivity;
import com.example.menuclasses.AboutUs;
import com.example.menuclasses.CustomerClub;
import com.example.menuclasses.Maps;
import com.example.menuclasses.Neccesseries;
import com.example.menuclasses.Tours;
import com.example.menuclasses.UrgentCall;
import com.example.menuclasses.Resturants;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class MainMenuAdapter extends FragmentPagerAdapter {
        private static final String[] CONTENT = { "Home", "AboutUs", "Maps", "Resturants", "Tours", "CustomerClub", "Neccesseries", "UrgentCall" };

        private final int HOME_INDEX              = 0;
        private final int ABOUTUS_INDEX      = 1;
        private final int MAPS_INDEX              = 2;
        private final int RESTURANTS_INDEX  = 3;
        private final int TOURS_INDEX        = 4;
        private final int CUSTOMERCLUB_INDEX = 5;
        private final int NECCESSERIES_INDEX = 6;
        private final int URGENTCALL_INDEX  = 7;
        private final int NUMBEROFMENUS            = CONTENT.length;
       
        public MainMenuAdapter(FragmentManager fm) {
                super(fm);
                // TODO Auto-generated constructor stub
        }

    @Override
    public CharSequence getPageTitle(int position) {
        String[] CONTENT = MainActivity.getCONTENT();
            return CONTENT[position % CONTENT.length].toUpperCase();
    }

       
        @Override
        public Fragment getItem(int index) {
                switch(index) {
                case HOME_INDEX:
                        return new AboutUs();
               
                case ABOUTUS_INDEX:
                        return new AboutUs();
               
                case MAPS_INDEX:
                        return new Maps();
               
                case RESTURANTS_INDEX:
                        return new Resturants();
               
                case TOURS_INDEX:
                        return new Tours();
               
                case CUSTOMERCLUB_INDEX:
                        return new CustomerClub();
               
                case NECCESSERIES_INDEX:
                        return new Neccesseries();
               
                case URGENTCALL_INDEX:
                        return new UrgentCall();
                }
                return null;
        }


        @Override
        public int getCount() {
                // TODO Auto-generated method stub
                return NUMBEROFMENUS;
        }

}


The Fragment that should contain a Navigation Drawer is Resturants , also drawer's mainactivity is implemented with Sherlock Library(SherlockFragmentActivity).
I'm puzzled how to call the SherlockFragmentActivity from the SherlockActivity :)

Thanks





mardi 28 janvier 2014

Re: goto label inside of if statement topic




Vir Campestris <(E-Mail Removed)> wrote in
news:(E-Mail Removed) o.uk:

> On 26/01/2014 21:32, Gareth Owen wrote:
>> Take Paavo's advice and memorise it.
>>
>> You'll not find it a better argument more cogently stated.
>> If you remember nothing else, remember the first sentence.

>
> I'll second that - but add a bit of data.
>
> I've been writing C since before some of my co-workers were born (yes,
> it scares me too!) and I've only written ONE goto ever.
>
> And that didn't make it to checkin...
>
> They do have a place, but it's vanishingly rare. I think the place is
> not in a C++ program.
>
> Andy


Andy.... you make me pause for thought. If I understand the implication of
what you wrote, then it means I haven't learned my first *real* C++
command!

--
Jax





lundi 27 janvier 2014

N7000 hang on Samsung logo, can i still backup all data inside? topic




dear all...

my Note N7000 has never been restarted for a long time and i never pull the battery out, and today because i need to take out the simcard, i turn off and pull out the battery, afterwards it just turn ON and halt/hang at Samsung logo, i waited for hours and it still can't boot up and access the menu...

i never root the phone, is there any chance that i can root, and somehow gain access to backup all the stuffs i had inside? phonebook, sms, calendar, note, and the internal storage photos, etc...

thanks :)





jeudi 23 janvier 2014

goto label inside of if statement topic




On 1/23/2014 2:32 PM, W Karas wrote:
> I was surprised to find that this code:
>
> struct A { A(); ~A(); };
>
> void bar();
>
> void foo(bool f)
> {
> if (0)
> {
> LAB: ;
> }
> else
> {
> A a;
>
> if (f) goto LAB;
>
> bar();
> }
> }
>
> will compile without warnings using GCC 4.7.3, even with -Wall and -Wextra .
>
> The point, in case you were wondering, would be a macro-based "named block" pseudo-construct, where the block could be exited from any depth of block nesting, for example:
>
> #define BLOCK(NAME) if (0) { NAME: ; } else
> #define EXITBLOCK(NAME) goto NAME;
>
> struct A { A(); ~A(); };
>
> void bar();
>
> void foo(bool f)
> {
> BLOCK(XYZ)
> {
> A a;
>
> if (f) EXITBLOCK(XYZ)
>
> bar();
> }
> }
>


And it actually skips the 'else' part when jumping into the 'if'
section, yes? And how well do optimizers handle it?

V
--
I do not respond to top-posted replies, please don't ask