[android-developers] SVN Repository

2012-10-11 Thread tj
Hello all,
we are working on one project in our company.
one person is works on windows platform while another using ubuntu for 
development.
we need to connect same project via svn repository.
now the problem is we couldn't connect our server via ubuntu.
so we failed to connect our project via svn repository.
can anyone tell me how to configure svn repository in ubuntu?
how to connect server from ubuntu?(server is on windows platform)
how to communicate between windows and ubuntu?
need some help from you.

thanks and regards
tj

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Grow heap (frag case) for allocation

2012-10-06 Thread tj
hello frnzz,
In my project i am fetching a text file from row folder. file size is near 
about 3 MB. each and every time while reading that text file, heap size 
grows rapidly. after reaching it's memory limit it 
gives outOfMemoryException. i have used bufferReader, inputStream and 
stringBuilder to read file. geeks plz help me. hope for positive responce.
Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] xml file encryption and decryption

2012-09-20 Thread tj
hello developers
i want to encrypt and decrypt xml file. i am using 
jaxb-xalan-1.5,
 xmlsec-2.0,
xercesImpl-2.9.1
this libraries. while decryption i am facing illegalArgumentException on 
doFinal() method,
for encryption and decryption i am using xmlCipher class.
if anyone tried this before then plz let me know.
i need your help.
 
thanks and regards
tj

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] xml file encryption and decryption

2012-09-19 Thread tj
Hello frnz, i wanna encrypt and decrypt xml file using "XmlCipher" class. 
and i am suffering from IllegalArgumentException. can u plz help me.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Application to start with

2012-07-24 Thread tj
Yeah, I have already made a calculator, basic currency conversion tool, 
tictactoe I need something where I can use android APIs and stuff..

On Saturday, 21 July 2012 14:00:07 UTC+5:30, Narendra Singh Rathore wrote:
>
>
>
> On Thu, Jul 19, 2012 at 3:49 PM, tj  wrote:
>
>> I am new to android development. I have worked before on java and .NET 
>> but am a bit confused with android programming. Can you plz suggest some 
>> ideas as to on what basic application should I start working on. I made 
>> basic TicTacToe game so I know the basic programming stuff. Thanks.. 
>
>
> Thats good. Try to make the *calculator with the converter* app, which 
> contains the calculator - simple and scientific, with the converter to 
> convert currencies, measurements and so on.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Application to start with

2012-07-19 Thread tj
I am new to android development. I have worked before on java and .NET but 
am a bit confused with android programming. Can you plz suggest some ideas 
as to on what basic application should I start working on. I made basic 
TicTacToe game so I know the basic programming stuff. Thanks..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Regaring PhoneGap

2012-05-15 Thread tj
Hey all,
does anyone know about phoneGap and Sencha.
How to use it and why to use it.
Please help me.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] communicate with webservices

2012-05-11 Thread tj
hey guys m trying to communicate webservice from  my android app. i
create my web app. i want to fetch output from html coz webservice was
written in html. can anyone help me plz.

thanks a lot.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] communicate with webservices

2012-05-11 Thread tj
hey guys m trying to communicate webservice from  my android app. i
create my web app. i want to fetch output from html coz webservice was
written in html. can anyone help me plz.

thanks a lot.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Exception......

