[android-developers] Android developer blog as a rss feeds

2017-08-15 Thread Dmitriy Kazakov
Context
I am working on mobile assistant which first aim to play a role of RSS feed 
for android developer blog http://feeds.feedburner.com/blogspot/hsDu

The issue
The content I received is an html web page. Not expected json or xml. It is 
possible to show it within web view, but I would like to avoid it. 

Similar with link on the next page, the format like this is difficult to 
parse
https://www.blogger.com/feeds/6755709643044947179/posts/default?start-index=51=25=false;
 />

Is it any way to get rss feeds as simple json from android developer blog? 

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/bc52990d-f958-4d34-a3cc-b127b8b8730c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to make flavor?

2013-11-01 Thread Dmitriy Kazakov
I have a script

apply plugin: 'android'

repositories {
mavenCentral()
}

dependencies {
compile 'commons-io:commons-io:2.4'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:18.0.+'
compile 'com.google.android.gms:play-services:3.2.+@aar'
compile project(':ViewPagerIndicator')
compile project(':AndroidHorizontalListView')
}

android {
compileSdkVersion 18
buildToolsVersion 18.1.0

productFlavors {
main {
packageName com.example
}
flavor {
packageName com.example.flavor
}
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}

hospa {
res.srcDirs = ['hospa/res']
}

// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')

// Move the build types to build-types/type
// For instance, build-types/debug/java, 
build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under 
src/type/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
flavor.setRoot('build-types/hospa');
}

signingConfigs {
debug {
storeFile file('../debug.keystore')
}
}
} 

but when I run assembleFalvorDebug it build a main version app -- it 
doesn;t contains changes which flavor should have. I think issue in folders 
structure. I try a lot of different varian but result was the same. Could 
you please show which folder structure I should have for this case?

-- 
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/groups/opt_out.


[android-developers] Fragment with onLoadFinished()

2013-10-12 Thread Dmitriy Kazakov
I know about issues binded with fragment transactions which are made after 
onSavedState(), e.g. onLoadFinished, but I really need to change fragment 
or pass some data to it. 

I see a few solution:
 - commitAllowingStateLoss(): remove a big part of bugs, but rised up 
issues with saved content and still can be a cause of bugs
 - create, add, hide fragment and onLoadFinished pass valuable content with 
showing of fragment. This rise up an issue with consistency of fragment 
content during activity-fragment recreation by OS

Which else solution do you known and use to avoid this kind of issues?

-- 
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/groups/opt_out.


[android-developers] Re: what does it mean? - java.lang.SecurityException: Unable to find app for caller android.app. ApplicationThreadProxy@42b3bcc0 (pid=28461) when publishing content providers

2012-12-21 Thread Dmitriy Kazakov
Thanks b0b,

Th problem is that I receiev the log file with a lot of exceptions as this, 
they are so much that I don't see previous rows. 

I have a case when my service could be killed by system. Notification in 
status bar and running as foreground make it's life longer but case are 
occurs sometimes, so a few don't completed tasks try to publish their 
results to the service which is not existed. Could it the root of 
exceptions as this?

среда, 19 декабря 2012 г., 15:09:43 UTC+4 пользователь b0b написал:

 This means there was an error communicating with another process handling 
 an Intent. 

 The stack trace here is confusing and doesn't show the real cause of the 
 problem.

 For example i've seen this error happen sending an intent with intent 
 extras being too big, bigger than max transaction size (1Mb).

 To debug this it can be interesting to look at earlier logcat stack trace 
 to see where it really fails.




-- 
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: what does it mean? - java.lang.SecurityException: Unable to find app for caller android.app. ApplicationThreadProxy@42b3bcc0 (pid=28461) when publishing content providers

2012-12-19 Thread Dmitriy Kazakov
Hi,

App still catch this problem. Could someone help me to figure out with it?

