Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

saving work

  • Loading branch information...
commit 08c7672983d80c8f12fa6c399352fbbc983d0248 1 parent 53c85d8
@devendram devendram authored
View
57 .gitignore
@@ -1,28 +1,29 @@
-.settings
-*~
-*.swp
-*.pyc
-*.class
-*.iml
-/flash/*/out
-/android/*/*/gen
-/android/*/*/bin
-/android/*/*/out
-.DS_Store
-node_modules
-.idea*
-/csharp/*/PubNub-Messaging*/bin/*
-/csharp/*/PubNub-Messaging*/obj/*
-/j2me/3.3/nbproject
-/flash/3.3.1beta/obj/*.old
-/flash/3.3.1beta/obj/PubNubTestConfig.xml
-/silverlight-part/*/Debug/*
-/silverlight-part/*/obj/*
-/csharp-windows-phone/*/packages/*
-/csharp-windows-phone/*/packages.config
-/csharp-windows-phone/*/*/bin/*
-/csharp-windows-phone/*/*/obj/*
-/j2me/3.3/j2me/src/async-http/build/
-/j2me/3.3/j2me/src/async-http/dist/
-/j2me/3.3/j2me/src/async-http/nbproject/private/
-/j2me/3.3/j2me/dist/
+.settings
+*~
+*.swp
+*.pyc
+*.class
+*.iml
+/flash/*/out
+/android/*/*/gen
+/android/*/*/bin
+/android/*/*/out
+.DS_Store
+node_modules
+.idea*
+/csharp/*/PubNub-Messaging*/bin/*
+/csharp/*/PubNub-Messaging*/obj/*
+/j2me/3.3/nbproject
+/flash/3.3.1beta/obj/*.old
+/flash/3.3.1beta/obj/PubNubTestConfig.xml
+/silverlight-part/*/Debug/*
+/silverlight-part/*/obj/*
+/csharp-windows-phone/*/packages/*
+/csharp-windows-phone/*/packages.config
+/csharp-windows-phone/*/*/bin/*
+/csharp-windows-phone/*/*/obj/*
+/j2me/3.3/j2me/src/async-http/build/
+/j2me/3.3/j2me/src/async-http/dist/
+/j2me/3.3/j2me/src/async-http/nbproject/private/
+/j2me/3.3/j2me/dist/
+.mtj.tmp
View
4 j2me/3.3/examples/PubnubExample/.classpath
@@ -4,9 +4,9 @@
<classpathentry kind="src" path="res"/>
<classpathentry kind="src" path="srcPubnubApi"/>
<classpathentry exported="true" kind="lib" path="../../libs/bouncycastle.jar"/>
- <classpathentry exported="true" kind="lib" path="../../jsonme.jar"/>
<classpathentry kind="lib" path="../../libs/cldc_1.1.jar"/>
- <classpathentry kind="lib" path="../../libs/midp_2.0.jar"/>
+ <classpathentry exported="true" kind="lib" path="../../libs/jsonme.jar"/>
<classpathentry kind="lib" path="../../libs/jsr177_1.0.jar"/>
+ <classpathentry kind="lib" path="../../libs/midp_2.0.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
View
40 j2me/3.3/examples/PubnubExample/.mtj
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mtjMetadata jad="PubnubExample.jad" version="1.2.1.201101310801">
+ <device group="Oracle Java(TM) Platform Micro Edition SDK 3.2" name="ClamshellJavaMEPhone1"/>
+ <signing projectSpecific="false" signProject="false">
+ <alias/>
+ </signing>
+ <configurations>
+ <configuration active="true" name="ClamshellJavaMEPhone1">
+ <device group="Oracle Java(TM) Platform Micro Edition SDK 3.2" name="ClamshellJavaMEPhone1"/>
+ <symbolSet name="ClamshellJavaMEPhone1">
+ <symbol name="MMAPI" value="1.2"/>
+ <symbol name="screen.isColor" value="true"/>
+ <symbol name="descriptor" value="Clamshell Java ME CLDC emulator"/>
+ <symbol name="screen.bitDepth" value="16"/>
+ <symbol name="JSR82" value="1.1"/>
+ <symbol name="apis.supported" value="J2ME-WS-1.0,JSR179-1.0,JSR184-1.1,JSR211-1.0,JSR226-1.0,JSR234-1.0,JSR239-1.0,JSR256-1.2,JSR257-1.0,JSR280-1.0,JSR75-1.0,JSR82-1.1,MMAPI-1.2,SATSA-1.0,WMA-2.0"/>
+ <symbol name="JSR280" value="1.0"/>
+ <symbol name="JSR226" value="1.0"/>
+ <symbol name="MIDP" value="2.1"/>
+ <symbol name="SATSA" value="1.0"/>
+ <symbol name="CLDC" value="1.1"/>
+ <symbol name="JSR179" value="1.0"/>
+ <symbol name="WMA" value="2.0"/>
+ <symbol name="J2ME-WS" value="1.0"/>
+ <symbol name="JSR257" value="1.0"/>
+ <symbol name="JSR256" value="1.2"/>
+ <symbol name="screen.width" value="240"/>
+ <symbol name="JSR239" value="1.0"/>
+ <symbol name="screen.isTouch" value="false"/>
+ <symbol name="JSR211" value="1.0"/>
+ <symbol name="JSR234" value="1.0"/>
+ <symbol name="JSR75" value="1.0"/>
+ <symbol name="JSR184" value="1.1"/>
+ <symbol name="version.configuration" value="CLDC-1.1"/>
+ <symbol name="version.profile" value="MIDP-2.1"/>
+ <symbol name="screen.height" value="320"/>
+ </symbolSet>
+ </configuration>
+ </configurations>
+</mtjMetadata>
View
35 j2me/3.3/examples/PubnubExample/.project
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>PubnubExample</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.mtj.core.preverifier</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.mtj.core.packageBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.mtj.core.nature</nature>
+ </natures>
+ <linkedResources>
+ <link>
+ <name>srcPubnubApi</name>
+ <type>2</type>
+ <location>C:/Users/work/Documents/GitHub/pubnub-api/j2me/3.3/src</location>
+ </link>
+ </linkedResources>
+</projectDescription>
View
10 j2me/3.3/examples/PubnubExample/bin/build.properties
@@ -0,0 +1,10 @@
+# MTJ Build Properties
+ClamshellJavaMEPhone1.includes=com/pubnub/examples/me/PubnubExample.java\
+,build.properties\
+,.mtj.tmp/emulation/PubnubExample.jad\
+,.mtj.tmp/emulation/PubnubExample.jar\
+,bin/.settings/org.eclipse.jdt.core.prefs\
+,bin/build.properties\
+
+ClamshellJavaMEPhone1.excludes=\
+
View
17 j2me/3.3/examples/PubnubExample/build.properties
@@ -1,18 +1,23 @@
# MTJ Build Properties
-ClamshellJavaMEPhone1.includes=srcPubnubApi/com/pubnub/api/Callback.java\
+ClamshellJavaMEPhone1.includes=src/.mtj.tmp/emulation/PubnubExample.jad\
+,src/.mtj.tmp/emulation/PubnubExample.jar\
+,src/.mtj.tmp/verified/classes/com/pubnub/examples/me/PubnubExample.class\
+,src/.settings/org.eclipse.jdt.core.prefs\
+,src/build.properties\
+,src/com/pubnub/examples/me/PubnubExample.java\
+,srcPubnubApi/com/pubnub/api/Callback.java\
+,srcPubnubApi/com/pubnub/api/Channel.java\
,srcPubnubApi/com/pubnub/api/Pubnub.java\
,srcPubnubApi/com/pubnub/api/PubnubException.java\
,srcPubnubApi/com/pubnub/api/PubnubUtil.java\
,srcPubnubApi/com/pubnub/api/Request.java\
,srcPubnubApi/com/pubnub/api/ResponseHandler.java\
-,srcPubnubApi/com/pubnub/crypto/me/Base64Encoder.java\
-,srcPubnubApi/com/pubnub/crypto/me/PubnubCrypto.java\
+,srcPubnubApi/com/pubnub/api/Subscriptions.java\
,srcPubnubApi/com/pubnub/asynchttp/AsyncHttpCallback.java\
,srcPubnubApi/com/pubnub/asynchttp/AsyncHttpManager.java\
,srcPubnubApi/com/pubnub/asynchttp/HttpCallback.java\
-,src/com/pubnub/examples/me/PubnubExample.java\
-,srcPubnubApi/com/pubnub/api/Channel.java\
-,srcPubnubApi/com/pubnub/api/Subscriptions.java\
+,srcPubnubApi/com/pubnub/crypto/me/Base64Encoder.java\
+,srcPubnubApi/com/pubnub/crypto/me/PubnubCrypto.java\
ClamshellJavaMEPhone1.excludes=\
View
10 j2me/3.3/examples/PubnubExample/src/build.properties
@@ -0,0 +1,10 @@
+# MTJ Build Properties
+ClamshellJavaMEPhone1.includes=com/pubnub/examples/me/PubnubExample.java\
+,build.properties\
+,.mtj.tmp/emulation/PubnubExample.jad\
+,.mtj.tmp/emulation/PubnubExample.jar\
+,bin/.settings/org.eclipse.jdt.core.prefs\
+,bin/build.properties\
+
+ClamshellJavaMEPhone1.excludes=\
+
View
6 j2me/3.3/src/com/pubnub/asynchttp/AsyncHttpManager.java
@@ -271,7 +271,7 @@ private void process(AsyncConnection conn) {
cb.setConnection(hc);
int rc = 0;
- hc.getResponseCode();
+ rc = hc.getResponseCode();
if (!cb.checkResponse(hc)) {
break;
} else if (!isRedirect(rc)) {
@@ -325,7 +325,7 @@ public void run() {
if (!network.isAvailable()) {
synchronized (network) {
try {
- network.wait();
+ network.wait(5000);
} catch (InterruptedException e1) {
}
@@ -338,7 +338,7 @@ public void run() {
}
try {
- _waiting.wait();
+ _waiting.wait(5000);
} catch (InterruptedException e) {
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.