2012-05-04 Thread tj
05-04 10:21:07.594: E/AndroidRuntime(333): FATAL EXCEPTION: main
05-04 10:21:07.594: E/AndroidRuntime(333): java.lang.RuntimeException:
Unable to instantiate activity ComponentInfo{com.liveplaygolf/
com.liveplaygolf.activity.HomeActivity}:
java.lang.ClassNotFoundException:
com.liveplaygolf.activity.HomeActivity in loader
dalvik.system.PathClassLoader[/data/app/com.liveplaygolf-1.apk]
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1569)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1663)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.os.Handler.dispatchMessage(Handler.java:99)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.os.Looper.loop(Looper.java:123)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.ActivityThread.main(ActivityThread.java:3683)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
java.lang.reflect.Method.invokeNative(Native Method)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
java.lang.reflect.Method.invoke(Method.java:507)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
dalvik.system.NativeStart.main(Native Method)
05-04 10:21:07.594: E/AndroidRuntime(333): Caused by:
java.lang.ClassNotFoundException:
com.liveplaygolf.activity.HomeActivity in loader
dalvik.system.PathClassLoader[/data/app/com.liveplaygolf-1.apk]
05-04 10:21:07.594: E/AndroidRuntime(333):  at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
java.lang.ClassLoader.loadClass(ClassLoader.java:551)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.Instrumentation.newActivity(Instrumentation.java:1021)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1561)

:-(
can anyone help me please..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] ice cream to samsang galaxy S ii

2011-10-26 Thread TJ
any official upgrades available soon?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Very puzzling crash report from user

2011-05-28 Thread tj
I had the same problem with list_selector_background. You can fix that 
by copying the resources into your own apk.


tj


Caused by: android.content.res.Resources$NotFoundException: File 
res/drawable/list_selector_background.xml from drawable resource ID #0x0

at android.content.res.Resources.loadDrawable(Resources.java:1715)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.widget.ListView.(ListView.java:169)
... 34 more
Caused by: android.content.res.Resources$NotFoundException: File 
res/drawable/list_selector_background.xml from xml type drawable 
resource ID #0x0

at android.content.res.Resources.loadXmlResourceParser(Resources.java:1942)
at android.content.res.Resources.loadDrawable(Resources.java:1710)




On 05/29/2011 10:34 AM, Zsolt Vasvari wrote:


Well, I do not have such a resource and I don't use
android.R.drawble.btn_dropdown anywhere.  I do have a TextView where I
give it a style of android:Widget.Spinner which would eventually
resolve to btn_dropdown.

The reason I am at a loss is as there are thousands of users where the
same executable works just fine, but this one user gets an exception
on his LDPI QVGA device.  My guess there are not too many users with
this device, but as I mentioned in my first post, setting up an
emulator instance with those parameters don't reproduce the problem.



On May 29, 8:29 am, Mark Murphy  wrote:

Based upon the exception, Android is failing to load
R.drawable.btn_dropdown
("android.content.res.Resources$NotFoundException: File
res/drawable/btn_dropdown.xml"), not android.R.drawable.btn_dropdown.





On Sat, May 28, 2011 at 8:10 PM, Zsolt Vasvari  wrote:

I've received the following crash report from a user.  He's running
HTC Wildfire 2.1.  I've tried duplicating the issue on the emulator by
setting up a Wildfire-like system (2.1, QVGA). but no luck.  I
suspected a corrupt installation, so I sent him my APK and the same
thing happened.
I am at a complete loss.  Mark Murphy appears to have answered a
similar question recently on StackOverflow, but he's just stating what
I already know:
http://stackoverflow.com/questions/6060592/resources-notfoundexceptio...
But I am not using a the compatibility library.  My error indicates
that the system cannot inflate a TextView as it cannot load one of the
built in resources. Anybody has a clue?
Caused by: android.view.InflateException: Binary XML file line #40:
Error inflating class
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
android.view.LayoutInflater.createView(LayoutInflater.java:513)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayo赴tInflater.java:
56)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.jav苔:
207)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
android.app.Activity.setContentView(Activity.java:1629)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
com.zvasvari.anmoney.app.transaction.activity.NewEdit.e(Unknown
Source)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
com.zvasvari.anmoney.app.AnMoneyActivity.onCreate(Unknown Source)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2549)
05-28 10:47:40.346 E/AndroidRuntime(2108):  ... 11 more
05-28 10:47:40.346 E/AndroidRuntime(2108): Caused by:
java.lang.reflect.InvocationTargetException
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
android.widget.TextView.(TextView.java:329)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
java.lang.reflect.Constructor.constructNative(Native Method)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
java.lang.reflect.Constructor.newInstance(Constructor.java:446)
05-28 10:47:40.346 E/AndroidRuntime(2108):  at
android.view.LayoutInflater.createView(LayoutInflater.java:500)
05-28 10:47:40.346 E/AndroidRuntime(2108):  ... 24 more
05-28 10:47:40.346 E/AndroidRuntime(2108): Caused by:
android.content.res.Resources$NotFoundException: File res/drawable/
btn_dropdown.xml from color state list resource ID 

