Friday 4 January 2013

what to do when Apps/Store don't Work while Using Proxy


It is a common problem that windows 8 Apps/Store don't work while Using a  Proxy.
What we have to do is to just bypass your Proxy address and Port to the Apps.
Follow these Steps-

Step 1- Go to CMD(command prompt).Run it as Administrator(right click and choose Run as Administrator)

Step 2-  Type following commands.

         netsh
         winhttp
         import proxy source=ie
         exit













this command bypasses the proxy address in your internet explorer to your Apps/Store.


Wednesday 2 January 2013

Starting With J2ME




For last few days I am working on J2ME.Java Platform, Micro Edition, or Java ME, is a java platform designed for embedded systems(mobile devices are one kind of such systems). Target devices range from industrial controls to mobile phones (especially feature phones) and set-top boxes. Java ME was formerly known as Java 2 Platform, Micro Edition (J2ME).
Just follow these Steps for developing a simple HelloWorld app in java.you can also install it's jar file in your java phone.
Step 1-our basic requirement is an IDE(integrated Development Environment).i will use NETBEANS IDE 7.2.1 and JDK(java development kit) version 6 or 7.

Step 2-
  1. Start NetBeans IDE.
  2. In the IDE, choose File > New Project (Ctrl-Shift-N), as shown in the figure below.

NetBeans IDE with the File > New Project menu item selected.
Step 3-
choose java ME category and select MobileApplication and Click on next
New Project wizard: Choose Project
enter project name HelloWorld.Leave emulater platform as CLDC oracle java(TM) platform microedition  sdk 3.2 and click on finish.

Step 4-click on helloworld package and press CTRL-N.select CLDC and then MIDlet.Name of MIDlet should be Same as CLASS name.
eg.HelloWorld

Step 5-

.
 Each MIDlet must extend the abstract MIDlet class found in the
javax.microedition.midlet package, much like creating an applet
by extending the java.applet.Applet class. At the minimum, your
MIDlet must override three methods of this abstract class, startApp(),
pauseApp(), and destroyApp(boolean unconditional)
we will be using.
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

Step 5-code in given sections.
/**
* @author Shashank
*/
public class HelloWorld extends MIDlet {
private Form form;
private Display display;
public HelloWorld(){
super();
}
Step 7-

public void startApp() {
form = new Form("Hello World");
String msg = "Hello World!!!!!!!";
form.append(msg);
display = Display.getDisplay(this);
display.setCurrent(form);
}
Step 8-
public void pauseApp() {
}

public void destroyApp(boolean unconditional) {
notifyDestroyed();
}
}
Step 9-Now run your Project(F6).
output-



Tuesday 25 December 2012

                 HOW TO REMOVE FACEBOOK RED SCAM or MALWARE


Have your Facebook friends invited you to switch your boring blue Facebook profile to an attractive shade of red?
Judging by the number of messages the Naked Security team has received from Facebook users struck by the scam in the last few days, many social networking users must have seen similar messages.
Predictably, the point of all of this sharing is to drive more traffic to the scammers' link where an online survey will pop-up. The more people who take the survey, the more commission that the scammers will earn.
For google Chrome-

1.go to settings
2.click on extensions
3.and then remove facebook red extension.

FOR mozilla-
1.go to settings
2.then to add-on
3.and after that Extensio.n
4.and remove that Extension.

Wednesday 12 December 2012

How to make App packages for submitting apps at windows 8 Store(for a Grid App)

now,we will see how to make packages for submitting our application at windows 8 store.what we have to do is to just follow these basic steps.

step1-

just change the mode from Debug mode to release mode.

step2-

Open  package.appxmanifest in solution explorer.go to capabilities and unmark internet option if your app doesn't make use of internet(no use of internet in case of grid app).

step3-

now,just go to store option in project option in menu bar.
click on create app package option in store option.now it will ask two options.click on "No".
and now click on "Next"option.


finally we have to click on "Create" option.
                                                                                                                                                     our app package will be created
after that a box will open saying"package creation completed".now we have to select "ok" option.our app package is finally created and we can locate it in"C:\Users\Shashank\Documents\Visual Studio 2012\Projects\my first data app\my first data app\AppPackages".The app package will be in form of APPXUPLOAD file.so now,we are done with creation of packages for uploading on windows store.now what we need is a Store developer Account from where we can upload our apps.now create our account .                                                                                                                                          



Monday 26 November 2012

HOW to make A grid APP for WINDOWS 8

in past few days i have developed apps for windows 8.i have developed  many apps and many of them are on windows store.so i thought,i should share my knowledge about developing a grid app for windows 8.
so at starting point we will need a windows 8 OS and visual studio 2012.we will doing our coding in C#.
step1-open visual studio 2012 and click on start new project.
        then give the name of the project.
















                                    step2-then go to solution explorer and open GroupDeatailPage.xaml,GroupedItemPage.xaml,ItemDetailPage.xaml.
now go to data model in solution explorer and open C#sampleDataSource.cs


step 3-now start coding in sampleDataSource.cs
what you have to do is just edit in the sampleDataSource.cs

var group1 = new SampleDataGroup("Group-1",
                    "grid app",
                    "windows 8  ",
                    "Assets/DarkGray.png",
                    "this is a simple data app"
step 4-now start editing in group items of grid app

 group1.Items.Add(new SampleDataItem("Group-1-Item-1",
                    "your first Item",
                    "first Item's subtitle",
                    "Assets/LightGray.png",
                    "description of first Item",
                    "content of first Item ",
                    group1));
you have to edit your code here
step5-how to add images
adding images is also simple.you have to add images in assets.
just click on assets in solution explorer.and click on add from existing images.









now ,edit in code.
"Assets/image1.jpg",
step6-when you are all done then,click on" local machine" in debug mode.



                                                                                                 
now,you are ready with your app.you can now publish it on windows store
you can also change the background color of your app by following these steps.
step1-open the page of which you want to change color.
                                                   eg. if you want to change the background of  GroupDeatailPage.xaml then,
                                             click on GroupDeatailPage.xaml in solution explorer and click on open in blend.
                         step2-after blend is open then click on "grid" in left part in "objects and timline"


                             step3-a properties block will come on right side.this block will contain many colors.choose any color from these colors.

step4-debug your code.

in this way you can make your own data app for windows 8 and can publish it on windows store.
go make your own app 
"best of luck"