İş Tecrubesi
Eğitim Geçmişi
Sertifikalar & Başarılar
Kullanıcıya ait test sonucu bulunmamaktadır.
Dil Becerileri
Son Forum Aktiviteleri
12Android Webview WebSocket connection to failed
Eski sürümlerde bir uygulama yazmıştım. Webview'de disqus yorumları gösteriyordum. Aynısını yine yaptım ama bu sefer normalde olan yorumları göremiyorum, oturuma giriş yaptığım halde oturum açılmamış gibi görüyor ve 2 tane hata alıyorum;
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 7877
com.example.rssreader I/chromium: [INFO:CONSOLE(1)] "WebSocket connection to 'ws://realtime.services.disqus.com/ws/2/thread/5101925774?' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED", source: http://a.disquscdn.com/next/embed/lounge.bundle.65405a1936caac9a0a0bc4eb85e92e86.js (1)
Kodlarım şunlar;
WebView= (WebView) findViewById(R.id.webView);
WebView.getSettings().setJavaScriptEnabled(true);
WebView.getSettings().setDomStorageEnabled(true);
WebView.setWebViewClient(new WebViewClient());
WebView.loadDataWithBaseURL(bundle.getString("Link"), "<style>img{display: inline;height: auto;max-width: 100%;}</style>" + bundle.getString("icerik")+ htmlComments, "text/html", "utf-8",null); }
String htmlComments = getHtmlComment( "kutayeen"); public String getHtmlComment( String shortName) { return "<div id='disqus_thread'></div>" + "<script type='text/javascript'>" + "var disqus_shortname = '" + shortName + "';" + " (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;" + "dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';" + "(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();" + "</script>"; }
Webview'de bir şey değişmiş ama anlayamadım.
Tarih stili ayarlama android
burada tarih stilini nasıl yıl/ay sayı şekilde yapabilirim ?
else if ("pubDate".equals(nodeName)) {
// We replace the plus and zero's in the date with
// empty string
String formatedDate = theString.replace(" +0000",
"");
_item.setDate(formatedDate);
}
Fazla Activity ram kullanımı
Ben bir soru tabanlı uygulama yapıyorum fakat her soru için farklı activity yaptım ama bu sefer son soruya gelene kadar ram kullanımı 100 mb oldu. Activityler yeni activty açılınca kapanıyor fakat ram kullanımı aynı kalıyor bir activtiy kapatınca nasıl ram kullanımı engellenebilir
Admob AdRequest.Builder Hatası
AdView adView = (AdView) this.findViewById(R.id.adView); AdRequest adRequest = new AdRequest.Builder().build(); AdRequest.Builder hata veriyorr adView.loadAd(adRequest); loadAd hata veriyorr google play servisleri ekli bu arada. kodu eklediğimde hata veriyor kodlarımın tamamı ; package com.ilgincbilgiler; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.ListView; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast; import com.google.ads.AdRequest; import com.google.android.gms.ads.*; import com.td.rssreader.image.ImageLoader; import com.td.rssreader.parser.DOMParser; import com.td.rssreader.parser.RSSFeed; public class ListActivity extends Activity { AdView adView; RSSFeed feed; ListView lv; CustomListAdapter adapter; String feedLink; private Intent intent; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.feed_list); AdView adView = (AdView) this.findViewById(R.id.adView); AdRequest adRequest = new AdRequest.Builder().build(); adView.loadAd(adRequest); //adView i yüklüyoruz feedLink = new SplashActivity().RSSFEEDURL; // Get feed form the file feed = (RSSFeed) getIntent().getExtras().get("feed"); // Initialize the variables: lv = (ListView) findViewById(R.id.listView); lv.setVerticalFadingEdgeEnabled(true); // Set an Adapter to the ListView adapter = new CustomListAdapter(this); lv.setAdapter(adapter); // Set on item click listener to the ListView lv.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> arg0, View arg1, int arg2, long arg3) { // actions to be performed when a list item clicked int pos = arg2; Bundle bundle = new Bundle(); bundle.putSerializable("feed", feed); Intent intent = new Intent(ListActivity.this, DetailActivity.class); intent.putExtras(bundle); intent.putExtra("pos", pos); startActivity(intent); } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { new MenuInflater(this).inflate(R.menu.activity_main, menu); return (super.onCreateOptionsMenu(menu)); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.refresh_option: refreshList(item); return (true); case R.id.about_option: intent = new Intent(this, secenekler.class); startActivity(intent); return (true); } return super.onOptionsItemSelected(item); } public void refreshList(final MenuItem item) { /* Attach a rotating ImageView to the refresh item as an ActionView */ LayoutInflater inflater = (LayoutInflater) getApplication() .getSystemService(Context.LAYOUT_INFLATER_SERVICE); ImageView iv = (ImageView) inflater.inflate(R.layout.action_refresh, null); Animation rotation = AnimationUtils.loadAnimation(getApplication(), R.anim.refresh_rotate); rotation.setRepeatCount(Animation.INFINITE); iv.startAnimation(rotation); item.setActionView(iv); // trigger feed refresh: Thread thread = new Thread(new Runnable() { @Override public void run() { DOMParser tmpDOMParser = new DOMParser(); feed = tmpDOMParser.parseXml(feedLink); ListActivity.this.runOnUiThread(new Runnable() { @Override public void run() { if (feed != null && feed.getItemCount() > 0) { adapter.notifyDataSetChanged(); // lv.setAdapter(adapter); item.getActionView().clearAnimation(); item.setActionView(null); } } }); } }); thread.start(); } @Override protected void onDestroy() { super.onDestroy(); adapter.imageLoader.clearCache(); adapter.notifyDataSetChanged(); } // List adapter class class CustomListAdapter extends BaseAdapter { private LayoutInflater layoutInflater; public ImageLoader imageLoader; public CustomListAdapter(ListActivity activity) { layoutInflater = (LayoutInflater) activity .getSystemService(Context.LAYOUT_INFLATER_SERVICE); imageLoader = new ImageLoader(activity.getApplicationContext()); } @Override public int getCount() { // Set the total list item count return feed.getItemCount(); } @Override public Object getItem(int position) { return position; } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { // Inflate the item layout and set the views View listItem = convertView; int pos = position; if (listItem == null) { listItem = layoutInflater.inflate(R.layout.list_item, null); } // Initialize the views in the layout ImageView iv = (ImageView) listItem.findViewById(R.id.thumb); TextView tvTitle = (TextView) listItem.findViewById(R.id.title); TextView tvDate = (TextView) listItem.findViewById(R.id.date); // Set the views in the layout imageLoader.DisplayImage(feed.getItem(pos).getImage(), iv); tvTitle.setText(feed.getItem(pos).getTitle()); tvDate.setText(feed.getItem(pos).getDate()); return listItem; } } }
Admob reklam gelmiyor
Hata yok ama reklam gelmiyor
package com.winterstore;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.webkit.WebSettings;
import android.webkit.WebSettings.LayoutAlgorithm;
import android.webkit.WebSettings.PluginState;
import android.webkit.WebSettings.TextSize;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.ads.*;
import com.ilginc.R;
import com.td.rssreader.parser.RSSFeed;
@SuppressWarnings("unused")
public class DetailFragment extends Fragment {
private int fPos;
RSSFeed fFeed;
public View onCreateView1(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.detail_fragment, container, false);
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
fFeed = (RSSFeed)getArguments().getSerializable("feed");
fPos = getArguments().getInt("pos");
}
public class MyActivity extends Activity {
private AdView mAdView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);
// Create a banner ad. The ad size and ad unit ID must be set before calling loadAd.
mAdView = new AdView(this);
mAdView.setAdSize(AdSize.SMART_BANNER);
mAdView.setAdUnitId("ca-app-pub-***************");
// Create an ad request.
AdRequest.Builder adRequestBuilder = new AdRequest.Builder();
// Optionally populate the ad request builder.
adRequestBuilder.addTestDevice(AdRequest.DEVICE_ID_EMULATOR);
// Add the AdView to the view hierarchy.
layout.addView(mAdView);
// Start loading the ad.
mAdView.loadAd(adRequestBuilder.build());
setContentView(layout);
}
@Override
public void onResume() {
super.onResume();
// Resume the AdView.
mAdView.resume();
}
@Override
public void onPause() {
// Pause the AdView.
mAdView.pause();
super.onPause();
}
@Override
public void onDestroy() {
// Destroy the AdView.
mAdView.destroy();
super.onDestroy();
}
}
@SuppressWarnings("deprecation")
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.detail_fragment, container, false);
// Initializr views
TextView title = (TextView)view.findViewById(R.id.title);
WebView desc = (WebView)view.findViewById(R.id.desc);
// Enable the vertical fading edge (by default it is disabled)
ScrollView sv = (ScrollView)view.findViewById(R.id.sv);
sv.setVerticalFadingEdgeEnabled(true);
// Set webview properties
WebSettings ws = desc.getSettings();
ws.setPluginState(PluginState.ON);
ws.setJavaScriptEnabled(true);
ws.setUseWideViewPort(true);
ws.setDefaultFontSize(25);
ws.setMinimumFontSize(10);
ws.setLoadWithOverviewMode(true);
ws.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
ws.setBuiltInZoomControls(false);
ws.setUserAgentString("Mozilla/5.0 (Linux; U; Android 2.0; en-us; Droid Build/ESD20) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17");
// Set the views
title.setText(fFeed.getItem(fPos).getTitle());
desc.loadDataWithBaseURL("http://www.androidcentral.com/", fFeed.getItem(fPos)
.getDescription(), "text/html", "UTF-8", null);
return view;
}
/**
* This class makes the ad request and loads the ad.
*/
}
Admob reklam gelmiyor
Logcat burada admob idini gözümden kaçırmışım malesef uyarınız için teşekkürler
12-02 19:53:48.698: W/ApplicationPackageManager(18427): getCSCPackageItemText()
12-02 19:53:48.703: I/PersonaManager(18427): getPersonaService() name persona_policy
12-02 19:53:48.763: D/dalvikvm(18427): GC_FOR_ALLOC freed 73K, 8% free 16916K/18212K, paused 17ms, total 17ms
12-02 19:53:48.798: I/dalvikvm-heap(18427): Grow heap (frag case) to 24.570MB for 7191504-byte allocation
12-02 19:53:48.813: D/dalvikvm(18427): GC_FOR_ALLOC freed <1K, 6% free 23938K/25236K, paused 15ms, total 15ms
12-02 19:53:49.028: I/(18427): PLATFORM VERSION : JB-MR-2
12-02 19:53:49.048: D/mali_winsys(18427): new_window_surface returns 0x3000
12-02 19:53:49.093: D/OpenGLRenderer(18427): Enabling debug mode 0
12-02 19:53:49.103: D/ProgressBar(18427): updateDrawableBounds: left = 0
12-02 19:53:49.103: D/ProgressBar(18427): updateDrawableBounds: top = 0
12-02 19:53:49.103: D/ProgressBar(18427): updateDrawableBounds: right = 48
12-02 19:53:49.103: D/ProgressBar(18427): updateDrawableBounds: bottom = 48
12-02 19:53:49.133: I/System.out(18427): Thread-14191(HTTPLog):isShipBuild true
12-02 19:53:49.133: I/System.out(18427): Thread-14191(HTTPLog):SmartBonding Enabling is false, SHIP_BUILD is true, log to file is false, DBG is false
12-02 19:53:49.893: W/ApplicationPackageManager(18427): getCSCPackageItemText()
12-02 19:53:49.918: E/MoreInfoHPW_ViewGroup(18427): Parent view is not a TextView
12-02 19:53:49.938: D/AbsListView(18427): Get MotionRecognitionManager
12-02 19:53:49.953: I/MemoryCache(18427): MemoryCache will use up to 32.0MB
12-02 19:53:49.958: D/AbsListView(18427): onVisibilityChanged() is called, visibility : 4
12-02 19:53:49.958: D/AbsListView(18427): unregisterIRListener() is called
12-02 19:53:49.963: D/AbsListView(18427): onVisibilityChanged() is called, visibility : 0
12-02 19:53:49.963: D/AbsListView(18427): unregisterIRListener() is called
12-02 19:53:49.968: D/AbsListView(18427): unregisterIRListener() is called
12-02 19:53:49.973: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:49.973: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:49.973: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:49.973: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:49.973: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:49.973: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:49.973: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:49.973: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:49.973: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:49.973: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:49.973: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:49.973: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:49.978: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:49.978: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:49.978: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:49.978: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:49.978: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:49.978: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:49.978: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:49.978: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:49.978: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:49.978: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:49.978: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:49.978: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:49.978: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:49.983: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:49.983: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:49.983: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:49.983: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:49.983: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:49.983: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:49.983: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:49.983: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:49.983: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:49.983: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:49.983: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:49.983: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:49.983: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:49.983: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:49.983: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:49.983: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:49.983: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:49.983: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:49.983: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:49.983: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:49.983: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:49.983: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:49.983: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.008: D/mali_winsys(18427): new_window_surface returns 0x3000
12-02 19:53:50.028: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.028: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.028: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.028: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.028: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.028: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.028: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.028: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.028: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.028: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.028: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.028: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.033: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.033: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.033: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.033: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.033: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.033: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.033: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.033: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.033: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.033: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.033: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.033: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.033: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.033: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.033: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.033: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.033: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.033: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.033: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.033: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.033: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.033: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.033: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.033: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.033: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.033: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.033: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.033: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.033: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.038: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.038: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.038: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.038: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.038: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.038: W/System.err(18427): at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.038: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.038: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.038: W/System.err(18427): java.net.URL.<init>(URL.java:176)
12-02 19:53:50.038: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.038: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.038: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.038: W/System.err(18427): at java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.038: W/System.err(18427): com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.038: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.038: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.038: W/System.err(18427): at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.038: W/System.err(18427): at java.net.URL.<init>(URL.java:176)java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.038: W/System.err(18427): at
12-02 19:53:50.038: W/System.err(18427): java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.038: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.038: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.038: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.038: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.038: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.043: W/System.err(18427): at java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.043: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.043: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.043: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.043: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.043: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.043: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.043: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.043: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.043: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.043: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.043: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.043: D/AbsListView(18427): unregisterIRListener() is called
12-02 19:53:50.043: W/System.err(18427): java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.043: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.043: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.043: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.043: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.043: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.068: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.068: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.068: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.068: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.068: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.068: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.068: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.068: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.068: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.068: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.068: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.068: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.068: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.068: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.068: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.068: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.068: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.068: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.068: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.068: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.068: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.068: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.068: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.068: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.068: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.068: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.068: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.073: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.073: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.073: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.073: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.073: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.073: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.073: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.073: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.073: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.073: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.073: D/AbsListView(18427): unregisterIRListener() is called
12-02 19:53:50.073: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.073: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.073: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.073: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.073: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.073: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.073: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.073: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.073: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.073: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.073: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.108: D/AbsListView(18427): unregisterIRListener() is called
12-02 19:53:50.118: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.118: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.118: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.118: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.123: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.123: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.123: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.123: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.123: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.123: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.123: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.123: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.123: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.123: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.123: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.123: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.123: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.123: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.123: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.123: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.123: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.123: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.123: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.123: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.123: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.123: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.123: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.123: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.123: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.123: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.123: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.123: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.123: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.123: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.123: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.123: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.123: W/System.err(18427): java.net.MalformedURLException: Protocol not found:
12-02 19:53:50.123: W/System.err(18427): at java.net.URL.<init>(URL.java:176)
12-02 19:53:50.128: W/System.err(18427): at java.net.URL.<init>(URL.java:125)
12-02 19:53:50.128: W/System.err(18427): at com.td.rssreader.image.ImageLoader.getBitmap(ImageLoader.java:68)
12-02 19:53:50.128: W/System.err(18427): at com.td.rssreader.image.ImageLoader.access$0(ImageLoader.java:57)
12-02 19:53:50.128: W/System.err(18427): at com.td.rssreader.image.ImageLoader$PhotosLoader.run(ImageLoader.java:148)
12-02 19:53:50.128: W/System.err(18427): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
12-02 19:53:50.128: W/System.err(18427): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
12-02 19:53:50.128: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
12-02 19:53:50.128: W/System.err(18427): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
12-02 19:53:50.128: W/System.err(18427): at java.lang.Thread.run(Thread.java:841)
12-02 19:53:50.128: I/MemoryCache(18427): cache size=0 length=1
12-02 19:53:50.128: D/AbsListView(18427): unregisterIRListener() is called
12-02 19:53:50.808: D/AbsListView(18427): unregisterIRListener() is called
12-02 19:53:50.813: W/ApplicationPackageManager(18427): getCSCPackageItemText()
12-02 19:53:50.823: E/MoreInfoHPW_ViewGroup(18427): Parent view is not a TextView
12-02 19:53:50.888: V/WebViewChromium(18427): Binding Chromium to the main looper Looper (main, tid 1) {42867c68}
12-02 19:53:50.888: I/chromium(18427): [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
12-02 19:53:50.888: I/BrowserProcessMain(18427): Initializing chromium process, renderers=0
12-02 19:53:50.898: W/chromium(18427): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
12-02 19:53:50.898: W/ApplicationPackageManager(18427): getCSCPackageItemText()
12-02 19:53:50.978: D/mali_winsys(18427): new_window_surface returns 0x3000
12-02 19:53:51.013: I/PersonaManager(18427): getPersonaService() name persona_policy
12-02 19:53:51.393: I/chromium(18427): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
12-02 19:53:51.408: I/chromium(18427): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
12-02 19:53:51.423: D/AbsListView(18427): onVisibilityChanged() is called, visibility : 4
12-02 19:53:51.423: D/AbsListView(18427): unregisterIRListener() is called
12-02 19:53:51.938: I/chromium(18427): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
12-02 19:53:52.418: I/chromium(18427): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
Admob cok activity
Xml'li
<com.google.android.gms.ads.AdView
android:id="@+id/adMob"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-4535080675448133*******" />
Sorumu biraz değiştiriyorum buraya nasıl admob kodları ekleyebilirm
Activity;
package com.winterstore;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.webkit.WebSettings;
import android.webkit.WebSettings.LayoutAlgorithm;
import android.webkit.WebSettings.PluginState;
import android.webkit.WebSettings.TextSize;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import com.google.ads.AdRequest;
import com.google.android.gms.ads.AdView;
import com.ilginc.R;
import com.td.rssreader.parser.RSSFeed;
@SuppressWarnings("unused")
public class DetailFragment extends Fragment {
private int fPos;
RSSFeed fFeed;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
fFeed = (RSSFeed)getArguments().getSerializable("feed");
fPos = getArguments().getInt("pos");
}
@SuppressWarnings("deprecation")
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.detail_fragment, container, false);
// Initializr views
TextView title = (TextView)view.findViewById(R.id.title);
WebView desc = (WebView)view.findViewById(R.id.desc);
// Enable the vertical fading edge (by default it is disabled)
ScrollView sv = (ScrollView)view.findViewById(R.id.sv);
sv.setVerticalFadingEdgeEnabled(true);
// Set webview properties
WebSettings ws = desc.getSettings();
ws.setPluginState(PluginState.ON);
ws.setJavaScriptEnabled(true);
ws.setUseWideViewPort(true);
ws.setDefaultFontSize(25);
ws.setMinimumFontSize(10);
ws.setLoadWithOverviewMode(true);
ws.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
ws.setBuiltInZoomControls(false);
ws.setUserAgentString("Mozilla/5.0 (Linux; U; Android 2.0; en-us; Droid Build/ESD20) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17");
// Set the views
title.setText(fFeed.getItem(fPos).getTitle());
desc.loadDataWithBaseURL("http://www.androidcentral.com/", fFeed.getItem(fPos)
.getDescription(), "text/html", "UTF-8", null);
return view;
}
}