Re: [android-developers] How to run app on command shell?

2011-05-27 Thread tj

I use a script like this:

adb install ${TargetApkPath}
adb shell monkey -p ${PackageName} -v 1


where the two parameters are the apk you want to install, then the 
package name
you can append an -r to "adb install" as well, so you don't have to 
uninstall it everytime.


tj

On 05/27/2011 09:27 AM, daniel wrote:

Hi,

 If have a good way to run app on command shell?
 The app will be auto download to device and auto run when we use 
eclipse to develop, but how to do it on command?


I can use "adb install xxx.app" to install app,  but I must open 
device and click it to run.



Regards,
daniel
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android Search Engine For Development

2011-05-18 Thread tj aof
Hi,
   I'm working for create a search engine for android development by google
custome search. its just begining and
I create a project to collect best android develop site urls on goolge code,
http://code.google.com/p/androidor/
The last site list availe on
http://androidor.googlecode.com/files/sitelist.txt

Could you please tell me if you known some good site about android develop?

Thanks and Best Regards,
Daniel

Android Search Engine For Development- http://androidor..net

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] simple image question from a noob

2011-01-26 Thread TJ
I am trying to create a very simple application that displays an image
when you click a button.  I have searched and done "trial and error"
for days and have not come up with a solution.  I have the  PNG image
in the drawable folder.  I feel like an idiot but am frustrated by not
being able to solve this on my own.  Thank you for your time.

TJ

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Searching for contact by phone number

2011-01-14 Thread TJ
I am executing a query on the ContactsContract uri and I am not
getting any results when phone numbers are stored with (xxx)
333-.  What is the best way to have m results return numbers that
match ignoring separators?

Cursor phoneCursor =  mContentResolver.query(
cdkURI,
projection,
ContactsContract.CommonDataKinds.Phone.NUMBER + " = ?",
new String[] {incomingNumber},
null
);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] searching ContactsContract by phone number

2011-01-04 Thread TJ Bryant
I am executing a query on the ContactsContract uri and I am not getting any
results when phone numbers are stored with (xxx) 333-.  What is the best
way to have m results return numbers that match ignoring separators?

Cursor phoneCursor =  mContentResolver.query(

cdkURI,

projection,

ContactsContract.CommonDataKinds.Phone.NUMBER + " = ?",

new String[] {incomingNumber},

null

);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] searching for contact by phone number

2011-01-04 Thread TJ Bryant
I am executing a query on the ContactsContract uri and I am not getting any
results when phone numbers are stored with (xxx) 333-.  What is the best
way to have m results return numbers that match ignoring separators?

Cursor phoneCursor =  mContentResolver.query(

cdkURI,

projection,

ContactsContract.CommonDataKinds.Phone.NUMBER + " = ?",

new String[] {incomingNumber},

null

);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] BroadcastReciever Process outgoing calls

2011-01-04 Thread TJ
I am targeting 2.2 using eclipse.  I have a Broadcast Reciever that I
have given permission to process outgoing calls.  When I run the
application, and make a call out, I get an error on the screen saying
the application has stopped unexpectedly.

I have set debug points and it seems the process just dies.  I set a
debug point at the first line.  When I did this, it stopped at that
line and it will let me step through the code but ends up dying. I
also let it hit that first debug point and just sat there, it seems
given enough time (a couple of seconds) with no activity it will just
kill the process also. The logs are giving me no indication what the
problem could be.

