Re: [android-developers] How to new a class extends TelephonyManager?there is no default constructor in TM class.

2015-08-27 Thread Steve Gabrilowitz
You don't instantiate it directly, you don't instantiate it at all,
therefore you can not extend it in the conventional sense.  What you can do
is to create a class that acts that acts as a wrapper for the methods of TM
that you want it to expose directly.  If you tell us what sort of
extensions you want to make you will get better suggestions!
On Aug 24, 2015 8:49 PM, 张斌 kimichangs...@gmail.com wrote:

 I want to create a new class extends TelephonyManager which can not
 instantiate directly.TelephonyManager can be instantiate through
 Context.getSystemService(Context.TELEPHONY_SERVICE).


 Are there anyone know sth about it?

 Waiting for your reply!

 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to new a class extends TelephonyManager?there is no default constructor in TM class.

2015-08-27 Thread 张张斌
Want to override some member methods,like toString.

2015-08-28 1:25 GMT+08:00 Steve Gabrilowitz steveg1...@gmail.com:


 You don't instantiate it directly, you don't instantiate it at all,
 therefore you can not extend it in the conventional sense.  What you can do
 is to create a class that acts that acts as a wrapper for the methods of TM
 that you want it to expose directly.  If you tell us what sort of
 extensions you want to make you will get better suggestions!
 On Aug 24, 2015 8:49 PM, 张斌 kimichangs...@gmail.com wrote:

 I want to create a new class extends TelephonyManager which can not
 instantiate directly.TelephonyManager can be instantiate through
 Context.getSystemService(Context.TELEPHONY_SERVICE).


 Are there anyone know sth about it?

 Waiting for your reply!

 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
如果邮箱有问题,请转至kimichangs...@163.com kimichangs...@sina.com

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] sqlcipher help

2015-08-27 Thread Jags


hi all,

 

I have inherited a legacy code which works well, but i need to implement 
sqlcipher into in. my app is for both android and ios, hence sqlite part is 
written in c++ which is also used by nadroid using JNI.

 

hence i am unable to use ready to use library for ios and android as i use 
functions like sqlite3_open, sqlite3_exec.

 

do i need to add all c++ files for sqlcipher and compile and use it ?

is there a tutorial how to use it in c++ code ?

 

regrds

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] webview loadurl oncreate

2015-08-27 Thread Jags
hi all,

i use webview in my android app to be used later (on click of menu)

the problem is, when i do loadurl, there is a flicker and delay.

i wanted to load the url in the beginning, and only show the ebview when 
required (on click)

when i do objWebView.loadUrl(help.html);

inside oncreate of mainactivity, it does not load the page.

if i do it on button click it loads properly, doing runOnUiThread also does 
not help.

what is the correct way to load a page in the beginning and display later ? 
webview is not my initial contentview.

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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.