воскресенье, 25 ноября 2012 г., 19:56:43 UTC+4 пользователь Dmitriy Kazakov 
написал:

 Hello, 

 I have an app did a lot calculations, comunicate with a server and lives 
 all time in backgound if user wants it. My service could be killed with an 
 entire process and recreating again when memory have been available so I 
 manage this behaviour. But issue is that in some rare cases I get an error 
 which staktrase I post below. My guess is that some part of code which are 
 executed in another thread try to post some results to component that has 
 been deleted and recreated again in another process. 

 Do you have a better eplanation? All help would be appreciated.  

 E/AndroidRuntime(28461): FATAL EXCEPTION: main
 E/AndroidRuntime(28461): java.lang.SecurityException: Unable to find app 
 for caller android.app.

 ApplicationThreadProxy@42b3bcc0 (pid=28461) when publishing content 
 providers
 E/AndroidRuntime(28461): at 
 android.os.Parcel.readException(Parcel.java:1327)
 E/AndroidRuntime(28461): at 
 android.os.Parcel.readException(Parcel.java:1281)
 E/AndroidRuntime(28461): at 
 android.app.ActivityManagerProxy.publishContentProviders(ActivityManagerNative.java:2325)
 E/AndroidRuntime(28461): at 
 android.app.ActivityThread.installContentProviders(ActivityThread.java:4021)
 E/AndroidRuntime(28461): at 
 android.app.ActivityThread.handleBindApplication(ActivityThread.java:3963)
 E/AndroidRuntime(28461): at 
 android.app.ActivityThread.access$1300(ActivityThread.java:128)
 E/AndroidRuntime(28461): at 
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
 E/AndroidRuntime(28461): at 
 android.os.Handler.dispatchMessage(Handler.java:99)
 E/AndroidRuntime(28461): at android.os.Looper.loop(Looper.java:137)
 E/AndroidRuntime(28461): at 
 android.app.ActivityThread.main(ActivityThread.java:4517)
 E/AndroidRuntime(28461): at java.lang.reflect.Method.invokeNative(Native 
 Method)
 E/AndroidRuntime(28461): at 
 java.lang.reflect.Method.invoke(Method.java:511)
 E/AndroidRuntime(28461): at 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
 E/AndroidRuntime(28461): at 
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
 E/AndroidRuntime(28461): at dalvik.system.NativeStart.main(Native Method)


-- 
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] what does it mean? - java.lang.SecurityException: Unable to find app for caller android.app. ApplicationThreadProxy@42b3bcc0 (pid=28461) when publishing content providers

2012-11-28 Thread Dmitriy Kazakov
Hello, 

I have an app did a lot calculations, comunicate with a server and lives 
all time in backgound if user wants it. My service could be killed with an 
entire process and recreating again when memory have been available so I 
manage this behaviour. But issue is that in some rare cases I get an error 
which staktrase I post below. My guess is that some part of code which are 
executed in another thread try to post some results to component that has 
been deleted and recreated again in another process. 

Do you have a better eplanation? All help would be appreciated.  

E/AndroidRuntime(28461): FATAL EXCEPTION: main
E/AndroidRuntime(28461): java.lang.SecurityException: Unable to find app 
for caller android.app.

ApplicationThreadProxy@42b3bcc0 (pid=28461) when publishing content 
providers
E/AndroidRuntime(28461): at 
android.os.Parcel.readException(Parcel.java:1327)
E/AndroidRuntime(28461): at 
android.os.Parcel.readException(Parcel.java:1281)
E/AndroidRuntime(28461): at 
android.app.ActivityManagerProxy.publishContentProviders(ActivityManagerNative.java:2325)
E/AndroidRuntime(28461): at 
android.app.ActivityThread.installContentProviders(ActivityThread.java:4021)
E/AndroidRuntime(28461): at 
android.app.ActivityThread.handleBindApplication(ActivityThread.java:3963)
E/AndroidRuntime(28461): at 
android.app.ActivityThread.access$1300(ActivityThread.java:128)
E/AndroidRuntime(28461): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
E/AndroidRuntime(28461): at 
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(28461): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(28461): at 
android.app.ActivityThread.main(ActivityThread.java:4517)
E/AndroidRuntime(28461): at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(28461): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(28461): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
E/AndroidRuntime(28461): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
E/AndroidRuntime(28461): at dalvik.system.NativeStart.main(Native Method)

-- 
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