Anyone have any idea why this could be?  I'm not trying to do anything
with the outgoing call I just want to check the contact and pop up a
toast but my application dies before I can.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Using google map api on phones without the map library?

2010-09-24 Thread tj

Hi,
I have a bus app which displays route info on google map. A lot of users 
is complaining they can not install the app because their rom don't have 
google map library. So the android:name="com.google.android.maps" /> does not work.


Is there any way I can pack the map lib with my app? So people without 
the map lib can still use my apps? Or is there other work around?


Thanks,
tj


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to create a common library in android - containing resource files as well

2010-09-15 Thread tj

Just what I need.

Thanks a lot,

tj

On 09/15/2010 07:08 PM, Mark Murphy wrote:

Create an Android library project:

http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject
http://developer.android.com/guide/developing/other-ide.html#libraryProject

On Wed, Sep 15, 2010 at 1:40 AM, tj  wrote:
   

Hi,

I have several android projects, they share some common codes, resources
files. Does any body know how to create an android library that can be used
among different projects?

I know how to do this if it's only java code. But how do you deal with the
resource files? The auto generated R.java? How to make the resources in the
lib are accessible to the importing project?

Thanks,
tj

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

 



   


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to create a common library in android - containing resource files as well

2010-09-14 Thread tj

Hi,

I have several android projects, they share some common codes, resources 
files. Does any body know how to create an android library that can be 
used among different projects?


I know how to do this if it's only java code. But how do you deal with 
the resource files? The auto generated R.java? How to make the resources 
in the lib are accessible to the importing project?


Thanks,
tj

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Motorola Milestone not showing up in ddms / adb on Mac OS X Snow Leopard

2009-12-16 Thread TJ
If it's the same problem I've experienced, it can be fixed by pulling
down the notification bar, pressing the "USB connection" notification,
and selecting the option "None". If the adb service is running, kill
the server and restart it.


On Dec 1, 3:02 pm, Oliver  wrote:
> I have the same problem. On a MacBook Pro running Leopard (10.5.8).
>
> On Nov 25, 1:11 pm, 24z  wrote:
>
> > I've connected my (new) Motorola Milestone running Android 2.0 to an
> > Intel iMac running the latest version of Snow Leopard.
>
> > USB Debugging is enabled on the device. However, ddms doesn't see the
> > device. Running adb devices returns an empty list.
>
> > Any ideas how to troubleshoot?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread TJ
Mark, I may have found the problem, but not sure how I can fix it. The
log msg for the responseBody is below. Should it be the UTF_8 param?
thanks
{"hey": "guy","anumber": 243,"anobject": {"whoa":
"nuts","anarray": [1,2,"three"], "more":"stuff"},"awesome":
true,"bogus": false,"meaning": null, "japanese":"明日㠌Ã
£Â ‚る。", "link": "http://jsonview.com";, "notLink": "http://
jsonview.com is great"}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread TJ
Mark, Thanks for the link, a lot of good examples. I try to use
BasicResponseHandler but I am still getting the same error. Could it
be something with Eclipse?
org.json.JSONException: A JSONObject text must begin with '{' at
character 1

DefaultHttpClient client=null;
HttpClient httpclient = new DefaultHttpClient();
client=new DefaultHttpClient();
HttpParams params=new BasicHttpParams();
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
HttpProtocolParams.setContentCharset(params, "UTF_8");
HttpProtocolParams.setUseExpectContinue(params, false);
client.setParams(params);
HttpPost post=new HttpPost("http://brh.numbera.com/software/jsonview/
example.json");
try
{
ResponseHandler responseHandler=new BasicResponseHandler();
String responseBody=httpclient.execute(post, responseHandler);
Log.v(TAG, "responseBody" + responseBody.toString());
JSONObject response=new JSONObject(responseBody);
Log.v(TAG, "Response" + response.toString());
}
catch(Exception e)
{
Log.v(TAG, "E" + e.toString());
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread TJ
Mark, thanks for the help But, I an also getting the same error msg
when I try pulling the JSON file from twitter.com.
thanks for the help.

String url = "http://twitter.com/statuses/user_timeline.json?
screen_name=huskyr";
HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet(url);
HttpResponse response;
InputStream instream = entity.getContent();
String result= convertStreamToString(instream);
JSONObject json=new JSONObject(result);




-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] JSONObject text must begin with '{' at character 1

2009-11-14 Thread TJ
I'm having a weird error, seems to be cause whenever I hit JSONObject
json=new JSONObject(result);.
The error msg is org.json.JSONException: A JSONObject text must begin
with '{. I have no idea how to fix this is any one have any idea
PLEASE LET ME KNOW. The JSON File is

thanks

The JSON File is
{"ResultSet":{
  "totalResultsAvailable":"3",
  "totalResultsReturned":"2",
  "firstResultPosition":"1",
  "Result":[
{
  "Title":"madonna 116",
  "Summary":"Picture 116 of 184",
  "Url":"http:\/\/www.celebritypicturesarchive.com\/pictures\/m\/
madonna\/madonna-116.jpg",
   }
},
{
  "Title":"madonna 118",
  "Summary":"Picture 118 of 184",
  "Url":"http:\/\/www.celebritypicturesarchive.com\/pictures\/m\/
madonna\/madonna-118.jpg",
  }
}
  ]
}
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Replace Old DB file

2009-11-09 Thread TJ
Hi,
I am having a hard time in DDMS "Push a file onto device" I have an
old database file that I like to replace with a new file that I
created using sql studio. If anybody have any idea on how to do this
please let me know,
thanks
tj

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ADC2 entries so far...

2009-09-15 Thread tj

App: GooMemo, notes app with GDocs sync
Category: Productivity
http://goomemo.com

Tomi Mickelsson

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-14 Thread tj

Last and least, me.

App: GooMemo
Category: Productivity
LOC: 7658
http://goomemo.com

My story: I'm an active note taker, writing notes on my phone on the
road. When I got my hands on the G1, I knew I had to develop my own
notes app. This was in the beginning of 2009. I learned the Android
framework and designed the app further at my own pace. Then ADC2 was
announced and I knew I that I should participate. ADC2 set the
deadline for my work.

I worked harder and harder as the deadline approached, but still, the
usual happened: there was huge amount of work to be done during the
last weeks. I worked multiple days until midnight, on my free time.
Last days were a struggle with less sleep. In the end, I managed to
publish a decent app. I'm afraid some bugs slipped through though.
After the deadline, I had a break for over a week. Didn't want any of
Android, I was exhausted.

What was the most time consuming task for me? It was implementing the
2-way GDocs synchronization feature. Nothing to do with Android
actually. I had to learn the GDocs protocol and develop a light-weight
communication library that could run on Android; the existing GDocs
Java lib does not run on Android. Sure there were fights with Android
too, every framework has its issues.

Last week I returned back to my app and released a free version of it.
(I intend to publish a commercial version later, if possible.) Also
put up the web site with screenshots.

Anyway, GooMemo is now out there for free. If you are looking for a
notes app, go check it. If you are not satisfied, please let me know.

Waiting for the judging to start,
Tomi Mickelsson

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android 1.5 SDK now available

2009-04-29 Thread tj

Thanks for the new SDK. I've played with all previous SDKs but this
was the first one that required some fighting.

I wanted to run the emulator directly on Windows after unzipping files
but the emulator exe didn't launch, complaining about virtual devices.
I had to spend a few minutes to do the following tricks:

C:\android-sdk-windows-1.5_r1\tools>android create avd -t 2 -n 1.5
Android 1.5 is a basic Android platform.
Do you wish to create a custom hardware profile [no]
Created AVD '1.5' based on Android 1.5

C:\android-sdk-windows-1.5_r1\tools>emulator -avd 1.5

Maybe you could explain the above right in the beginning of the SDK
documentation?

Tomi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---